The simulation engine is controlled by a single,top-level class called the Simulation Manager.
More...
|
| | DtSimManager (DtExerciseConn *connection) |
| | constructor More...
|
| |
| virtual | ~DtSimManager () |
| | destructor More...
|
| |
| virtual bool | init () |
| | creates all the other pieces. More...
|
| |
virtual const
DtVrfSimOptionsInterface * | simOptions () const |
| | Access sim options object. More...
|
| |
| virtual void | setSimOptions (const DtVrfSimOptionsInterface &) |
| | Takes ownership. More...
|
| |
| virtual bool | createExerciseClock () |
| | Exercise clock for back-end. More...
|
| |
| virtual bool | createScheduler () |
| |
| virtual bool | createMessageInterface () |
| |
| virtual bool | createTDLMessageInterface () |
| |
| virtual bool | createFrameRateMonitor () |
| |
| virtual bool | createVrfSimSettingsManager () |
| | Creates the DtVrfSimSettingsManager. More...
|
| |
| virtual bool | createParallelTickManager () |
| |
| virtual void | tick () |
| | Ticks the scheduler and then all registered tick callbacks. More...
|
| |
| virtual bool | deliverMessage (const DtSimInterfaceMessage &msg) |
| |
| virtual bool | receiveMessage (const DtSimInterfaceMessage &msg) |
| |
| virtual bool | createAndDeliverMessage (const DtSimulationAddress &recipient, const DtSimInterfaceContent &content, bool overrideTimestampOrder=true) const |
| |
| DtExerciseConn * | exerciseConn () |
| | exerciseConn() provides access to the virtual network. More...
|
| |
| const DtExerciseClock * | exerciseClock () const |
| | exerciseClock() provides access to the current dT, current exercise time and current elapsed time. More...
|
| |
| virtual DtFrameRateMonitor * | frameRateMonitor () |
| | provides access to the frameRateMonitor, which is responsible for providing frame rate statistics as requested. More...
|
| |
| virtual DtParallelTickManager * | parallelTickManager () |
| | Access parallelTickManager which can be used to execute code concurrently in the main thread. More...
|
| |
| virtual DtScheduler * | scheduler () |
| | scheduler() is used to schedule, control, and delete internal events. More...
|
| |
| virtual void | setVrfObjectManager (DtVrfObjectManager *entityManager) |
| | vrfObjectManager() provides access to all the objects in the system; both local and remote. More...
|
| |
| virtual DtVrfObjectManager * | vrfObjectManager () |
| |
| virtual const DtVrfObjectManager * | vrfObjectManager () const |
| |
| virtual void | setVrfNavAreaManager (DtVrfNavAreaManager *navAreaManager) |
| |
| virtual DtVrfNavAreaManager * | vrfNavAreaManager () |
| |
| virtual const DtVrfNavAreaManager * | vrfNavAreaManager () const |
| |
| virtual void | setSpawnSinkManager (DtSpawnSinkManager *spawnSinkManager) |
| |
| virtual DtSpawnSinkManager * | spawnSinkManager () |
| |
| virtual const DtSpawnSinkManager * | spawnSinkManager () const |
| |
| virtual void | setEmbeddedEntityInfoManager (DtEmbeddedEntityInfoManager *eeInfManager) |
| | embeddedEntityInfoManager() manages and provides information caches that concern Embedded Entities, including whether a particular type has embedded entities, and the available tasks/sets that those entities are capable of. More...
|
| |
virtual
DtEmbeddedEntityInfoManager * | embeddedEntityInfoManager () |
| |
virtual const
DtEmbeddedEntityInfoManager * | embeddedEntityInfoManager () const |
| |
| virtual void | setScriptedTaskManager (DtScriptedTaskManager *) |
| | scriptedTaskManager() provides access to all the scripted tasks in the system. More...
|
| |
| virtual DtScriptedTaskManager * | scriptedTaskManager () |
| |
virtual const
DtScriptedTaskManager * | scriptedTaskManager () const |
| |
| virtual void | setScenarioEventManager (DtScenarioEventManager *) |
| | scenarioEventManager() provides access to all the scenario events in the system. More...
|
| |
| virtual DtScenarioEventManager * | scenarioEventManager () |
| |
virtual const
DtScenarioEventManager * | scenarioEventManager () const |
| |
| virtual void | setHazardAreaManager (DtHazardAreaManager *) |
| | hazardAreaManager() provides access to all the hazard areas in the system. More...
|
| |
| virtual DtHazardAreaManager * | hazardAreaManager () |
| |
| virtual const DtHazardAreaManager * | hazardAreaManager () const |
| |
| virtual void | setIntelCollectionAreaManager (DtIntelCollectionAreaManager *) |
| | intelCollectionAreaManager() provides access to all the intel collection areas in the system. More...
|
| |
virtual
DtIntelCollectionAreaManager * | intelCollectionAreaManager () |
| |
virtual const
DtIntelCollectionAreaManager * | intelCollectionAreaManager () const |
| |
| virtual void | setScriptedObjectsMovementManager (DtScriptedObjectsMovementManager *) |
| | scriptedObjectsMovementManager() provides access to all the scripted movement objects in the system. More...
|
| |
virtual
DtScriptedObjectsMovementManager * | scriptedObjectsMovementManager () |
| |
virtual const
DtScriptedObjectsMovementManager * | scriptedObjectsMovementManager () const |
| |
| virtual DtEventId | nextEventId (const DtGlobalObjectDesignator &entId) |
| | Call to get an event id to use in an interaction. More...
|
| |
| virtual void | setAggregateSpatialModel (DtAggregateSpatialModel *aggregateSpatialModel) |
| | aggregateSpatialModel() provides an up to date view of all aggregates' location (location, velocity, orientation, and bounding geometry). More...
|
| |
| virtual DtAggregateSpatialModel * | aggregateSpatialModel () |
| |
virtual const
DtAggregateSpatialModel * | aggregateSpatialModel () const |
| |
| virtual void | setDetonationManager (DtDetonationManager *detonationManager) |
| | Manages the detonation callbacks generated by the simulation. More...
|
| |
| virtual DtDetonationManager * | detonationManager () |
| |
| virtual const DtDetonationManager * | detonationManager () const |
| |
| virtual void | setAmmunitionManager (DtAmmunitionManager *ammunitionManager) |
| | Gives access to ammunition available and the targets they can target. More...
|
| |
| virtual DtAmmunitionManager * | ammunitionManager () |
| |
| virtual void | setFireManager (DtFireManager *fireManager) |
| | Manages the fire callbacks (fire/detonation interactions) generated by the simulation. More...
|
| |
| virtual DtFireManager * | fireManager () |
| |
| virtual const DtFireManager * | fireManager () const |
| |
| virtual void | setScenarioRunId (int) |
| | If used, a unique id that signifies this scenario run. More...
|
| |
| virtual int | scenarioRunId () const |
| |
| virtual void | setRejectMismatchedScenarioMessages (bool) |
| | Sets whether or not to reject mismatched scenario run messages (default is true) More...
|
| |
| virtual bool | rejectMismatchedScenarioMessages () const |
| |
| virtual bool | rejectMessage (const DtVrfObjectMessage *) const |
| | If set to reject messages based on scenario run id, reject the message if the internal simulation id is not zero and the supplied id is not zero. More...
|
| |
| virtual DtVrfSimSettingsManager * | vrfSimSettingsManager () |
| | Returns the DtVrfSimSettingsManager. More...
|
| |
| virtual void | addMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData) |
| | Add/Remove a function to be called when a particular message type is received. More...
|
| |
| virtual void | removeMessageCallback (int type, DtMessageCallbackFcn fcn, void *usrData) |
| |
| virtual DtVrfMessageInterface * | messageInterface () const |
| | messageInterface() provides access to the interface used to send messages between the simulation back-end and a (logically or physically) remote front-end command interface. More...
|
| |
virtual
DtInterfaceMessageExecutive * | messageExecutive () |
| |
| virtual DtVrfTDLMessageInterface * | tdlMessageInterface () const |
| | tdlMessageInterface() provides access to the interface used to send TDL messages. More...
|
| |
| virtual void | registerInterfaceCallbacks () |
| | Register callbacks on the sim manager's interface message executive. More...
|
| |
| virtual bool | registerExtendedProperties () |
| | Registers standard VRF FOM classes to support extended state and parameter properties. More...
|
| |
| virtual const DtSimulationAddress & | messageAddress () const |
| | This is the address that should be used as the sender for all messages originating from the backend. More...
|
| |
| virtual unsigned long | sequenceNumber () |
| | Gets the sequence number of the current scenario. More...
|
| |
| virtual void | setSequenceNumber (unsigned long sequenceNumber) |
| | Sets the sequence number – should only be called from classes which actually create and send out the number in a load scenario message. More...
|
| |
| DtResourceMonitor * | resourceMonitor () |
| | Get/set resource monitor. More...
|
| |
| void | setResourceMonitor (DtResourceMonitor *) |
| |
| DtRadarCoverageMonitor * | radarCoverageMonitor () |
| | Get/set radarCoverage monitor. More...
|
| |
| void | setRadarCoverageMonitor (DtRadarCoverageMonitor *) |
| |
| DtTerrainProfileRequestManager * | terrainProfileRequestManager () |
| | Get/set terrain profile request manager. More...
|
| |
| void | setTerrainProfileRequestManager (DtTerrainProfileRequestManager *) |
| |
| virtual int | vrfSessionId () const |
| | Returns the session id from the message interface. More...
|
| |
| virtual int | vrfMessageVersionSupported () const |
| | Returns the vrf message version from the message interface. More...
|
| |
| virtual void | runForDuration (double) |
| | Starts a run duration. More...
|
| |
| virtual double | runDurationTime () const |
| |
| virtual void | stopSimulationDurationTimer () |
| | Stops the current duration run timer. More...
|
| |
| virtual void | processRunDurationComplete () |
| |
| virtual void | addSimulationRunDurationCallback (DtRunDurationCallbackFcn tickFunction, void *userData) |
| | Adds callbacks for simulation completion from duration timeout. More...
|
| |
| virtual void | removeSimulationRunDurationCallback (DtRunDurationCallbackFcn tickFunction, void *userData) |
| |
| virtual void | doNotSelfReflect (unsigned int) |
| | If we are not self reflecting, add this to the list of messages that do not want to be self reflected Not reflected: More...
|
| |
| virtual void | selfReflect (unsigned int) |
| |
| virtual bool | selfReflecting () const |
| | Returns whether or not a message, if sent on the network, will also be received locally on the network. More...
|
| |
|
| virtual void | addTickEntry (DtSimTickFunction tickFunction, void *userData) const |
| | Callback that will be called every simulation tick of the system. More...
|
| |
| virtual void | removeTickEntry (DtSimTickFunction tickFunction, void *userData) const |
| |
|
| virtual void | addPostTickEntry (DtSimTickFunction tickFunction, void *userData) const |
| | Callbacks invoked at the end of the tick function. More...
|
| |
| virtual void | removePostTickEntry (DtSimTickFunction tickFunction, void *userData) const |
| |
|
| virtual void | setPhysicalWorld (DtPhysicalWorld *newPhysicalWorld) |
| |
| virtual DtPhysicalWorld * | physicalWorld () |
| |
| virtual const DtPhysicalWorld * | physicalWorld () const |
| |
|
| virtual void | setCommModelManager (DtCommModelManager *newCommModelManager) |
| |
| virtual DtCommModelManager * | commModelManager () |
| |
| virtual const DtCommModelManager * | commModelManager () const |
| |
|
| virtual void | setSimTerrainRequestManager (DtSimTerrainRequestManager *newSimTerrainRequestManager) |
| |
virtual
DtSimTerrainRequestManager * | simTerrainRequestManager () |
| |
virtual const
DtSimTerrainRequestManager * | simTerrainRequestManager () const |
| |
|
| virtual void | setGlobalPlanManager (DtGlobalPlanManager *planManager) |
| | The global plan manager tracks and executes all "global plans" which are plans that are not associated with a particular entity, but rather with the simulation as a whole. More...
|
| |
| virtual const DtGlobalPlanManager * | globalPlanManager () const |
| |
| virtual DtGlobalPlanManager * | globalPlanManager () |
| |
|
| virtual void | setStealthCommandsManager (DtStealthCommandsManager *planManager) |
| | The stealth commands manager maintains and executes stealth commands. More...
|
| |
virtual const
DtStealthCommandsManager * | stealthCommandsManager () const |
| |
| virtual DtStealthCommandsManager * | stealthCommandsManager () |
| |
|
| virtual void | setHostilityManager (DtHostilityManager *hostilityManager) |
| | The hostility manager keeps track of which forces are hostile to each other. More...
|
| |
| virtual const DtHostilityManager * | hostilityManager () const |
| |
| virtual DtHostilityManager * | hostilityManager () |
| |
|
| virtual void | setEngagementZonesManager (DtEngagementZonesManager *manager) |
| | The engagement zones manager which keeps track of engagement zones. More...
|
| |
virtual const
DtEngagementZonesManager * | engagementZonesManager () const |
| |
| virtual DtEngagementZonesManager * | engagementZonesManager () |
| |
|
| virtual void | setScenarioExtrasMgr (DtScenarioExtrasMgr *scenarioExtrasMgr) |
| | The hostility manager keeps track of which forces are hostile to each other. More...
|
| |
| virtual const DtScenarioExtrasMgr * | scenarioExtrasMgr () const |
| |
| virtual DtScenarioExtrasMgr * | scenarioExtrasMgr () |
| |
|
| void | setEventManager (DtEventManager *) |
| | Event manager accessor. More...
|
| |
| DtEventManager * | eventManager () const |
| |
| virtual void | addEvent (const DtEvent &) |
| | Connect to the eventAdded signal sent by this class in order to get an indicaation of an event that has been added. More...
|
| |
| virtual void | addEvent (const DtDetonationInteraction &) |
| | Convenience methods. More...
|
| |
| virtual void | addEvent (const DtFireInteraction &) |
| |
| virtual void | addEvent (const DtAcknowledgeInteraction &) |
| |
| virtual void | addEvent (const DtStopFreezeInteraction &) |
| |
| virtual void | addEvent (const DtStartResumeInteraction &) |
| |
| virtual void | addEvent (const DtDataInteraction &) |
| |
| virtual void | addEvent (const DtSignalInteraction &) |
| |
| virtual void | addEvent (const DtCommentInteraction &) |
| |
| virtual void | addEvent (const DtSensorFieldOfViewControlInter &) |
| |
| virtual void | addevent (const DtSimInterfaceContent &) |
| |
| virtual void | addEvent (const DtDataInteractionWithTransportType &) |
| |
| virtual void | addEvent (const DtInfluenceInteraction &) |
| |
| virtual void | addEvent (const DtInfluenceInteractionExtension &) |
| |
| virtual void | addEvent (const DtEndGestureInter &) |
| |
| virtual void | addEvent (const DtExecuteGestureInter &) |
| |
|
| virtual void | setSimCommandDistributor (DtSimCommandDistributor *distributor) |
| | The sim command distributor managed callbacks to be notified when sim command are received. More...
|
| |
virtual const
DtSimCommandDistributor * | simCommandDistributor () const |
| |
| virtual DtSimCommandDistributor * | simCommandDistributor () |
| |
|
| virtual void | setDebugDrawManager (DtDebugDrawManager *debugDrawManager) |
| | The debugDrawManager is responsible to send draw request to the debugDrawRenderer. More...
|
| |
| virtual const DtDebugDrawManager * | debugDrawManager () const |
| |
| virtual DtDebugDrawManager * | debugDrawManager () |
| |
|
| void | setClockMode (int clockMode) |
| | Configuration for the clock to be used for absolute time stamping (in windows) More...
|
| |
|
| virtual DtU32 | scenarioCapabilities () const |
| | Indicates the capabilities this VRF based application. More...
|
| |
| virtual void | setScenarioCapabilities (DtU32 v) |
| |
The simulation engine is controlled by a single,top-level class called the Simulation Manager.
All the objects in the simulation backend are owned by the Simulation Manager. The Simulation Manager will be called via a tick() member function once each simulation frame, at which time it will process incoming messages and provide execution control to all the other objects it manages.
- Examples using DtSimManager include
-