WSF
WsfExtData Class Reference

#include <WsfExtInterface.hpp>

Inheritance diagram for WsfExtData:
Collaboration diagram for WsfExtData:

Public Types

using Component = WsfExtInterfaceComponent
using ComponentList = WsfComponentListT<WsfExtInterfaceComponent>

Public Member Functions

 WsfExtData (WsfScenario &aScenario)
virtual ~WsfExtData ()
void AddComponent (Component *aComponentPtr)
const ComponentListGetComponents () const
virtual bool ProcessInput (WsfScenario &aScenario, UtInput &aInput)
WsfExtEmissionGetEmission () const
bool ProcessDeadReckonInput (UtInput &aInput)
void ProcessEntityType (UtInput &aInput)
void ProcessRadioEntityType (UtInput &aInput)
void ProcessExternalEntity (UtInput &aInput)
void ProcessExternalType (UtInput &aInput)
bool ProcessEntityId (std::string aName, int aEntityId)
void ProcessEntityId (UtInput &aInput)
void WriteEntityTypes (WsfScenario &aScenario, std::ostream &aStream)
 Prints entity type mapping for each platform type.
void WriteEmitterTypes (WsfScenario &aScenario, std::ostream &aStream)
 Prints entity type mapping for each platform type.
bool GetEntityType (WsfStringId aObjectTypeId, WsfExtEntityType &aEntityType) const
bool GetRadioEntityType (WsfStringId aCommTypeId, WsfExtRadioEntityType &aEntityType) const
bool GetEntityType (const WsfObject *aObjectPtr, WsfExtEntityType &aEntityType) const
 Given an object, select a entity type.
int GetForceId (WsfStringId aSideId) const
 Return the force ID that corresponds to a given WSF side ID.
WsfStringId GetSideId (int aForceId) const
 Return the WSF side ID that corresponds to the given force ID.
void SelectEntityType (WsfPlatform *aPlatformPtr, WsfExtEntityType &aEntityType) const
 Given a platform, select an entity type.
WsfStringId GetStringId (const WsfExtEntityType &aEntityType) const
WsfStringId GetStringId (const WsfExtRadioEntityType &aEntityType) const
bool GetRadioEntityType (const wsf::comm::Comm *aCommPtr, WsfExtRadioEntityType &aEntityType) const
 Given an object, select a entity type.
bool CompleteLoad (WsfScenario &aScenario)

Static Public Member Functions

static void ReadEntityType (UtInput &aInput, WsfExtEntityType &aEntityType)
static void ReadEntityId (UtInput &aInput, WsfExtEntityId &aEntityId)
static void ReadRadioEntityType (UtInput &aInput, WsfExtRadioEntityType &aEntityType)
static void ConvertInputToEntityId (std::string &aInput, WsfExtEntityId &aEntityId)
static void ConvertInputToEntityType (std::string &aInput, WsfExtEntityType &aEntityType)
static void ConvertInputToRadioEntityType (std::string &aInput, WsfExtRadioEntityType &aEntityType)

Public Attributes

bool mAllPrivate
std::set< WsfStringIdmPrivateTypeId
std::set< WsfStringIdmPrivateNameId
WsfCategoryList mPrivateCategoryId
uint16_t mStartEntity
unsigned short mSiteId
unsigned short mApplicationId
double mDeferredConnectionTime
double mDeferredPDUSendTime
 Deferred time before any DIS PDUs can be sent.
bool mDebugDetonationEnabled
std::map< WsfStringId, double > mTargetPriority
WsfStringId mUnknownPlatformTypeId
std::map< WsfStringId, int > mSideIdToForceId
std::map< WsfStringId, WsfExtEntityTypemObjectTypeToEntityType
std::map< WsfExtEntityType, WsfStringIdmEntityTypeToObjectType
std::map< WsfStringId, WsfExtRadioEntityTypemCommTypeToRadioEntityType
std::map< WsfExtRadioEntityType, WsfStringIdmRadioEntityTypeToCommType
WsfExtEntityDeadReckonSetup mDR_Setup
std::bitset< 65536U > mPreassignedEntityIds
std::map< WsfStringId, uint16_t > mPlatformNameToEntityId
std::set< WsfExtEntityIdmExternalEntityIds
std::set< WsfExtEntityTypemExternalEntityTypes
WsfExtEmissionmEmissionPtr

