VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrf::DtVrfConnectionHelper Class Reference

Helper code for connectors. Does not exist in it's own project but is included by all projects that use it.

Public Types

typedef boost::function< void(DtVrfConnectionHelper *)> RemoteControllerInitialization
 

Public Member Functions

 DtVrfConnectionHelper (makVrv::DtDe &, bool inThread=true)
 
virtual ~DtVrfConnectionHelper ()
 
virtual void beginFrame ()
 
virtual void advanceFrame ()
 
virtual bool onStop ()
 
virtual DtSimpleTypedDictionaryextendedStateFor (makVrv::DtUniqueID id, bool forceUpdate=true)
 
virtual void createStateDataManager (Legion::SimulationDatabase *db=0)
 
virtual void init (const DtSimulationAddress &, makVrv::DtBaseConnection *, int sessionId=-1, int fileReceiveTransferPort=9000, Legion::SimulationDatabase *db=0, RemoteControllerInitialization remoteControllerInitializationFunction=RemoteControllerInitialization())
 
virtual void setupQueuedConenctions (makVrv::DtSharedSettingsManager &manager)
 
virtual void receivedNetworkMessage (DtNetworkMessageInterface *iface)
 
virtual void registerCommentInteractionCallback (DtCommentCallbackFcn, void *)
 
virtual void unregisterCommentInteractionCallback (DtCommentCallbackFcn, void *)
 
virtual void queueConnectionFunction (const boost::function< void()> &function)
 
virtual void rollbackToSnapshot (double)
 
virtual void setCoordinateSystem (const makVrv::DtCoordinateSystem &)
 
virtual void loadScenario (const DtScenarioLoadInformation *, bool deleteMemory=false)
 
virtual void clearSavingCheckpoints ()
 
virtual DtSimulationStatus simulationStatus () const
 
virtual void simulationStatusChanged (DtSimulationStatus)
 
DtVantageToLegionIdMappervantageToLegionIdMapper () const
 
DtRadioProcessorradioProcessor () const
 
DtVrfRemoteControllerremoteController () const
 
DtCommunicationManagercommunicationManager () const
 
Coordinate_SystemcoordinateSystem () const
 
DtVrfMessageInterfacemessageInterface () const
 
DtVrfTDLMessageInterfacevrfTDLMessageInterface () const
 
DtTDLMessageProcessortdlMessageProcessor () const
 
DtExtendedStateDataProcessorextendedDataStateProcessor () const
 
DtStateDataManagerstateDataManager () const
 
virtual void sendMessageToObject (const DtVrfObjectMessage *m, DtSimulationAddress addr)
 
virtual void sendMessage (const DtSimInterfaceContent *m, DtSimulationAddress addr)
 
virtual void importScenarioDescriptionFile (std::string file, DtSimulationAddress address, std::string format, std::map< std::string, std::string > importData)
 
virtual void exportScenarioDescriptionFile (std::string file, DtSimulationAddress address, std::string format, std::map< std::string, std::string > importData)
 
virtual void createGlobalEnvironment (bool)
 
virtual void createEnvironmentalObject (DtSimulationAddress addr, DtSharedNetworkSignaler::EnvironmentalSignalCreationData sigData)
 
virtual void newScenario (const DtScenario *, time_t startTimeOfDay=12 *3600, const DtChangeWeatherCommand &initialCondition=DtChangeWeatherCommand())
 
virtual void closeScenario (DtFilename, bool forceCloseAll=false)
 
virtual void getMessageFilterStatus (std::map< std::string, bool > &statusMap) const
 
virtual void setMessageFilterStatus (const std::map< std::string, bool > &statusMap)
 
virtual void getMessageProcessorStatus (std::map< std::string, bool > &statusMap) const
 
virtual void setMessageProcessorStatus (const std::map< std::string, bool > &statusMap)
 
virtual void addSetCreatorFcn (const DtSetMessageType &, DtSetDataRequestCreatorFcn)
 
virtual void addTaskCreatorFcn (const DtSimTaskMessageType &, DtSimTaskCreatorFcn)
 
virtual void addInterfaceContentCreatorFcn (int, DtInterfaceContentCreatorFcn)
 
virtual void addObjectMessageCreatorFcn (int, DtVrfObjectMessageCreatorFcn)
 
virtual void addReportCreatorFcn (const DtSimReportMessageType &, DtSimReportCreatorFcn)
 
virtual void addAdminContentCreatorFcn (const DtAdminContentMessageType &, DtAdminContentCreatorFcn)
 
