KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Linear_Object_State_PDU Class Reference

#include <Linear_Object_State_PDU.h>

Inheritance diagram for Linear_Object_State_PDU:
Collaboration diagram for Linear_Object_State_PDU:

Public Member Functions

void AddLinearSegmentParameter (const KDIS::DATA_TYPE::LinearSegmentParameter &L)
 Description: Specifies the parameter values for representing each linear segment. More...
 
virtual void Decode (KDataStream &stream, bool ignoreHeader=false) throw ( KException )
 Description: Convert From Network Data. More...
 
virtual KDataStream Encode () const
 Description: Convert To Network Data. More...
 
virtual void Encode (KDataStream &stream) const
 
virtual KString GetAsString () const
 Description: Returns a string representation of the PDU. More...
 
const std::vector
< KDIS::DATA_TYPE::LinearSegmentParameter > & 
GetLinearSegmentParameters () const
 
KUINT8 GetNumberOfSegments () const
 Description: The number of Linear Segment Parameter records contained within this PDU. More...
 
const KDIS::DATA_TYPE::ObjectTypeGetObjectType () const
 
KDIS::DATA_TYPE::ObjectTypeGetObjectType ()
 
const
KDIS::DATA_TYPE::SimulationIdentifier
GetReceivingSimulationID () const
 
KDIS::DATA_TYPE::SimulationIdentifierGetReceivingSimulationID ()
 
const
KDIS::DATA_TYPE::SimulationIdentifier
GetRequestorSimulationID () const
 
KDIS::DATA_TYPE::SimulationIdentifierGetRequestorSimulationID ()
 
 Linear_Object_State_PDU ()
 
 Linear_Object_State_PDU (KDataStream &stream) throw ( KException )
 
 Linear_Object_State_PDU (const Header &H, KDataStream &stream) throw ( KException )
 
 Linear_Object_State_PDU (const KDIS::DATA_TYPE::EntityIdentifier &ObjID, const KDIS::DATA_TYPE::EntityIdentifier &RefObjID, KUINT16 UpdateNum, KDIS::DATA_TYPE::ENUMS::ForceID FI, const KDIS::DATA_TYPE::SimulationIdentifier &ReqID, const KDIS::DATA_TYPE::SimulationIdentifier &RecvID, const KDIS::DATA_TYPE::ObjectType &O)
 
 Linear_Object_State_PDU (const KDIS::DATA_TYPE::EntityIdentifier &ObjID, const KDIS::DATA_TYPE::EntityIdentifier &RefObjID, KUINT16 UpdateNum, KDIS::DATA_TYPE::ENUMS::ForceID FI, const KDIS::DATA_TYPE::SimulationIdentifier &ReqID, const KDIS::DATA_TYPE::SimulationIdentifier &RecvID, const KDIS::DATA_TYPE::ObjectType &O, std::vector< KDIS::DATA_TYPE::LinearSegmentParameter > &Segments)
 
KBOOL operator!= (const Linear_Object_State_PDU &Value) const
 
KBOOL operator== (const Linear_Object_State_PDU &Value) const
 
void SetLinearSegmentParameters (const std::vector< KDIS::DATA_TYPE::LinearSegmentParameter > &L)
 
void SetObjectType (const KDIS::DATA_TYPE::ObjectType &O)
 Description: The type of object. Represented as DIS enumeration(domain, kind, Category and sub category). More...
 
void SetReceivingSimulationID (const KDIS::DATA_TYPE::SimulationIdentifier &ID)
 Description: The simulation application that is to receive the PDU. More...
 
void SetRequestorSimulationID (const KDIS::DATA_TYPE::SimulationIdentifier &ID)
 Description: The simulation application sending the PDU. More...
 
virtual ~Linear_Object_State_PDU ()
 
- Public Member Functions inherited from Object_State_Header
KDIS::DATA_TYPE::ENUMS::ForceID GetForceID () const
 
const
KDIS::DATA_TYPE::EntityIdentifier
GetObjectID () const
 
KDIS::DATA_TYPE::EntityIdentifierGetObjectID ()
 
const
KDIS::DATA_TYPE::EntityIdentifier
GetReferencedObjectID () const
 
KDIS::DATA_TYPE::EntityIdentifierGetReferencedObjectID ()
 
KUINT16 GetUpdateNumber () const
 
 Object_State_Header ()
 
 Object_State_Header (const Header &H)
 
 Object_State_Header (KDataStream &stream) throw ( KException )
 
 Object_State_Header (const Header &H, KDataStream &stream) throw ( KException )
 
 Object_State_Header (const KDIS::DATA_TYPE::EntityIdentifier &ObjID, const KDIS::DATA_TYPE::EntityIdentifier &RefObjID, KUINT16 UpdateNum, KDIS::DATA_TYPE::ENUMS::ForceID FI)
 
KBOOL operator!= (const Object_State_Header &Value) const
 
KBOOL operator== (const Object_State_Header &Value) const
 
void SetForceID (KDIS::DATA_TYPE::ENUMS::ForceID ID)
 Description: Identifies the force that created or modified the object. More...
 
void SetObjectID (const KDIS::DATA_TYPE::EntityIdentifier &ID)
 Description: The unique identification of the object in the SE. More...
 
void SetReferencedObjectID (const KDIS::DATA_TYPE::EntityIdentifier &ID)
 
void SetUpdateNumber (KUINT16 U)
 
virtual ~Object_State_Header ()
 
- Public Member Functions inherited from Header7
KUINT8 GetPDUStatus () const
 
KBOOL GetPDUStatusCEI () const
 
KDIS::DATA_TYPE::ENUMS::DetonationType GetPDUStatusDTI () const
 
KBOOL GetPDUStatusFTI () const
 
KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusIAI () const
 
KDIS::DATA_TYPE::ENUMS::LVCIndicator GetPDUStatusLVC () const
 
KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusRAI () const
 
KBOOL GetPDUStatusSM () const
 
KBOOL GetPDUStatusTEI () const
 
 Header7 ()
 
 Header7 (KDataStream &stream) throw ( KException )
 
 Header7 (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV, KUINT8 ExerciseID, KDIS::DATA_TYPE::ENUMS::PDUType PT, KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF, const KDIS::DATA_TYPE::TimeStamp &TS, KUINT16 PDULength)
 
KBOOL operator!= (const Header7 &Value) const
 
KBOOL operator== (const Header7 &Value) const
 
void SetPDUStatus (KUINT8 S)
 Description: The entire PDU status field. More...
 
void SetPDUStatusCEI (KBOOL CEI)
 
void SetPDUStatusDTI (KDIS::DATA_TYPE::ENUMS::DetonationType DTI)
 
void SetPDUStatusFTI (KBOOL FTI)
 
void SetPDUStatusIAI (KDIS::DATA_TYPE::ENUMS::AttachedIndicator RAI)
 
void SetPDUStatusLVC (KDIS::DATA_TYPE::ENUMS::LVCIndicator LVC)
 
void SetPDUStatusRAI (KDIS::DATA_TYPE::ENUMS::AttachedIndicator RAI)
 
void SetPDUStatusSM (KBOOL SM)
 
void SetPDUStatusTEI (KBOOL TEI)
 PDU: See Header7 description to see which PDU's use this field. More...
 
virtual ~Header7 ()
 
- Public Member Functions inherited from Header6
KUINT8 GetExerciseID () const
 
KUINT16 GetPDULength () const
 
KDIS::DATA_TYPE::ENUMS::PDUType GetPDUType () const
 
KDIS::DATA_TYPE::ENUMS::ProtocolFamily GetProtocolFamily () const
 
KDIS::DATA_TYPE::ENUMS::ProtocolVersion GetProtocolVersion () const
 
const KDIS::DATA_TYPE::TimeStampGetTimeStamp () const
 
KDIS::DATA_TYPE::TimeStampGetTimeStamp ()
 
 Header6 ()
 
 Header6 (KDataStream &stream) throw ( KException )
 
 Header6 (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV, KUINT8 ExerciseID, KDIS::DATA_TYPE::ENUMS::PDUType PT, KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF, const KDIS::DATA_TYPE::TimeStamp &TS, KUINT16 PDULength)
 
KBOOL operator!= (const Header6 &Value) const
 
KBOOL operator== (const Header6 &Value) const
 
void SetExerciseID (KUINT8 EID)
 
void SetPDULength (KUINT16 PDUL)
 
void SetPDUType (KDIS::DATA_TYPE::ENUMS::PDUType Type)
 
void SetProtocolFamily (KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF)
 
void SetProtocolVersion (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV)
 to the mimimum version of DIS required to support the current PDU. More...
 
void SetTimeStamp (const KDIS::DATA_TYPE::TimeStamp &TS)
 
virtual ~Header6 ()
 

Static Public Attributes

static const KUINT16 LINEAR_OBJECT_STATE_PDU_SIZE = 40
 
- Static Public Attributes inherited from Object_State_Header
static const KUINT16 OBJECT_STATE_HEADER_SIZE = 27
 
- Static Public Attributes inherited from Header6
static const KUINT16 HEADER6_PDU_SIZE = 12
 

Protected Attributes

KDIS::DATA_TYPE::ObjectType m_ObjTyp
 