Protected Attributes

ComponentList mComponents

Detailed Description

Ext Interface configuration data to be populated by ProcessInput and copied into WsfExtInterface upon creation

Member Typedef Documentation

◆ Component

◆ ComponentList

Constructor & Destructor Documentation

◆ WsfExtData()

◆ ~WsfExtData()

WsfExtData::~WsfExtData ( )
virtual

References mEmissionPtr.

Member Function Documentation

◆ AddComponent()

void WsfExtData::AddComponent ( Component * aComponentPtr)
inline

References mComponents.

Referenced by WsfMilExtension::AddedToScenario().

◆ CompleteLoad()

bool WsfExtData::CompleteLoad ( WsfScenario & aScenario)

References mComponents.

◆ ConvertInputToEntityId()

void WsfExtData::ConvertInputToEntityId ( std::string & aInput,
WsfExtEntityId & aEntityId )
static

◆ ConvertInputToEntityType()

◆ ConvertInputToRadioEntityType()

◆ GetComponents()

const ComponentList & WsfExtData::GetComponents ( ) const
inline

References mComponents.

Referenced by WsfMilExtInterface::Find().

◆ GetEmission()

◆ GetEntityType() [1/2]

bool WsfExtData::GetEntityType ( const WsfObject * aObjectPtr,
WsfExtEntityType & aEntityType ) const

Given an object, select a entity type.

References WsfObject::GetTypeList(), and mObjectTypeToEntityType.

◆ GetEntityType() [2/2]

◆ GetForceId()

int WsfExtData::GetForceId ( WsfStringId aSideId) const

Return the force ID that corresponds to a given WSF side ID.

References mSideIdToForceId.

◆ GetRadioEntityType() [1/2]

bool WsfExtData::GetRadioEntityType ( const wsf::comm::Comm * aCommPtr,
WsfExtRadioEntityType & aEntityType ) const

Given an object, select a entity type.

References WsfObject::GetTypeList(), and mCommTypeToRadioEntityType.

◆ GetRadioEntityType() [2/2]

bool WsfExtData::GetRadioEntityType ( WsfStringId aCommTypeId,
WsfExtRadioEntityType & aEntityType ) const

◆ GetSideId()

WsfStringId WsfExtData::GetSideId ( int aForceId) const

Return the WSF side ID that corresponds to the given force ID.

References mSideIdToForceId.

◆ GetStringId() [1/2]

◆ GetStringId() [2/2]

WsfStringId WsfExtData::GetStringId ( const WsfExtRadioEntityType & aEntityType) const

◆ ProcessDeadReckonInput()

bool WsfExtData::ProcessDeadReckonInput ( UtInput & aInput)

References mDR_Setup.

Referenced by ProcessInput().

◆ ProcessEntityId() [1/2]

bool WsfExtData::ProcessEntityId ( std::string aName,
int aEntityId )

◆ ProcessEntityId() [2/2]

void WsfExtData::ProcessEntityId ( UtInput & aInput)

References ok, and ProcessEntityId().

◆ ProcessEntityType()

void WsfExtData::ProcessEntityType ( UtInput & aInput)

◆ ProcessExternalEntity()

void WsfExtData::ProcessExternalEntity ( UtInput & aInput)

References mExternalEntityIds, and ReadEntityId().

Referenced by ProcessInput().

◆ ProcessExternalType()

void WsfExtData::ProcessExternalType ( UtInput & aInput)

References mExternalEntityTypes, and ReadEntityType().

Referenced by ProcessInput().

◆ ProcessInput()

◆ ProcessRadioEntityType()

void WsfExtData::ProcessRadioEntityType ( UtInput & aInput)

◆ ReadEntityId()

void WsfExtData::ReadEntityId ( UtInput & aInput,
WsfExtEntityId & aEntityId )
static

◆ ReadEntityType()

void WsfExtData::ReadEntityType ( UtInput & aInput,
WsfExtEntityType & aEntityType )
static

Read a Entity Type from an input stream.

Parameters
aInputThe input stream
aEntityTypeThe value read from the stream.

References ConvertInputToEntityType().

Referenced by ProcessEntityType(), and ProcessExternalType().

◆ ReadRadioEntityType()

void WsfExtData::ReadRadioEntityType ( UtInput & aInput,
WsfExtRadioEntityType & aRadioEntityType )
static

Read a Radio Entity Type from an input stream.

Parameters
aInputThe input stream
aRadioEntityTypeThe value read from the stream.

References ConvertInputToRadioEntityType().

Referenced by ProcessRadioEntityType().

◆ SelectEntityType()

void WsfExtData::SelectEntityType ( WsfPlatform * aPlatformPtr,
WsfExtEntityType & aEntityType ) const

Given a platform, select an entity type.

References GetEntityType(), WsfPlatform::GetIconId(), and mObjectTypeToEntityType.

Referenced by WsfDisPlatform::WsfDisPlatform().

◆ WriteEmitterTypes()

void WsfExtData::WriteEmitterTypes ( WsfScenario & aScenario,
std::ostream & aStream )

◆ WriteEntityTypes()

void WsfExtData::WriteEntityTypes ( WsfScenario & aScenario,
std::ostream & aStream )

Prints entity type mapping for each platform type.

References WsfObjectTypeList< T >::Find(), WsfPlatformTypes::Get(), GetEntityType(), GetStringId(), WsfObjectTypeListBase::GetTypeIds(), and platformPtr.

Referenced by ProcessInput().

Member Data Documentation

◆ mAllPrivate

bool WsfExtData::mAllPrivate

◆ mApplicationId

unsigned short WsfExtData::mApplicationId

◆ mCommTypeToRadioEntityType

std::map<WsfStringId, WsfExtRadioEntityType> WsfExtData::mCommTypeToRadioEntityType

◆ mComponents

ComponentList WsfExtData::mComponents
protected

◆ mDebugDetonationEnabled

bool WsfExtData::mDebugDetonationEnabled

Referenced by WsfExtData().

◆ mDeferredConnectionTime

double WsfExtData::mDeferredConnectionTime

◆ mDeferredPDUSendTime

double WsfExtData::mDeferredPDUSendTime

Deferred time before any DIS PDUs can be sent.

Referenced by WsfExtInterface::GetDeferredPDUSendTime(), ProcessInput(), and WsfExtData().

◆ mDR_Setup

WsfExtEntityDeadReckonSetup WsfExtData::mDR_Setup

Referenced by ProcessDeadReckonInput().

◆ mEmissionPtr

◆ mEntityTypeToObjectType

◆ mExternalEntityIds

std::set<WsfExtEntityId> WsfExtData::mExternalEntityIds

◆ mExternalEntityTypes

std::set<WsfExtEntityType> WsfExtData::mExternalEntityTypes

◆ mObjectTypeToEntityType

◆ mPlatformNameToEntityId

std::map<WsfStringId, uint16_t> WsfExtData::mPlatformNameToEntityId

◆ mPreassignedEntityIds

◆ mPrivateCategoryId

◆ mPrivateNameId

std::set<WsfStringId> WsfExtData::mPrivateNameId

◆ mPrivateTypeId

◆ mRadioEntityTypeToCommType

std::map<WsfExtRadioEntityType, WsfStringId> WsfExtData::mRadioEntityTypeToCommType

◆ mSideIdToForceId

std::map<WsfStringId, int> WsfExtData::mSideIdToForceId

◆ mSiteId

unsigned short WsfExtData::mSiteId

◆ mStartEntity

uint16_t WsfExtData::mStartEntity

◆ mTargetPriority

std::map<WsfStringId, double> WsfExtData::mTargetPriority

Referenced by ProcessInput().

◆ mUnknownPlatformTypeId


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