virtual void addSimulationCommandCreatorFcn (const DtSimCommandMessageType &, DtSimCommandCreatorFcn)
 
virtual void addConditionCreatorFcn (std::string, int, DtCondExprCreatorFcn)
 
virtual void setTimeoutInterval (int i)
 
virtual void registerSimMessageCallbackFor (int t, bool reg)
 
virtual void registerSimReportMessageCallbackFor (const DtSimReportMessageType &s, bool reg)
 
virtual void registerSimTaskMessageCallbackFor (const DtSimTaskMessageType &s, bool reg)
 
virtual void registerSetMessageCallbackFor (const DtSetMessageType &s, bool reg)
 
virtual void registerAdminMessageCallbackFor (const DtAdminContentMessageType &t, bool reg)
 

Public Attributes

boost::signals2::signal< void(bool)> signal_parameterDatabaseInitialized
 
boost::signals2::signal< void(DtSimulationStatus)> signal_simulationStatusChanged
 

Protected Types

typedef std::vector< std::pair
< DtVrfObjectConsoleMessageCallbackFcn,
void * > > 
DtCommentInteractionCallbackList
 
typedef std::vector
< DtVrfConnectionHelperMessageCallbackHandler * > 
EventHandlerCallbacks
 
typedef std::map
< makVrfEvents::DtEvent::EventType,
EventHandlerCallbacks
EventHandlerCallbacksMap
 
typedef
makVrv::DtLockedBufferedQueue
< boost::function< void()> > 
FunctionCallQueue
 
typedef std::vector
< boost::function< void()> > 
FunctionCallList
 
typedef std::map< double,
std::pair< DtScenario, int > > 
CheckpointsToSave
 

Protected Member Functions

virtual void processNetworkMessage (DtNetworkMessageInterface *iface)
 
virtual void slot_onSaveScenario (const DtScenario *, DtPreserveMappingsFcn fcn=0, void *userData=0, bool saveInZipFile=false, bool queueSave=false, int putIntoPlayMode=0)
 
virtual void slot_onSaveCheckpoints (std::vector< DtScenario * >, DtFilename)
 
virtual void slot_onClearSavingCheckpoints ()
 
virtual void slot_onLoadScenario (const DtScenarioLoadInformation &)
 
virtual void slot_onRollbackToSnapshot (double)
 
virtual void slot_registerCommentInteraction (bool)
 
virtual void slot_registerInfluenceInteraction (bool)
 
virtual void processInfluenceInteraction (const makVrfEvents::DtInfluenceEvent *inter)
 
virtual void processCommentInteraction (const makVrfEvents::DtCommentEvent *inter)
 
virtual void regsiterInfluenceIteractionCallback (DtInfluenceEventCb, void *)
 
virtual void unregsiterInfluenceIteractionCallback (DtInfluenceEventCb, void *)
 
virtual Coordinate_SystemcreateVrfCoordinateSystem (const makVrv::DtCoordinateSystem &coodSysIn)
 
virtual void processScenarioAboutToBeSaved (DtScenario &) const
 
virtual void saveScenario (const DtScenario *, DtPreserveMappingsFcn fcn=0, void *userData=0, bool deleteMemory=false, bool saveInZipFile=false, bool queueSave=false, int putIntoPlayMode=0)
 
virtual void saveCheckpoints (const std::vector< DtScenario * > &, const DtFilename &baseName)
 
virtual void saveNextCheckpoint ()
 
virtual void slot_quitBackend (DtSimulationAddress)
 
virtual void symbolDecorationsChanged ()
 
virtual void setupParameterDatabase (std::vector< DtFilename > searchPaths)
 
virtual void createGlobalDynamicTerrain (bool)
 
virtual void slot_modelSetLoaded (std::vector< DtFilename > searchPaths)
 
virtual void setupDirectConnections ()
 
virtual void disconnectConnections ()
 
virtual void sendScenarioLoadSuccessMessage ()
 
virtual void sendScenarioLoadErrorMessage (DtString error)
 
virtual void processScenarioSaved (DtSaveResult, const DtString &)
 
virtual void processScenarioCheckpointed (DtSaveResult result, double)
 
virtual void runFunctionQueue ()
 
virtual void processSimMessage (DtSimMessage *msg)
 
virtual void processRadioMessage (const DtVrfObjectMessage *msg)
 
virtual void registerExistingMessages ()
 
