VR-Forces 4.2 Class Documentation
railMovementControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: railMovementControllerPSR.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 4/28/10 MEM
8 *******************************************************************************/
9 
12 
14 
15 #pragma once
16 
18 #include "vrfobjcore/processSR.h"
19 #include "vrfutil/rwReal.h"
20 #include "vrfutil/rwInt.h"
21 #include "vrfutil/rwBoolean.h"
22 #include "vrfutil/rwString.h"
23 #include "vrfutil/rwVector.h"
24 
28 {
39 };
43 {
44 public:
45 
48  const DtString& rwName = DtString::nullString(),
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
53  const DtString& rwName = DtString::nullString(),
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
57  virtual ~DtRailMovementControllerPSR();
58 
61 
64  const DtString& rwName = DtString::nullString(),
65  DtReaderWriterRegistry* parentRegistry = 0) const;
66 
69  virtual DtString type() const;
70 
71  virtual void setCurrentMovementState(DtRailMovementState state);
72  virtual DtRailMovementState currentMovementState();
73 
84  virtual void setUseHighFidelityGroundClamping(bool yesOrNo);
85  virtual bool useHighFidelityGroundClamping() const;
87 
89  virtual void setSegmentIndex();
90  virtual const int segmentIndex() const;
92 
95  virtual void setCurrentLanePosition(const int lane);
96  virtual const int currentLanePosition() const;
98 
102  virtual void setPassingLanePosition(const int lane);
103  virtual const int passingLanePosition() const;
105 
107  virtual void setTurning(bool turn);
108  virtual bool turning() const;
110 
112  virtual void setAllowPassing(bool canPass);
113  virtual bool allowPassing() const;
115 
117  virtual void setPassing(bool pass);
118  virtual bool passing() const;
120 
122  virtual void setAvoidingCollision(bool avoid);
123  virtual bool avoidingCollisiong() const;
125 
127  virtual void setNeedSwitchLanes(bool switchLane);
128  virtual bool needSwitchLanes() const;
130 
132  virtual void setConvoyTargetSpecified(bool following);
133  virtual bool convoyTargetSpecified() const;
135 
137  virtual void setConvoyFollowTargetName(const DtString & name);
138  virtual const DtString & convoyFollowTargetName() const;
140 
142  virtual void setConvoyFollowDistance(const double dist);
143  virtual const double convoyFollowDistance() const;
145 
146  void setConvoyUseCatchUpSpeed(const bool useCatchUpSpeed);
147  const bool convoyUseCatchUpSpeed() const;
148 
149 
151  virtual const double maxFollowThreshold() const;
152  virtual void setMaxFollowThreshold(const double threshold);
154 
155 
156 public:
157 
159  static DtVrfProcessStateRepository* creator (const DtString& rwName,
160  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
161 
162 protected:
163 
165 
169 
174 
179 
184 
189 
194 
199 
204 
210 
215 
220 
224 
227 
235 };
236 
237 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)