|
WSF
|
#include <WsfXIO_PacketRegistry.hpp>


Public Types | |
| enum | CommandType { cSET_MAX_SIM_TIME , cREQUEST_TIME_MANAGEMENT , cSET_CLOCK_RATE , cPAUSE , cRESUME , cADVANCE_TIME , cSET_END_TIME , cSET_NON_REALTIME , cSET_REALTIME } |
| Public Types inherited from WsfXIO_Packet | |
| enum | PacketFlags { cSYNCHRONIZED = 1 } |
| typedef bool | BaseType |
Public Member Functions | |
| XIO_DEFINE_PACKET (WsfXIO_SimTimeCommandPkt, WsfXIO_Packet, 50) | |
| Public Member Functions inherited from WsfXIO_Packet | |
| WsfXIO_Packet (int aPacketId) | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| Serializes the packet header. Must be called first from derived class Serialize(). | |
| float | GetTimeStamp () const |
| void | SetTimeStamp (float aTimeStamp) |
| void | SetFlags (uint32_t aFlags) |
| void | AddFlags (uint32_t aFlags) |
| uint32_t | GetFlags () const |
Public Attributes | |
| int32_t | mCommandType |
| double | mSimTime |
| Public Attributes inherited from WsfXIO_Packet | |
| GenUniqueId | mApplicationId |
Additional Inherited Members | |
| Static Public Attributes inherited from WsfXIO_Packet | |
| static const int | cPACKET_ID = -1 |
| Protected Attributes inherited from WsfXIO_Packet | |
| uint32_t | mFlags |
| float | mTimeStamp |
| Enumerator | |
|---|---|
| cSET_MAX_SIM_TIME | Sets a maximum bound in simulation time that the simulation will execute. Upon reaching the bound, the simulation will wait. |
| cREQUEST_TIME_MANAGEMENT | Currently unused. Use WsfXIO_TimeSynchronization. |
| cSET_CLOCK_RATE | Change the simulation's clock rate. |
| cPAUSE | Pause the simulation. |
| cRESUME | Resume the paused simulation. |
| cADVANCE_TIME | Advance the simulation by mSimTime (seconds). |
| cSET_END_TIME | Sets the end-time of the simulation. |
| cSET_NON_REALTIME | Commands the simulation to execute in non-realtime. |
| cSET_REALTIME | Commands the simulation to execute in realtime. |
|
inline |
References mCommandType, mSimTime, and WsfXIO_Packet::WsfXIO_Packet().
| int32_t WsfXIO_SimTimeCommandPkt::mCommandType |
| double WsfXIO_SimTimeCommandPkt::mSimTime |
Referenced by wizard::WsfConnector::Stop(), and XIO_DEFINE_PACKET().