template<typename _Class , typename _CallbackFunction >
DtVrfConnectionHelperMessageCallbackHandleraddEventManagerCallback (makVrfEvents::DtEvent::EventType et, _CallbackFunction fcn, void *usr)
 
template<typename _Class , typename _CallbackFunction >
void removeEventManagerCallback (makVrfEvents::DtEvent::EventType et, _CallbackFunction fcn, void *usr)
 
virtual void remoteControllerInitialized ()
 

Static Protected Member Functions

static void influenceInteractionCallback (const makVrfEvents::DtInfluenceEvent *inter, void *usr)
 
static void commentInteractionCallback (const makVrfEvents::DtCommentEvent *inter, void *usr)
 
static void scenarioAboutToBeSaved (DtScenario &, void *)
 
static void scenarioSavedCallback (DtSaveResult result, const DtString &error, void *usr)
 
static void scenarioCheckpointed (DtSaveResult result, double, void *)
 
static void simMessageCallback (DtSimMessage *msg, void *usr)
 
static void radioMessageCallback (const DtVrfObjectMessage *msg, void *usr)
 

Protected Attributes

makVrv::DtDemyDe
 
makVrv::DtBaseConnectionmyConnection
 
makVrv::DtSignalConnectionManager myConnections
 
DtNetworkMessageInterfaceHandlerAgent * myNetworkMessageInterfaceHandlerAgent
 
bool myInThreadFlag
 
EventHandlerCallbacksMap myEventHandlerCallbacksMap
 
FunctionCallQueue myConnectionThreadFunctions
 
DtVrfRemoteControllermyRemoteController
 
DtStateDataManagermyStateDataManager
 
DtVrfCommunicationManagermyCommunicationManager
 
Coordinate_SystemmyCoordinateSystem
 
int mySessionId
 
int myFileTransporterReceivePort
 
DtAddressMapmyLastAddressMap
 
DtBackendMapmyLastBackendMap
 
CheckpointsToSave myCheckpointsToSave
 
CheckpointsToSave myCheckpointsSaving
 
DtVrfMessageInterfacemyVrfMessageInterface
 
DtVrfTDLMessageInterfacemyVrfTDLMessageInterface
 
DtSimDataProcessorManagermySimDataProcessorManager
 
DtTDLMessageProcessormyTDLMessageProcessor
 
DtRadioProcessormyRadioProcessor
 
DtExtendedStateDataProcessormyExtendedStateDataProcessor
 
bool myStopped
 
DtMtlParameterDbmyParameterDatabase
 
std::vector< DtFilename > myLastSearchPaths
 
double myParameterDatabaseTimerStart
 
DtSimulationStatus mySimulationStatus
 
DtVrfBackendInterceptormyBackEndInterceptor
 
DtVantageToLegionIdMappermyVantageToLegionIdMapper
 
std::set< intmySimMessageCallbacks
 
std::set
< DtAdminContentMessageType
myAdminMessageCallbacks
 
std::set< DtSimReportMessageTypemyReportMessageCallbacks
 
std::set< DtSimTaskMessageTypemyTaskMessageCallbacks
 
std::set< DtSetMessageTypemySetMessageCallbacks
 
std::map< DtSetMessageType,
DtSetDataRequestCreatorFcn
mySetCreator
 
std::map< DtSimTaskMessageType,
DtSimTaskCreatorFcn
myTaskCreator
 
std::map< int,
DtInterfaceContentCreatorFcn
myInterfaceContentCreator
 
std::map
< DtAdminContentMessageType,
DtAdminContentCreatorFcn
myAdminContentCreator
 
std::map
< DtSimCommandMessageType,
DtSimCommandCreatorFcn
mySimulationCommandCreator
 
std::map< std::string,
std::pair< int,
DtCondExprCreatorFcn > > 
myConditionCommandCreator
 
std::map< int,
DtVrfObjectMessageCreatorFcn
myObjectMessageCreator
 
std::map
< DtSimReportMessageType,
DtSimReportCreatorFcn
myReportCreator
 
std::vector< DtFilename > myModelSetSearchPaths
 
DtThreadId myThreadId
 

Member Typedef Documentation

typedef std::vector<boost::function<void ()> > makVrf::DtVrfConnectionHelper::FunctionCallList
protected
typedef std::map<double, std::pair<DtScenario, int> > makVrf::DtVrfConnectionHelper::CheckpointsToSave
protected

Checkpoints left to save.

Constructor & Destructor Documentation

