![]() |
VR-Forces 4.3 Class Documentation
|
Instances of DtVrfStatusPublisher are used to send information about a VR-Forces simulation engine to remote front ends or other control applications. More...
Public Member Functions | |
| DtVrfStatusPublisher (DtVrfMessageInterface *messageIf, DtVrfObjectManager *mgr) | |
| constructor | |
| virtual | ~DtVrfStatusPublisher () |
| destructor | |
| virtual const DtSimulationAddress & | address () |
| virtual void | setAddress (const DtSimulationAddress &address) |
| virtual const DtTime & | lastResponseTime () |
| virtual void | setLastResponseTime (const DtTime &time) |
| virtual void | sendStatus (const DtSimulationAddress &address) |
| virtual void | sendFinalStatus () |
| virtual void | sendStatusToAll () |
| virtual void | setHeartbeatInterval (int heartbeatInterval) |
| This value determines how often to send out a status message. | |
| virtual int | heartbeatInterval () |
| virtual DtInetAddr | ipAddress () const |
| Get IP address of this backend. | |
| virtual void | setIpAddress (const DtInetAddr &addr) |
| virtual unsigned int | port () const |
| Get/Set our port number for file transferring. | |
| virtual void | setPort (unsigned int p) |
| virtual int | controlState () const |
| Get/Set control state (e.g. paused, running) | |
| virtual void | setControlState (int state) |
| virtual void | tick () |
| Ticked by the simulation manager. | |
| virtual void | processStatusRequestMessage (DtSimMessage *msg) |
| Process status request messages from other status managers. | |
| virtual bool | isLoaded () const |
| If true, this backend has been loaded with a scenario. | |
| virtual void | setIsLoaded (bool loaded) |
| virtual bool | isActive () const |
| The following functions are obsolete. | |
| virtual void | setIsActive (bool active) |
| virtual bool | canSimulate () const |
| virtual void | setCanSimulate (bool canSimulate) |
| virtual DtTime | exerciseStartTime () const |
| exercise start simulation time in seconds (defaults to 0.0). | |
| virtual void | setExerciseStartTime (DtTime time) |
| virtual DtTime | simTime () const |
| simulation time (simulation time elapsed since start of simulation) in seconds (defaults to 0.0). | |
| virtual void | setSimTime (DtTime time) |
| virtual DtTime | runDurationTime () const |
| Duration the scenario is scheduled to run. | |
| virtual void | setRunDurationTime (DtTime) |
| virtual DtTime | simStartSimTime () const |
| simulation time at start of simulation (defaults to 0.0). | |
| virtual void | setSimStartSimTime (DtTime time) |
| virtual double | timeMultiplier () const |
| Set faster or slower than real-time operation (defaults to 1.0). | |
| virtual void | setTimeMultiplier (double timeMultiplier) |
| virtual void | setLoadingScenario (bool) |
| Only sent once. Will be set when the scenario is being loaded. | |
| virtual bool | loadingScenario () const |
| virtual void | setClosingScenario (bool) |
| Only sent once. Will be set when the scenario is being closed. | |
| virtual bool | closingScenario () const |
| virtual void | setLoadedNewScenario (bool) |
| Only sent once. | |
| virtual bool | loadedNewScenario () const |
| virtual bool | isCurrentParameterDb () const |
| Flag indicating whether parameter database is old file format or not. | |
| virtual void | setIsCurrentParameterDb (bool isCurrentParameterDb) |
| virtual bool | isResourceMonitorEnabled () const |
| Flag indicating if resource manager is enabled. | |
| virtual void | setIsResourceMonitorEnabled (bool isEnabled) |
| virtual void | setIsTimeManaged (bool yesNo) |
| virtual bool | isTimeManaged () const |
| virtual void | setSendStatusOnChange (bool) |
| If true (default) will send status message when anything changes. | |
| virtual bool | sendStatusOnChange () const |
| virtual void | addLocalObject (int kind, int domain) |
| Adds/removes local objects. This will not send out an immediate message. | |
| virtual void | removeLocalObject (int kind, int domain) |
Static Public Member Functions | |
| static void | statusRequestCallback (DtSimMessage *msg, void *usr) |
| Handle status request messages from other status managers. | |
Protected Member Functions | |
| virtual void | processSimObjectAdded (DtVrfObject *) |
| virtual void | processSimObjectAboutToBeRemoved (DtVrfObject *) |
| DtVrfStatusPublisher (const DtVrfStatusPublisher &orig) | |
| copy constructor | |
| DtVrfStatusPublisher & | operator= (const DtVrfStatusPublisher &orig) |
| assignment operator | |
Static Protected Member Functions | |
| static void | simObjectAdded (DtVrfObject *, void *usr) |
| Calls for when objects are added/removed. Update object kind/domain count in status message. | |
| static void | simObjectAboutToBeRemoved (DtVrfObject *, void *usr) |
Protected Attributes | |
| DtVrfMessageInterface * | myMessageIf |
| Status of this node. | |
| int | myHeartbeatInterval |
| DtSimulationAddress | myAddress |
| bool | myIsActive |
| bool | myCanSimulate |
| DtTime | myLastResponseTime |
| bool | myIsOldParameterDb |
| bool | myHasBeenModified |
| bool | mySendStatusOnChange |
| bool | myLoadedNewScenario |
| DtVrfObjectManager * | myObjectManager |
| DtIfStatus * | myStatus |
Instances of DtVrfStatusPublisher are used to send information about a VR-Forces simulation engine to remote front ends or other control applications.
| DtVrfStatusPublisher::DtVrfStatusPublisher | ( | DtVrfMessageInterface * | messageIf, |
| DtVrfObjectManager * | mgr | ||
| ) |
constructor
|
virtual |
destructor
|
protected |
copy constructor
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This value determines how often to send out a status message.
|
virtual |
|
virtual |
Get IP address of this backend.
|
virtual |
|
virtual |
Get/Set our port number for file transferring.
|
virtual |
|
virtual |
Get/Set control state (e.g. paused, running)
|
virtual |
|
virtual |
Ticked by the simulation manager.
|
virtual |
Process status request messages from other status managers.
|
static |
Handle status request messages from other status managers.
|
virtual |
If true, this backend has been loaded with a scenario.
|
virtual |
|
virtual |
The following functions are obsolete.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
exercise start simulation time in seconds (defaults to 0.0).
|
virtual |
|
virtual |
simulation time (simulation time elapsed since start of simulation) in seconds (defaults to 0.0).
|
virtual |
|
virtual |
Duration the scenario is scheduled to run.
0 means run until user presses pause
|
virtual |
|
virtual |
simulation time at start of simulation (defaults to 0.0).
|
virtual |
|
virtual |
Set faster or slower than real-time operation (defaults to 1.0).
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being loaded.
|
virtual |
|
virtual |
Only sent once. Will be set when the scenario is being closed.
|
virtual |
|
virtual |
Only sent once.
Will be set then, once set, unset to signal a new scenario has just been loaded
|
virtual |
|
virtual |
Flag indicating whether parameter database is old file format or not.
Flag indicating if parameter database is current file format or not.
|
virtual |
|
virtual |
Flag indicating if resource manager is enabled.
When setting, if flag is different, status is published immediately
|
virtual |
|
virtual |
|
virtual |
|
virtual |
If true (default) will send status message when anything changes.
If false, will set myHasBeenModified to true, and, if this is reset to true, will send message if if the myHasBeenModified flag is also true
|
virtual |
Adds/removes local objects. This will not send out an immediate message.
|
staticprotected |
Calls for when objects are added/removed. Update object kind/domain count in status message.
|
protectedvirtual |
|
staticprotected |
|
protectedvirtual |
|
protected |
assignment operator
|
protected |
Status of this node.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |