15 #include <matrix/vlVector.h>
19 #include <boost/shared_ptr.hpp>
86 virtual bool createPSR();
96 virtual const char*
type()
const;
101 static void taskCompleteReportCallback(
DtSimMessage* msg,
void* usr);
103 virtual void processTaskCompleteReport(
DtSimMessage* msg);
105 static void destinationChangedCallback(
const DtLocalObject* obj,
void* usrData);
111 virtual void processDestinationChanged();
117 virtual void processSetLocationComplete();
126 virtual void clearCurrentPath();
131 virtual bool isEntityCloseEnoughToRoad(
135 virtual bool isEntityOnRoad(
DtRailSegment* railSegment)
const;
140 virtual bool setupPathToDestination(
const DtVector& start,
const DtVector& end);
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
bool myDestinationChangedCallbackRegistered
Definition: railPathController.h:167
std::list< DtRailSegment * > DtRailSegmentList
Definition: railSegment.h:197
DtSimObjectReference myDestination
Bookkeeping for callback registration.
Definition: railPathController.h:169
virtual void registerTaskMsgCallbacks()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtRailSegment are segments entities can follow when using the rail movement system.
Definition: railSegment.h:23
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
Calls setRadio()
DtRailPathControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: railPathController.h:164
virtual void clearTask()
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
DtBoost::shared_ptr< DtSimTaskState > DtSimTaskStatePtr
Definition: taskAndTaskStateDefines.h:18
DtRailPathControllerDescriptor; descriptor for the DDtRailPathController component.
Definition: railPathControllerDescriptor.h:23
DtIteratorDirection
Definition: iteratorBase.h:23
const DtRailPathControllerDescriptor * myPathDescriptor
Definition: railPathController.h:166
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
virtual DtSimTaskStatePtr currentTaskState() const
class DtRailPathControllerPSR:
Definition: railPathControllerPSR.h:27
DtRailPathController is a controller that models movement along a generated path for an entity making...
Definition: railPathController.h:56
Handle to async job.
Definition: asyncJobMapEntry.h:29
boost::shared_ptr< DtAsyncJobMapEntry > myPathJobEntry
Token for asynchronous path plan task.
Definition: railPathController.h:160
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
File: railPathTask.h.
Definition: railPathTask.h:45
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
boost::signals2::scoped_connection mySetLocationCompleteConnection
Definition: railPathController.h:170