WSF
WsfXIO_SimTimeCommandPkt Class Reference

#include <WsfXIO_PacketRegistry.hpp>

Inheritance diagram for WsfXIO_SimTimeCommandPkt:
Collaboration diagram for WsfXIO_SimTimeCommandPkt:

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

Member Enumeration Documentation

◆ CommandType

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.

Member Function Documentation

◆ XIO_DEFINE_PACKET()

WsfXIO_SimTimeCommandPkt::XIO_DEFINE_PACKET ( WsfXIO_SimTimeCommandPkt ,
WsfXIO_Packet ,
50  )
inline

Member Data Documentation

◆ mCommandType

◆ mSimTime

double WsfXIO_SimTimeCommandPkt::mSimTime

The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved