|
WSF
|
#include <WsfExtInterface.hpp>


Public Types | |
| using | Component = WsfExtInterfaceComponent |
| using | ComponentList = WsfComponentListT<WsfExtInterfaceComponent> |
Public Member Functions | |
| WsfExtData (WsfScenario &aScenario) | |
| virtual | ~WsfExtData () |
| void | AddComponent (Component *aComponentPtr) |
| const ComponentList & | GetComponents () const |
| virtual bool | ProcessInput (WsfScenario &aScenario, UtInput &aInput) |
| WsfExtEmission * | GetEmission () 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) |
Protected Attributes | |
| ComponentList | mComponents |
Ext Interface configuration data to be populated by ProcessInput and copied into WsfExtInterface upon creation
| WsfExtData::WsfExtData | ( | WsfScenario & | aScenario | ) |
References mAllPrivate, mApplicationId, mDebugDetonationEnabled, mDeferredConnectionTime, mDeferredPDUSendTime, mEmissionPtr, mSiteId, mStartEntity, and mUnknownPlatformTypeId.
Referenced by WsfExtInterface::WsfExtInterface().
|
virtual |
References mEmissionPtr.
|
inline |
References mComponents.
Referenced by WsfMilExtension::AddedToScenario().
| bool WsfExtData::CompleteLoad | ( | WsfScenario & | aScenario | ) |
References mComponents.
|
static |
References WsfExtEntityId::SetApplication(), WsfExtEntityId::SetEntity(), and WsfExtEntityId::SetSite().
Referenced by WsfDisInterface::ReadEntityId(), and ReadEntityId().
|
static |
References WsfExtEntityType::mCategory, WsfExtEntityType::mCountry, WsfExtEntityType::mDomain, WsfExtEntityType::mEntityKind, WsfExtEntityType::mExtra, WsfExtEntityType::mSpecific, and WsfExtEntityType::mSubcategory.
Referenced by WsfDisInput::ProcessBlockInput(), WsfDisInterface::ReadEntityType(), and ReadEntityType().
|
static |
|
inline |
References mComponents.
Referenced by WsfMilExtInterface::Find().
|
inline |
| bool WsfExtData::GetEntityType | ( | const WsfObject * | aObjectPtr, |
| WsfExtEntityType & | aEntityType ) const |
Given an object, select a entity type.
References WsfObject::GetTypeList(), and mObjectTypeToEntityType.
| bool WsfExtData::GetEntityType | ( | WsfStringId | aObjectTypeId, |
| WsfExtEntityType & | aEntityType ) const |
References mObjectTypeToEntityType.
Referenced by WsfDisWeaponEvents::DirectedEnergyWeaponFired(), SelectEntityType(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), and WriteEntityTypes().
| int WsfExtData::GetForceId | ( | WsfStringId | aSideId | ) | const |
Return the force ID that corresponds to a given WSF side ID.
References mSideIdToForceId.
| bool WsfExtData::GetRadioEntityType | ( | const wsf::comm::Comm * | aCommPtr, |
| WsfExtRadioEntityType & | aEntityType ) const |
Given an object, select a entity type.
References WsfObject::GetTypeList(), and mCommTypeToRadioEntityType.
| bool WsfExtData::GetRadioEntityType | ( | WsfStringId | aCommTypeId, |
| WsfExtRadioEntityType & | aEntityType ) const |
References mCommTypeToRadioEntityType.
| WsfStringId WsfExtData::GetSideId | ( | int | aForceId | ) | const |
Return the WSF side ID that corresponds to the given force ID.
References mSideIdToForceId.
| WsfStringId WsfExtData::GetStringId | ( | const WsfExtEntityType & | aEntityType | ) | const |
| WsfStringId WsfExtData::GetStringId | ( | const WsfExtRadioEntityType & | aEntityType | ) | const |
References mRadioEntityTypeToCommType.
| bool WsfExtData::ProcessDeadReckonInput | ( | UtInput & | aInput | ) |
References mDR_Setup.
Referenced by ProcessInput().
| bool WsfExtData::ProcessEntityId | ( | std::string | aName, |
| int | aEntityId ) |
References WsfExtInterface::cALL_ENTITIES, WsfExtInterface::cNO_ENTITY, WsfExtInterface::cRQST_ASSIGN_ID, mPlatformNameToEntityId, mPreassignedEntityIds, and ok.
Referenced by ProcessEntityId(), and ProcessInput().
| void WsfExtData::ProcessEntityId | ( | UtInput & | aInput | ) |
References ok, and ProcessEntityId().
| void WsfExtData::ProcessEntityType | ( | UtInput & | aInput | ) |
References mEntityTypeToObjectType, mObjectTypeToEntityType, and ReadEntityType().
Referenced by ProcessInput(), and WsfMilExtInterface::ProcessInput().
| void WsfExtData::ProcessExternalEntity | ( | UtInput & | aInput | ) |
References mExternalEntityIds, and ReadEntityId().
Referenced by ProcessInput().
| void WsfExtData::ProcessExternalType | ( | UtInput & | aInput | ) |
References mExternalEntityTypes, and ReadEntityType().
Referenced by ProcessInput().
|
virtual |
References mAllPrivate, mApplicationId, mComponents, mDeferredConnectionTime, mDeferredPDUSendTime, mEmissionPtr, mPrivateCategoryId, mPrivateNameId, mPrivateTypeId, mSideIdToForceId, mSiteId, mStartEntity, mTargetPriority, mUnknownPlatformTypeId, ProcessDeadReckonInput(), ProcessEntityId(), ProcessEntityType(), ProcessExternalEntity(), ProcessExternalType(), ProcessRadioEntityType(), WriteEmitterTypes(), and WriteEntityTypes().
| void WsfExtData::ProcessRadioEntityType | ( | UtInput & | aInput | ) |
References mCommTypeToRadioEntityType, mRadioEntityTypeToCommType, and ReadRadioEntityType().
Referenced by ProcessInput().
|
static |
References ConvertInputToEntityId().
Referenced by ProcessExternalEntity().
|
static |
Read a Entity Type from an input stream.
| aInput | The input stream |
| aEntityType | The value read from the stream. |
References ConvertInputToEntityType().
Referenced by ProcessEntityType(), and ProcessExternalType().
|
static |
Read a Radio Entity Type from an input stream.
| aInput | The input stream |
| aRadioEntityType | The value read from the stream. |
References ConvertInputToRadioEntityType().
Referenced by ProcessRadioEntityType().
| 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().
| void WsfExtData::WriteEmitterTypes | ( | WsfScenario & | aScenario, |
| std::ostream & | aStream ) |
Prints entity type mapping for each platform type.
References WsfObjectTypeList< T >::Find(), WsfSensorTypes::Get(), WsfObjectTypeListBase::GetTypeIds(), WsfSensor::IsClassActive(), WsfSensor::IsClassRadio(), mComponents, and mEmissionPtr.
Referenced by ProcessInput().
| 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().
| bool WsfExtData::mAllPrivate |
Referenced by WsfExtInterface::IsPrivate(), ProcessInput(), and WsfExtData().
| unsigned short WsfExtData::mApplicationId |
Referenced by WsfExtInterface::GetApplicationId(), ProcessInput(), and WsfExtData().
| std::map<WsfStringId, WsfExtRadioEntityType> WsfExtData::mCommTypeToRadioEntityType |
Referenced by GetRadioEntityType(), GetRadioEntityType(), and ProcessRadioEntityType().
|
protected |
Referenced by AddComponent(), CompleteLoad(), GetComponents(), ProcessInput(), and WriteEmitterTypes().
| bool WsfExtData::mDebugDetonationEnabled |
Referenced by WsfExtData().
| double WsfExtData::mDeferredConnectionTime |
| double WsfExtData::mDeferredPDUSendTime |
Deferred time before any DIS PDUs can be sent.
Referenced by WsfExtInterface::GetDeferredPDUSendTime(), ProcessInput(), and WsfExtData().
| WsfExtEntityDeadReckonSetup WsfExtData::mDR_Setup |
Referenced by ProcessDeadReckonInput().
| WsfExtEmission* WsfExtData::mEmissionPtr |
Referenced by GetEmission(), ProcessInput(), WriteEmitterTypes(), WsfExtData(), WsfExtInterface::WsfExtInterface(), and ~WsfExtData().
| std::map<WsfExtEntityType, WsfStringId> WsfExtData::mEntityTypeToObjectType |
| std::set<WsfExtEntityId> WsfExtData::mExternalEntityIds |
Referenced by WsfExtInterface::IsEntityExternallyMoved(), and ProcessExternalEntity().
| std::set<WsfExtEntityType> WsfExtData::mExternalEntityTypes |
Referenced by WsfExtInterface::IsEntityExternallyMoved(), and ProcessExternalType().
| std::map<WsfStringId, WsfExtEntityType> WsfExtData::mObjectTypeToEntityType |
| std::map<WsfStringId, uint16_t> WsfExtData::mPlatformNameToEntityId |
Referenced by WsfExtInterface::PlatformNameToEntityId(), ProcessEntityId(), and WsfExtInterface::SelectEntityId().
| std::bitset<65536U> WsfExtData::mPreassignedEntityIds |
| WsfCategoryList WsfExtData::mPrivateCategoryId |
Referenced by WsfExtInterface::GetPrivateCategoryId(), WsfExtInterface::IsPrivate(), and ProcessInput().
| std::set<WsfStringId> WsfExtData::mPrivateNameId |
Referenced by WsfExtInterface::GetPrivateNameId(), WsfExtInterface::IsPrivate(), and ProcessInput().
| std::set<WsfStringId> WsfExtData::mPrivateTypeId |
| std::map<WsfExtRadioEntityType, WsfStringId> WsfExtData::mRadioEntityTypeToCommType |
Referenced by GetStringId(), and ProcessRadioEntityType().
| std::map<WsfStringId, int> WsfExtData::mSideIdToForceId |
Referenced by GetForceId(), GetSideId(), WsfExtInterface::PrepareExtension(), and ProcessInput().
| unsigned short WsfExtData::mSiteId |
Referenced by WsfExtInterface::GetSiteId(), ProcessInput(), and WsfExtData().
| uint16_t WsfExtData::mStartEntity |
Referenced by WsfExtInterface::PrepareExtension(), ProcessInput(), and WsfExtData().
| std::map<WsfStringId, double> WsfExtData::mTargetPriority |
Referenced by ProcessInput().
| WsfStringId WsfExtData::mUnknownPlatformTypeId |