makVrf::DtVrfConnectionHelper::DtVrfConnectionHelper ( makVrv::DtDe ,
bool  inThread = true 
)

CTOR.

virtual makVrf::DtVrfConnectionHelper::~DtVrfConnectionHelper ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtVrfConnectionHelper::beginFrame ( )
virtual

Call this to start a frame. Must be done before any work can be done on the network.

virtual void makVrf::DtVrfConnectionHelper::advanceFrame ( )
virtual

Must call to advance frame and copy double buffer information.

virtual bool makVrf::DtVrfConnectionHelper::onStop ( )
virtual
virtual DtSimpleTypedDictionary& makVrf::DtVrfConnectionHelper::extendedStateFor ( makVrv::DtUniqueID  id,
bool  forceUpdate = true 
)
virtual

Returns the extended state for this object. Use the dictionary() method of the extended state object to add/remove items from the dictionary. If an extended state does not exist, will create a new state and updater for the object. If a state does exist will force an update of the state onto the network as part of the retrieval if the update flag is true.

virtual void makVrf::DtVrfConnectionHelper::createStateDataManager ( Legion::SimulationDatabase *  db = 0)
virtual

Call this before init() to create the state data manager. This can be done when the state data manager needs to be created before the connection but also used in this class. If this is not called before init() it will be called during init()