KDIS::DATA_TYPE::SimulationIdentifier m_RecvID
 
KDIS::DATA_TYPE::SimulationIdentifier m_ReqID
 
KUINT8 m_ui8NumSegment
 
std::vector
< KDIS::DATA_TYPE::LinearSegmentParameter
m_vSegments
 
- Protected Attributes inherited from Object_State_Header
KDIS::DATA_TYPE::EntityIdentifier m_ObjID
 
KDIS::DATA_TYPE::EntityIdentifier m_RefObjID
 
KUINT16 m_ui16UpdateNum
 
KUINT8 m_ui8ForceID
 
- Protected Attributes inherited from Header7
union {
   struct {
      union {
         struct {
            KUINT8   m_ui8PDUStatusBit5: 1
 
            KUINT8   m_ui8PDUStatusFTI: 1
 
         } 
 
         KUINT8   m_ui8PDUStatusDTI_RAI_IAI: 2
 
      } 
 
      KUINT8   m_ui8PDUStatusBit6: 1
 
      KUINT8   m_ui8PDUStatusCEI: 1
 
      KUINT8   m_ui8PDUStatusLVC: 2
 
      KUINT8   m_ui8PDUStatusSM: 1
 
      KUINT8   m_ui8PDUStatusTEI: 1
 
   } 
 
   KUINT8   m_ui8PDUStatus
 
m_PDUStatusUnion
 
- Protected Attributes inherited from Header6
KDIS::DATA_TYPE::TimeStamp m_TimeStamp
 
KUINT16 m_ui16PDULength
 
KUINT8 m_ui8ExerciseID
 
KUINT8 m_ui8Padding1
 
KUINT8 m_ui8Padding2
 
KUINT8 m_ui8PDUType
 
KUINT8 m_ui8ProtocolFamily
 
KUINT8 m_ui8ProtocolVersion
 

Constructor & Destructor Documentation

Linear_Object_State_PDU ( const Header H,
KDataStream stream 
)
throw (KException
)
virtual ~Linear_Object_State_PDU ( )
virtual

Member Function Documentation

KUINT8 GetNumberOfSegments ( ) const

Description: The number of Linear Segment Parameter records contained within this PDU.

void SetRequestorSimulationID ( const KDIS::DATA_TYPE::SimulationIdentifier ID)

Description: The simulation application sending the PDU.

const KDIS::DATA_TYPE::SimulationIdentifier& GetRequestorSimulationID ( ) const
KDIS::DATA_TYPE::SimulationIdentifier& GetRequestorSimulationID ( )
void SetReceivingSimulationID ( const KDIS::DATA_TYPE::SimulationIdentifier ID)

Description: The simulation application that is to receive the PDU.

const KDIS::DATA_TYPE::SimulationIdentifier& GetReceivingSimulationID ( ) const
KDIS::DATA_TYPE::SimulationIdentifier& GetReceivingSimulationID ( )
void SetObjectType ( const KDIS::DATA_TYPE::ObjectType O)

Description: The type of object. Represented as DIS enumeration(domain, kind, Category and sub category).

const KDIS::DATA_TYPE::ObjectType& GetObjectType ( ) const
KDIS::DATA_TYPE::ObjectType& GetObjectType ( )
void AddLinearSegmentParameter ( const KDIS::DATA_TYPE::LinearSegmentParameter L)

Description: Specifies the parameter values for representing each linear segment.

void SetLinearSegmentParameters ( const std::vector< KDIS::DATA_TYPE::LinearSegmentParameter > &  L)
const std::vector<KDIS::DATA_TYPE::LinearSegmentParameter>& GetLinearSegmentParameters ( ) const
virtual KString GetAsString ( ) const
virtual

Description: Returns a string representation of the PDU.

Reimplemented from Object_State_Header.

virtual void Decode ( KDataStream stream,
bool  ignoreHeader = false 
)
throw (KException
)
virtual

Description: Convert From Network Data.

Reimplemented from Object_State_Header.

virtual KDataStream Encode ( ) const
virtual

Description: Convert To Network Data.

Reimplemented from Object_State_Header.

virtual void Encode ( KDataStream stream) const
virtual

Reimplemented from Object_State_Header.

KBOOL operator== ( const Linear_Object_State_PDU Value) const
KBOOL operator!= ( const Linear_Object_State_PDU Value) const

Member Data Documentation

KUINT8 m_ui8NumSegment
protected
KDIS::DATA_TYPE::ObjectType m_ObjTyp
protected
std::vector<KDIS::DATA_TYPE::LinearSegmentParameter> m_vSegments
protected
const KUINT16 LINEAR_OBJECT_STATE_PDU_SIZE = 40
static

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