55 virtual const char*
type()
const;
83 virtual bool createPSR();
87 virtual void createTimeEstimator();
91 static void taskCompleteReportCallback(
DtSimMessage * msg,
void * usr);
95 static void moveAlongWithActionsTaskCallback(
DtSimMessage* msg,
void* usr);
96 virtual void processMoveAlongWithActionsTask(
DtSimMessage* msg);
100 static void deleteVrfObjectCallback(
const DtVrfObject* msg,
void * usr);
101 virtual void processDeleteVrfObjectCallback(
const DtVrfObject* obj);
105 static void routeChangedCallback(
const DtVrfObject* obj,
void* usr);
106 virtual void processRouteChanged(
const DtVrfObject* obj);
113 virtual void executeCurrentAction();
119 virtual void executeHold();
123 virtual void executeTargetAction();
126 virtual void updateCurrentAction();
129 virtual void proceedToNextLeg(
const DtVector& position);
134 virtual bool passedPosition(
const DtVector& position);
138 virtual void traverseLegActions(
bool stop =
false);
141 virtual void getActionLocalPosition(
double routePosition,
const DtVector& startPoint,
const DtVector& endPoint,
DtVector& localPosition);
144 virtual bool passedHoldPosition();
147 virtual bool passedTargetPosition();
151 virtual void estimateTimeOnTarget();
155 virtual void updateHoldAndTargetPointLocations();
158 virtual double timeOnTargetWindow()
const;
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Performs time estimates for move along route with actions tasks.
Definition: moveAlongRouteTimeEstimator.h:50
DtUUID myActionObj
Definition: moveAlongWithActionsController.h:194
double myMaxSpeed
Definition: moveAlongWithActionsController.h:199
double myHoldUntilTime
Definition: moveAlongWithActionsController.h:201
virtual void registerTaskMsgCallbacks()
double myEstTimeOnTarget
Definition: moveAlongWithActionsController.h:203
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: moveAlongWithActionsPSR.h:34
DtMoveAlongWithActionsPSR * myProcessState
Container for state data associated with this component.
Definition: moveAlongWithActionsController.h:178
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
double myEstRequiredSpeed
Definition: moveAlongWithActionsController.h:202
virtual bool init()
Calls setRadio()
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick.
Definition: simComponent.h:485
std::vector< double > myEstVertexTimes
Definition: moveAlongWithActionsController.h:204
Definition: routeLegActionsEntry.h:29
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
DtVectorInputPort * myCurrentVertexLocationInputPort
Input Port Name: current-vertex-location Input Port Description: Specifies the current vertex locatio...
Definition: moveAlongWithActionsController.h:185
bool myEnableActions
Definition: moveAlongWithActionsController.h:192
virtual bool createPorts()
Called by init.
Definition: moveAlongWithActionsController.h:35
DtVector myCurrentActionPosition
Definition: moveAlongWithActionsController.h:190
DtMoveAlongRouteTimeEstimator * myEstimator
Definition: moveAlongWithActionsController.h:196
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
Definition: routeAction.h:35
double myMinSpeed
Definition: moveAlongWithActionsController.h:198
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtVector myCurrentVertexLocation
current vertex position
Definition: moveAlongWithActionsController.h:188
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19