virtual void makVrf::DtVrfConnectionHelper::init ( const DtSimulationAddress &  ,
makVrv::DtBaseConnection ,
int  sessionId = -1,
int  fileReceiveTransferPort = 9000,
Legion::SimulationDatabase *  db = 0,
RemoteControllerInitialization  remoteControllerInitializationFunction = RemoteControllerInitialization() 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::setupQueuedConenctions ( makVrv::DtSharedSettingsManager manager)
virtual

This method must be called in the setup of the exercise connection to be able to queue messages to the connection thread.

virtual void makVrf::DtVrfConnectionHelper::receivedNetworkMessage ( DtNetworkMessageInterface iface)
virtual

Called when a message wants to be posted from the network thread to the gui thread. Message is cloned and then must be freed by the gui thread. Posted to the queue to process in a tick.

virtual void makVrf::DtVrfConnectionHelper::registerCommentInteractionCallback ( DtCommentCallbackFcn  ,
void *   
)
virtual

Called to register for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::unregisterCommentInteractionCallback ( DtCommentCallbackFcn  ,
void *   
)
virtual

Called to unregister for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::queueConnectionFunction ( const boost::function< void()> &  function)
virtual

Put a function in the sim function queue, for threadsafe calling.

virtual void makVrf::DtVrfConnectionHelper::rollbackToSnapshot ( double  )
virtual

Called to rollback to the given snapshot.

virtual void makVrf::DtVrfConnectionHelper::setCoordinateSystem ( const makVrv::DtCoordinateSystem )
virtual
virtual void makVrf::DtVrfConnectionHelper::loadScenario ( const DtScenarioLoadInformation ,
bool  deleteMemory = false 
)
virtual

Called when a scenario needs to be loaded. Passed to remove controller.

virtual void makVrf::DtVrfConnectionHelper::clearSavingCheckpoints ( )
virtual

Clears out the checkpoints to save. If there is one currently being saved that will not effect it.

virtual DtSimulationStatus makVrf::DtVrfConnectionHelper::simulationStatus ( ) const
virtual

The current status of the simulation.

virtual void makVrf::DtVrfConnectionHelper::simulationStatusChanged ( DtSimulationStatus  )
virtual

Emits simulation status changed signal.

DtVantageToLegionIdMapper* makVrf::DtVrfConnectionHelper::vantageToLegionIdMapper ( ) const
inline
DtRadioProcessor* makVrf::DtVrfConnectionHelper::radioProcessor ( ) const
inline
DtVrfRemoteController* makVrf::DtVrfConnectionHelper::remoteController ( ) const
inline
DtCommunicationManager* makVrf::DtVrfConnectionHelper::communicationManager ( ) const
Coordinate_System* makVrf::DtVrfConnectionHelper::coordinateSystem ( ) const
inline
DtVrfMessageInterface* makVrf::DtVrfConnectionHelper::messageInterface ( ) const
inline
DtVrfTDLMessageInterface* makVrf::DtVrfConnectionHelper::vrfTDLMessageInterface ( ) const
inline
DtTDLMessageProcessor* makVrf::DtVrfConnectionHelper::tdlMessageProcessor ( ) const
inline
DtExtendedStateDataProcessor* makVrf::DtVrfConnectionHelper::extendedDataStateProcessor ( ) const
inline
DtStateDataManager* makVrf::DtVrfConnectionHelper::stateDataManager ( ) const
inline
virtual void makVrf::DtVrfConnectionHelper::sendMessageToObject ( const DtVrfObjectMessage m,
DtSimulationAddress  addr 
)
virtual

Called when system wants to send an admin message to object.

virtual void makVrf::DtVrfConnectionHelper::sendMessage ( const DtSimInterfaceContent m,
DtSimulationAddress  addr 
)
virtual

Called when system wants to send a message to object. Message passed in will be deleted. Assumed is a clone or a newly creaated message.

virtual void makVrf::DtVrfConnectionHelper::importScenarioDescriptionFile ( std::string  file,
DtSimulationAddress  address,
std::string  format,
std::map< std::string, std::string >  importData 
)
virtual

Called to import a scenario description file via the remote controller.

virtual void makVrf::DtVrfConnectionHelper::exportScenarioDescriptionFile ( std::string  file,
DtSimulationAddress  address,
std::string  format,
std::map< std::string, std::string >  importData 
)
virtual

Called to export a scenario description file via the remote controller.

virtual void makVrf::DtVrfConnectionHelper::createGlobalEnvironment ( bool  )
virtual

Create/destroy global environment (if not already)

virtual void makVrf::DtVrfConnectionHelper::createEnvironmentalObject ( DtSimulationAddress  addr,
DtSharedNetworkSignaler::EnvironmentalSignalCreationData  sigData 
)
virtual

Called when an environmental object needs to be created at the specified geocentric position(s)

virtual void makVrf::DtVrfConnectionHelper::newScenario ( const DtScenario ,
time_t  startTimeOfDay = 12 *3600,
const DtChangeWeatherCommand initialCondition = DtChangeWeatherCommand() 
)
virtual

Methods to call down to remote controller to do the specified action.

Called when a new scenario needs to be created. Passed to simulation

virtual void makVrf::DtVrfConnectionHelper::closeScenario ( DtFilename  ,
bool  forceCloseAll = false 
)
virtual

Called when a scenario needs to be closed.

virtual void makVrf::DtVrfConnectionHelper::getMessageFilterStatus ( std::map< std::string, bool > &  statusMap) const
virtual

Called when a developer wants to interrogate the status of message filters in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::setMessageFilterStatus ( const std::map< std::string, bool > &  statusMap)
virtual

Called when a developer wants to set the status of message filters in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::getMessageProcessorStatus ( std::map< std::string, bool > &  statusMap) const
virtual

Called when a developer wants to interrogate the status of message processors in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::setMessageProcessorStatus ( const std::map< std::string, bool > &  statusMap)
virtual

Called when a developer wants to set the status of message processors in DtRadioMessageListener.

virtual void makVrf::DtVrfConnectionHelper::addSetCreatorFcn ( const DtSetMessageType ,
DtSetDataRequestCreatorFcn   
)
virtual

Called when the system wants to add a set creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addTaskCreatorFcn ( const DtSimTaskMessageType ,
DtSimTaskCreatorFcn   
)
virtual

Called when the system wants to add a task creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addInterfaceContentCreatorFcn ( int  ,
DtInterfaceContentCreatorFcn   
)
virtual

Called when the system wants to add a interface content creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addObjectMessageCreatorFcn ( int  ,
DtVrfObjectMessageCreatorFcn   
)
virtual

Called when the system wants to add an object message creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addReportCreatorFcn ( const DtSimReportMessageType ,
DtSimReportCreatorFcn   
)
virtual

Called when the system wants to add a report creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addAdminContentCreatorFcn ( const DtAdminContentMessageType ,
DtAdminContentCreatorFcn   
)
virtual

Called when the system wants to add a admin content creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addSimulationCommandCreatorFcn ( const DtSimCommandMessageType ,
DtSimCommandCreatorFcn   
)
virtual

Called when the system wants to add a sim command creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::addConditionCreatorFcn ( std::string  ,
int  ,
DtCondExprCreatorFcn   
)
virtual

Called when the system wants to add a condition creator to the set factory.

virtual void makVrf::DtVrfConnectionHelper::setTimeoutInterval ( int  i)
virtual

Called to set the back-end timeout interval.

virtual void makVrf::DtVrfConnectionHelper::registerSimMessageCallbackFor ( int  t,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF message type.

virtual void makVrf::DtVrfConnectionHelper::registerSimReportMessageCallbackFor ( const DtSimReportMessageType s,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF radio message type (sent from the radioMessageListener)

virtual void makVrf::DtVrfConnectionHelper::registerSimTaskMessageCallbackFor ( const DtSimTaskMessageType s,
bool  reg 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::registerSetMessageCallbackFor ( const DtSetMessageType s,
bool  reg 
)
virtual
virtual void makVrf::DtVrfConnectionHelper::registerAdminMessageCallbackFor ( const DtAdminContentMessageType t,
bool  reg 
)
virtual

Called when developer wants to register (or unregister) a callback for the particular VRF object message type (sent from the radioMessageListener)

virtual void makVrf::DtVrfConnectionHelper::processNetworkMessage ( DtNetworkMessageInterface iface)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::slot_onSaveScenario ( const DtScenario ,
DtPreserveMappingsFcn  fcn = 0,
void *  userData = 0,
bool  saveInZipFile = false,
bool  queueSave = false,
int  putIntoPlayMode = 0 
)
protectedvirtual

Called when a new scenario needs to be saved. Passed to simulation.

virtual void makVrf::DtVrfConnectionHelper::slot_onSaveCheckpoints ( std::vector< DtScenario * >  ,
DtFilename   
)
protectedvirtual

Called when a scenario wants to start saving checkpoints. These will be added to a list, and, each time a checkpoint is saved a message will be sent back with the fact that it was saved and the number of items still left to save.

virtual void makVrf::DtVrfConnectionHelper::slot_onClearSavingCheckpoints ( )
protectedvirtual

Clears out the checkpoints to save. If there is one currently being saved that will not effect it.

virtual void makVrf::DtVrfConnectionHelper::slot_onLoadScenario ( const DtScenarioLoadInformation )
protectedvirtual

Called when a scenario needs to be loaded. Passed to simulation.

virtual void makVrf::DtVrfConnectionHelper::slot_onRollbackToSnapshot ( double  )
protectedvirtual

Called to rollback to a snapshot at a given simulation time.

virtual void makVrf::DtVrfConnectionHelper::slot_registerCommentInteraction ( bool  )
protectedvirtual

Called to register/unregister for comment interactions.

virtual void makVrf::DtVrfConnectionHelper::slot_registerInfluenceInteraction ( bool  )
protectedvirtual

Called to register/unregister for influence interactions. Even though exposed to DIS will only currently work when running HLA.

static void makVrf::DtVrfConnectionHelper::influenceInteractionCallback ( const makVrfEvents::DtInfluenceEvent inter,
void *  usr 
)
staticprotected

Invoked when an influence interaction is received from the network. Calls processInfluenceInteraction().

virtual void makVrf::DtVrfConnectionHelper::processInfluenceInteraction ( const makVrfEvents::DtInfluenceEvent inter)
protectedvirtual

Processes an incoming comment interaction. Object console messages are sent via comment interactions.

static void makVrf::DtVrfConnectionHelper::commentInteractionCallback ( const makVrfEvents::DtCommentEvent inter,
void *  usr 
)
staticprotected

Invoked when a comment interaction is received from the network. Calls processCommentInteraction().

virtual void makVrf::DtVrfConnectionHelper::processCommentInteraction ( const makVrfEvents::DtCommentEvent inter)
protectedvirtual

Processes an incoming comment interaction. Object console messages are sent via comment interactions.

virtual void makVrf::DtVrfConnectionHelper::regsiterInfluenceIteractionCallback ( DtInfluenceEventCb  ,
void *   
)
protectedvirtual

Register for influence callbacks.

virtual void makVrf::DtVrfConnectionHelper::unregsiterInfluenceIteractionCallback ( DtInfluenceEventCb  ,
void *   
)
protectedvirtual

Unregister for influence callbacks.

virtual Coordinate_System* makVrf::DtVrfConnectionHelper::createVrfCoordinateSystem ( const makVrv::DtCoordinateSystem coodSysIn)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioAboutToBeSaved ( DtScenario ,
void *   
)
staticprotected

Called when the scenario is about to be saved. Substitue in information that was marked for change.

virtual void makVrf::DtVrfConnectionHelper::processScenarioAboutToBeSaved ( DtScenario ) const
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::saveScenario ( const DtScenario ,
DtPreserveMappingsFcn  fcn = 0,
void *  userData = 0,
bool  deleteMemory = false,
bool  saveInZipFile = false,
bool  queueSave = false,
int  putIntoPlayMode = 0 
)
protectedvirtual

Called when a scenario needs to be saved. If deleteMemory is true, deletes supplied scenario.

virtual void makVrf::DtVrfConnectionHelper::saveCheckpoints ( const std::vector< DtScenario * > &  ,
const DtFilename &  baseName 
)
protectedvirtual

Sends signal to save the specified checkpoints. The sim time specified in the scenario will be the checkpoint time to try and save. Once set into there, the driver will delete the scenario memory.

virtual void makVrf::DtVrfConnectionHelper::saveNextCheckpoint ( )
protectedvirtual

If there is a checkpoint to be saved, save it.

virtual void makVrf::DtVrfConnectionHelper::slot_quitBackend ( DtSimulationAddress  )
protectedvirtual

Received when wanting to quit all back-ends. Will also set shared bit that the message has been sent.

virtual void makVrf::DtVrfConnectionHelper::symbolDecorationsChanged ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::setupParameterDatabase ( std::vector< DtFilename >  searchPaths)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::createGlobalDynamicTerrain ( bool  )
protectedvirtual

Create/destroy global dynamic terrain (if not already)

virtual void makVrf::DtVrfConnectionHelper::slot_modelSetLoaded ( std::vector< DtFilename >  searchPaths)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::setupDirectConnections ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::disconnectConnections ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::sendScenarioLoadSuccessMessage ( )
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::sendScenarioLoadErrorMessage ( DtString  error)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioSavedCallback ( DtSaveResult  result,
const DtString error,
void *  usr 
)
staticprotected
virtual void makVrf::DtVrfConnectionHelper::processScenarioSaved ( DtSaveResult  ,
const DtString  
)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::scenarioCheckpointed ( DtSaveResult  result,
double  ,
void *   
)
staticprotected
virtual void makVrf::DtVrfConnectionHelper::processScenarioCheckpointed ( DtSaveResult  result,
double   
)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::runFunctionQueue ( )
protectedvirtual

Runs the function queue (call in a tick)

static void makVrf::DtVrfConnectionHelper::simMessageCallback ( DtSimMessage msg,
void *  usr 
)
staticprotected

Called when processing sim messages. Will call receivedNetworkMessage with sim message interface wrapper.

virtual void makVrf::DtVrfConnectionHelper::processSimMessage ( DtSimMessage msg)
protectedvirtual
static void makVrf::DtVrfConnectionHelper::radioMessageCallback ( const DtVrfObjectMessage msg,
void *  usr 
)
staticprotected

Processing of VRF object messages.

virtual void makVrf::DtVrfConnectionHelper::processRadioMessage ( const DtVrfObjectMessage msg)
protectedvirtual
virtual void makVrf::DtVrfConnectionHelper::registerExistingMessages ( )
protectedvirtual
template<typename _Class , typename _CallbackFunction >
DtVrfConnectionHelperMessageCallbackHandler* makVrf::DtVrfConnectionHelper::addEventManagerCallback ( makVrfEvents::DtEvent::EventType  et,
_CallbackFunction  fcn,
void *  usr 
)
inlineprotected
template<typename _Class , typename _CallbackFunction >
void makVrf::DtVrfConnectionHelper::removeEventManagerCallback ( makVrfEvents::DtEvent::EventType  et,
_CallbackFunction  fcn,
void *  usr 
)
inlineprotected
virtual void makVrf::DtVrfConnectionHelper::remoteControllerInitialized ( )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (bool)> makVrf::DtVrfConnectionHelper::signal_parameterDatabaseInitialized

Signal sent when the parameter database has been asked to be changed. Flag will be true if it has been reinitialized, else will be fals.

boost::signals2::signal<void (DtSimulationStatus)> makVrf::DtVrfConnectionHelper::signal_simulationStatusChanged
makVrv::DtDe& makVrf::DtVrfConnectionHelper::myDe
protected
makVrv::DtBaseConnection* makVrf::DtVrfConnectionHelper::myConnection
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfConnectionHelper::myConnections
protected
DtNetworkMessageInterfaceHandlerAgent* makVrf::DtVrfConnectionHelper::myNetworkMessageInterfaceHandlerAgent
protected

Agent for sending notification of messages received to the gui. This message will need to be deleted by the gui once received.

bool makVrf::DtVrfConnectionHelper::myInThreadFlag
protected
EventHandlerCallbacksMap makVrf::DtVrfConnectionHelper::myEventHandlerCallbacksMap
protected
FunctionCallQueue makVrf::DtVrfConnectionHelper::myConnectionThreadFunctions
protected
DtVrfRemoteController* makVrf::DtVrfConnectionHelper::myRemoteController
protected
DtStateDataManager* makVrf::DtVrfConnectionHelper::myStateDataManager
protected
DtVrfCommunicationManager* makVrf::DtVrfConnectionHelper::myCommunicationManager
protected
Coordinate_System* makVrf::DtVrfConnectionHelper::myCoordinateSystem
protected
int makVrf::DtVrfConnectionHelper::mySessionId
protected
int makVrf::DtVrfConnectionHelper::myFileTransporterReceivePort
protected
DtAddressMap* makVrf::DtVrfConnectionHelper::myLastAddressMap
protected
DtBackendMap* makVrf::DtVrfConnectionHelper::myLastBackendMap
protected
CheckpointsToSave makVrf::DtVrfConnectionHelper::myCheckpointsToSave
protected
CheckpointsToSave makVrf::DtVrfConnectionHelper::myCheckpointsSaving
protected
DtVrfMessageInterface* makVrf::DtVrfConnectionHelper::myVrfMessageInterface
protected
DtVrfTDLMessageInterface* makVrf::DtVrfConnectionHelper::myVrfTDLMessageInterface
protected
DtSimDataProcessorManager* makVrf::DtVrfConnectionHelper::mySimDataProcessorManager
protected
DtTDLMessageProcessor* makVrf::DtVrfConnectionHelper::myTDLMessageProcessor
protected
DtRadioProcessor* makVrf::DtVrfConnectionHelper::myRadioProcessor
protected
DtExtendedStateDataProcessor* makVrf::DtVrfConnectionHelper::myExtendedStateDataProcessor
protected
bool makVrf::DtVrfConnectionHelper::myStopped
protected
DtMtlParameterDb* makVrf::DtVrfConnectionHelper::myParameterDatabase
protected
std::vector<DtFilename> makVrf::DtVrfConnectionHelper::myLastSearchPaths
protected
double makVrf::DtVrfConnectionHelper::myParameterDatabaseTimerStart
protected
DtSimulationStatus makVrf::DtVrfConnectionHelper::mySimulationStatus
protected
DtVrfBackendInterceptor* makVrf::DtVrfConnectionHelper::myBackEndInterceptor
protected
DtVantageToLegionIdMapper* makVrf::DtVrfConnectionHelper::myVantageToLegionIdMapper
protected
std::set<int> makVrf::DtVrfConnectionHelper::mySimMessageCallbacks
protected
std::set<DtAdminContentMessageType> makVrf::DtVrfConnectionHelper::myAdminMessageCallbacks
protected
std::set<DtSimReportMessageType> makVrf::DtVrfConnectionHelper::myReportMessageCallbacks
protected
std::set<DtSimTaskMessageType> makVrf::DtVrfConnectionHelper::myTaskMessageCallbacks
protected
std::set<DtSetMessageType> makVrf::DtVrfConnectionHelper::mySetMessageCallbacks
protected
std::map<DtSetMessageType, DtSetDataRequestCreatorFcn> makVrf::DtVrfConnectionHelper::mySetCreator
protected
std::map<DtSimTaskMessageType, DtSimTaskCreatorFcn> makVrf::DtVrfConnectionHelper::myTaskCreator
protected
std::map<int, DtInterfaceContentCreatorFcn> makVrf::DtVrfConnectionHelper::myInterfaceContentCreator
protected
std::map<DtAdminContentMessageType, DtAdminContentCreatorFcn> makVrf::DtVrfConnectionHelper::myAdminContentCreator
protected
std::map<DtSimCommandMessageType, DtSimCommandCreatorFcn> makVrf::DtVrfConnectionHelper::mySimulationCommandCreator
protected
std::map<std::string, std::pair<int, DtCondExprCreatorFcn> > makVrf::DtVrfConnectionHelper::myConditionCommandCreator
protected
std::map<int, DtVrfObjectMessageCreatorFcn> makVrf::DtVrfConnectionHelper::myObjectMessageCreator
protected
std::map<DtSimReportMessageType, DtSimReportCreatorFcn> makVrf::DtVrfConnectionHelper::myReportCreator
protected
std::vector<DtFilename> makVrf::DtVrfConnectionHelper::myModelSetSearchPaths
protected
DtThreadId makVrf::DtVrfConnectionHelper::myThreadId
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)