|
WSF
|
#include <WsfXIO_ObjectInfo.hpp>


Public Types | |
| enum | PlatformFlags { cEXTERNALLY_CONTROLLED = 1 } |
| using | PlatformPartInfo = WsfXIO_PlatformPartInfo |
| using | PartList = std::vector<WsfXIO_PlatformPartInfo*> |
| using | CommandChain = std::pair<WsfStringId, WsfStringId> |
| Public Types inherited from WsfXIO_ObjectInfo | |
| enum | { cPLATFORM_PART = 0x40000000 , cARTICULATED_PART = cPLATFORM_PART | 0x20000000 , cCOMPONENT_ROLE_MASK = 0x007fffff , cPART_TYPE_MASK = 0x607fffff , cDERIVED_TYPE_MASK = 0x1f800000 , cDERIVED_TYPE_BEGIN = 0x00800000 , cNO_OBJECT = 0 , cPLATFORM = cWSF_COMPONENT_PLATFORM , cTRACK_MANAGER = cWSF_COMPONENT_TRACK_MANAGER , cMOVER_PART = cPLATFORM_PART | cWSF_COMPONENT_MOVER , cCOMM_PART = cARTICULATED_PART | cWSF_COMPONENT_COMM , cPROCESSOR_PART = cPLATFORM_PART | cWSF_COMPONENT_PROCESSOR , cSENSOR_PART = cARTICULATED_PART | cWSF_COMPONENT_SENSOR } |
| using | ObjectType = int32_t |
Public Member Functions | |
| WsfXIO_PlatformInfo (ObjectType aType=cPART_INFO_ID) | |
| virtual | ~WsfXIO_PlatformInfo () |
| bool | operator== (const WsfXIO_PlatformInfo &aRhs) const |
| bool | operator== (const WsfXIO_EntityId &aRhs) const |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| void | SetHostConnection (WsfXIO_Connection *aConnectionPtr) |
| WsfXIO_Connection * | GetHostConnection () const |
| int | GetConnectionId () const |
| WsfXIO_PlatformId | GetId () const |
| int32_t | GetIndex () const |
| Index if the platform is in the simulation. | |
| WsfStringId | GetName () const |
| NameID of the platform or platform type. | |
| WsfStringId | GetType () const |
| NameID of the base type of the platform. | |
| WsfStringId | GetIcon () const |
| Platform icon. | |
| WsfStringId | GetSide () const |
| SideID of the platform. | |
| WsfStringId | GetMarking () const |
| WsfSpatialDomain | GetSpatialDomain () const |
| Spatial domain of the platform. | |
| void | AddPart (WsfXIO_PlatformPartInfo *aPartPtr) |
| unsigned int | GetPartCount () const |
| WsfXIO_PlatformPartInfo * | GetPartEntry (unsigned int aEntry) const |
| PartList::const_iterator | BeginParts () const |
| PartList::const_iterator | EndParts () const |
| PartList::iterator | BeginParts () |
| PartList::iterator | EndParts () |
| const PartList & | GetParts () const |
| WsfXIO_PlatformPartInfo * | FindPart (WsfStringId aPartName, int aType) |
| unsigned int | GetZoneCount () const |
| Returns the number of zones the platform uses. | |
| std::vector< WsfXIO_Zone >::const_iterator | BeginZones () const |
| Returns begin index to the list of Zone names. | |
| std::vector< WsfXIO_Zone >::const_iterator | EndZones () const |
| bool | UpdateState (double aSimTime) |
| void | SetStateRefTime (double aBaseTime) |
| bool | IsStateValid () const |
| const UtEntity & | GetState () const |
| UtEntity & | GetState () |
| WsfXIO_EntityId | GetEntityId () const |
| WsfXIO_EntityType | GetEntityType () const |
| const WsfXIO_TrackManagerInfo & | GetTrackManagerInfo () const |
| WsfXIO_TrackManagerInfo & | GetTrackManagerInfo () |
| const std::vector< CommandChain > & | GetCommanders () const |
| WsfAttributeContainer * | GetAuxData () const |
| void | RequestDelete () |
| Sends a request to delete this platform from the hosting simulation. | |
| Public Member Functions inherited from WsfXIO_ObjectInfo | |
| WsfXIO_ObjectInfo (ObjectType aObjectType) | |
| bool | IsPlatform () const |
| bool | IsTrackManager () const |
| bool | IsPlatformPart () const |
| bool | IsArticulatedPart () const |
| bool | IsSensor () const |
| bool | IsComm () const |
| bool | IsProcessor () const |
| bool | IsMover () const |
| ObjectType | GetObjectType () const |
| template<typename T> | |
| void | Serialize (T &aBuff) |
Public Attributes | |
| int32_t | mIndex |
| int32_t | mFlags |
| WsfStringId | mName |
| WsfStringId | mType |
| WsfStringId | mIcon |
| WsfStringId | mSide |
| WsfStringId | mMarking |
| WsfSpatialDomain | mSpatialDomain |
| std::vector< WsfXIO_PlatformPartInfo * > | mParts |
| bool | mStateValid |
| double | mEntityStateBaseTime |
| UtEntity | mEntityState |
| WsfXIO_EntityId | mEntityId |
| WsfXIO_EntityType | mEntityType |
| WsfXIO_TrackManagerInfo | mTrackManagerInfo |
| std::vector< CommandChain > | mCommanders |
| std::vector< WsfXIO_Zone > | mZoneNames |
| WsfRoute * | mRoutePtr |
| int | mTargetWaypointIndex |
| WsfXIO_MoverInfo * | mMoverPtr |
| WsfAttributeContainer * | mAuxDataPtr |
Static Public Attributes | |
| static const ObjectType | cPART_INFO_ID = cPLATFORM |
| using WsfXIO_PlatformInfo::CommandChain = std::pair<WsfStringId, WsfStringId> |
| using WsfXIO_PlatformInfo::PartList = std::vector<WsfXIO_PlatformPartInfo*> |
|
inline |
References cPART_INFO_ID, mAuxDataPtr, mEntityStateBaseTime, mEntityType, mFlags, mMoverPtr, mRoutePtr, mStateValid, mTargetWaypointIndex, mTrackManagerInfo, and WsfXIO_ObjectInfo::WsfXIO_ObjectInfo().
Referenced by operator==().
|
inline |
References mParts.
|
inline |
References mParts.
|
inline |
References mParts.
|
inline |
Returns begin index to the list of Zone names.
References mZoneNames.
|
inline |
References mParts.
|
inline |
References mParts.
|
inline |
References mZoneNames.
| WsfXIO_PlatformPartInfo * WsfXIO_PlatformInfo::FindPart | ( | WsfStringId | aPartName, |
| int | aType ) |
|
inline |
References mAuxDataPtr.
|
inline |
References mCommanders.
|
inline |
|
inline |
References mEntityId.
|
inline |
References mEntityType.
|
inline |
|
inline |
Platform icon.
References mIcon.
|
inline |
References mIndex.
|
inline |
Index if the platform is in the simulation.
References mIndex.
|
inline |
References mMarking.
|
inline |
|
inline |
References mParts.
|
inline |
References mParts.
|
inline |
SideID of the platform.
References mSide.
|
inline |
Spatial domain of the platform.
References mSpatialDomain.
|
inline |
References mEntityState.
|
inline |
References mEntityState.
|
inline |
References mTrackManagerInfo.
|
inline |
References mTrackManagerInfo.
|
inline |
NameID of the base type of the platform.
References mType.
|
inline |
Returns the number of zones the platform uses.
References mZoneNames.
|
inline |
References mEntityStateBaseTime.
| bool WsfXIO_PlatformInfo::operator== | ( | const WsfXIO_EntityId & | aRhs | ) | const |
References mEntityId.
| bool WsfXIO_PlatformInfo::operator== | ( | const WsfXIO_PlatformInfo & | aRhs | ) | const |
References mEntityId, and WsfXIO_PlatformInfo().
| void WsfXIO_PlatformInfo::RequestDelete | ( | ) |
Sends a request to delete this platform from the hosting simulation.
References GetHostConnection(), mIndex, WsfXIO_DeletePlatformPkt::mPlatformIndices, and WsfXIO_Connection::Send().
|
inline |
References mAuxDataPtr, mCommanders, mEntityId, mEntityType, mFlags, mIcon, mIndex, mMarking, mMoverPtr, mName, mParts, mRoutePtr, mSide, mSpatialDomain, mTargetWaypointIndex, mTrackManagerInfo, mType, and mZoneNames.
| void WsfXIO_PlatformInfo::SetHostConnection | ( | WsfXIO_Connection * | aConnectionPtr | ) |
|
inline |
References mEntityStateBaseTime.
| bool WsfXIO_PlatformInfo::UpdateState | ( | double | aSimTime | ) |
References mEntityState, mEntityStateBaseTime, and vel.
|
static |
Referenced by WsfXIO_PlatformInfo().
| WsfAttributeContainer* WsfXIO_PlatformInfo::mAuxDataPtr |
Referenced by GetAuxData(), WsfXIO_ObjectInfoLoad::Load_Platform(), Serialize(), and WsfXIO_PlatformInfo().
| std::vector<CommandChain> WsfXIO_PlatformInfo::mCommanders |
Referenced by GetCommanders(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| WsfXIO_EntityId WsfXIO_PlatformInfo::mEntityId |
Referenced by GetEntityId(), WsfXIO_ObjectInfoLoad::Load_Platform(), operator==(), operator==(), and Serialize().
| UtEntity WsfXIO_PlatformInfo::mEntityState |
Referenced by GetState(), GetState(), and UpdateState().
| double WsfXIO_PlatformInfo::mEntityStateBaseTime |
Referenced by IsStateValid(), SetStateRefTime(), UpdateState(), and WsfXIO_PlatformInfo().
| WsfXIO_EntityType WsfXIO_PlatformInfo::mEntityType |
Referenced by GetEntityType(), WsfXIO_ObjectInfoLoad::Load_Platform(), Serialize(), and WsfXIO_PlatformInfo().
| int32_t WsfXIO_PlatformInfo::mFlags |
Referenced by WsfXIO_ObjectInfoLoad::Load_Platform(), Serialize(), and WsfXIO_PlatformInfo().
| WsfStringId WsfXIO_PlatformInfo::mIcon |
Referenced by GetIcon(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| int32_t WsfXIO_PlatformInfo::mIndex |
Referenced by GetId(), GetIndex(), WsfXIO_ObjectInfoLoad::Load_Platform(), RequestDelete(), and Serialize().
| WsfStringId WsfXIO_PlatformInfo::mMarking |
Referenced by GetMarking(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| WsfXIO_MoverInfo* WsfXIO_PlatformInfo::mMoverPtr |
Referenced by WsfXIO_ObjectInfoLoad::Load_Platform(), Serialize(), WsfXIO_PlatformInfo(), and ~WsfXIO_PlatformInfo().
| WsfStringId WsfXIO_PlatformInfo::mName |
Referenced by GetName(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| std::vector<WsfXIO_PlatformPartInfo*> WsfXIO_PlatformInfo::mParts |
| WsfRoute* WsfXIO_PlatformInfo::mRoutePtr |
Referenced by WsfXIO_PlatformInfoService::HandleRequest(), Serialize(), and WsfXIO_PlatformInfo().
| WsfStringId WsfXIO_PlatformInfo::mSide |
Referenced by GetSide(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| WsfSpatialDomain WsfXIO_PlatformInfo::mSpatialDomain |
Referenced by GetSpatialDomain(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| bool WsfXIO_PlatformInfo::mStateValid |
Referenced by WsfXIO_PlatformInfo().
| int WsfXIO_PlatformInfo::mTargetWaypointIndex |
Referenced by WsfXIO_PlatformInfoService::HandleRequest(), Serialize(), and WsfXIO_PlatformInfo().
| WsfXIO_TrackManagerInfo WsfXIO_PlatformInfo::mTrackManagerInfo |
| WsfStringId WsfXIO_PlatformInfo::mType |
Referenced by GetType(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().
| std::vector<WsfXIO_Zone> WsfXIO_PlatformInfo::mZoneNames |
Referenced by BeginZones(), EndZones(), GetZoneCount(), WsfXIO_ObjectInfoLoad::Load_Platform(), and Serialize().