55 virtual const char*
type()
const;
64 static void setSpeedRequiredCallback(
DtSimMessage * msg,
void * usr);
87 virtual bool createPSR();
91 virtual void createTimeEstimator();
95 static void taskCompleteReportCallback(
DtSimMessage * msg,
void * usr);
99 static void moveAlongWithActionsTaskCallback(
DtSimMessage* msg,
void* usr);
100 virtual void processMoveAlongWithActionsTask(
DtSimMessage* msg);
104 static void deleteVrfObjectCallback(
const DtVrfObject* msg,
void * usr);
105 virtual void processDeleteVrfObjectCallback(
const DtVrfObject* obj);
109 static void routeChangedCallback(
const DtVrfObject* obj,
void* usr);
110 virtual void processRouteChanged(
const DtVrfObject* obj);
117 virtual void executeCurrentAction();
123 virtual void executeHold();
127 virtual void executeTargetAction();
130 virtual void updateCurrentAction();
133 virtual void proceedToNextLeg(
const DtVector& position);
138 virtual bool passedPosition(
const DtVector& position);
142 virtual void traverseLegActions(
bool stop =
false);
145 virtual void getActionLocalPosition(
double routePosition,
const DtVector& startPoint,
const DtVector& endPoint,
DtVector& localPosition);
148 virtual bool passedHoldPosition();
151 virtual bool passedTargetPosition();
155 virtual void estimateTimeOnTarget();
159 virtual void updateHoldAndTargetPointLocations();
162 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:198
double myMaxSpeed
Definition: moveAlongWithActionsController.h:203
double myHoldUntilTime
Definition: moveAlongWithActionsController.h:205
virtual void registerTaskMsgCallbacks()
double myEstTimeOnTarget
Definition: moveAlongWithActionsController.h:207
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:182
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
double myEstRequiredSpeed
Definition: moveAlongWithActionsController.h:206
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:487
std::vector< double > myEstVertexTimes
Definition: moveAlongWithActionsController.h:208
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:189
bool myEnableActions
Definition: moveAlongWithActionsController.h:196
virtual bool createPorts()
Called by init.
Definition: moveAlongWithActionsController.h:35
DtVector myCurrentActionPosition
Definition: moveAlongWithActionsController.h:194
DtMoveAlongRouteTimeEstimator * myEstimator
Definition: moveAlongWithActionsController.h:200
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:202
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtVector myCurrentVertexLocation
current vertex position
Definition: moveAlongWithActionsController.h:192
A DtTaskMsg is a DtRadioMsg with a pointer to a task.
Definition: taskMessage.h:19