|
WSF
|
#include <WsfMilExtInterface.hpp>


Static Public Member Functions | |
| static WsfMilExtInterface * | Find (const WsfExtInterface &aExt) |
Component infrastructure methods | |
| typedef std::pair< WsfStringId, WsfStringId > | WeaponTargetType |
| typedef std::map< WeaponTargetType, double > | PK_Table |
| typedef std::map< WsfStringId, int > | CategoryToWarheadMap |
| A map of category ids to enumerations for output of warhead info. | |
| static WsfWeapon * | GetWeapon (WsfPlatform *aPlatformPtr, WsfStringId aSensorTypeId, unsigned int aEmitterNameDIS, unsigned int aEmitterIdNumberDIS) |
| WsfComponent * | CloneComponent () const override |
| WsfStringId | GetComponentName () const override |
| const int * | GetComponentRoles () const override |
| void * | QueryInterface (int aRole) override |
| WsfMilExtInterface (WsfMilExtension *aMilExtensionPtr) | |
| void | PrintEmitterTypes (WsfScenario &aScenario, std::ostream &aStream) override |
| bool | ProcessInput (UtInput &aInput) override |
| bool | CompleteLoad (WsfScenario &aScenario) override |
| WsfWeapon * | GetWeapon (const WsfScenario &aScenario, WsfStringId aSensorTypeId, unsigned int aEmitterNameDIS, unsigned int aEmitterIdNumberDIS) |
| WsfWeapon * | AddWeapon (double aSimTime, WsfPlatform *aPlatformPtr, WsfStringId aSensorTypeId, unsigned int aEmitterNameDIS, unsigned int aEmitterIdNumberDIS) |
| WsfStringId | SelectWeaponType (WsfSimulation &aSimulation, const WsfExtEntityType &aEntityType) |
| Given an entity type, select the object type to be used. | |
| int | GetWarheadEnum (const WsfPlatformPart *aWarheadPtr) |
| int | GetDebugWarfarePDU () |
| void | SetDebugWarfarePDU (int aDebugWarfarePDU) |
| std::string | GetExternalWeaponEffectsType () |
| double | GetSimpleKillRange () |
| bool | GetUseSimpleDetonations () |
| std::set< WsfStringId > & | GetExcludedDetonationPlatformTypes () |
| std::set< WsfStringId > & | GetExcludedDetonationWeaponEffects () |
| PK_Table & | GetPK_Table () |
| void | ProcessEW_TechniqueType (UtInput &aInput) |
| uint32_t | GetJamModeSequence (WsfStringId aTechTypeId) |
| Return the DIS jamming mode sequence name that corresponds to given WSF EW technique type Id. | |
| WsfStringId | GetTechniqueTypeId (uint32_t aJamModeSequence) |
| Return the WSF technique type Id that corresponds to given DIS jamming mode sequence. | |
Additional Inherited Members | |
| Public Types inherited from WsfComponentT< WsfExtData > | |
| typedef WsfExtData | ParentType |
| This is needed to support the WsfComponentList template. | |
| Public Member Functions inherited from WsfComponentT< WsfExtData > | |
| WsfComponentT () | |
| WsfComponentT & | operator= (const WsfComponentT &) noexcept |
| ~WsfComponentT () override=default | |
| virtual void | ComponentParentChanged (ParentType *aParentPtr) |
| ParentType * | GetComponentParent () const |
| void | SetComponentParent (ParentType *aParentPtr) |
| Public Member Functions inherited from WsfComponent | |
| virtual | ~WsfComponent ()=default |
| virtual int | GetComponentInitializationOrder () const |
| template<typename T> | |
| bool | QueryInterfaceT (T *&aRolePtr) |
| bool | ComponentHasRole (int aRole) |
| Returns true if the component has the specified role. | |
| virtual bool | PreInitialize (double aSimTime) |
| virtual bool | Initialize (double aSimTime) |
| virtual bool | Initialize2 (double aSimTime) |
| virtual void | PreInput () |
| typedef std::map<WsfStringId, int> WsfMilExtInterface::CategoryToWarheadMap |
A map of category ids to enumerations for output of warhead info.
| typedef std::map<WeaponTargetType, double> WsfMilExtInterface::PK_Table |
| typedef std::pair<WsfStringId, WsfStringId> WsfMilExtInterface::WeaponTargetType |
| WsfMilExtInterface::WsfMilExtInterface | ( | WsfMilExtension * | aMilExtensionPtr | ) |
Referenced by CloneComponent(), and Find().
| WsfWeapon * WsfMilExtInterface::AddWeapon | ( | double | aSimTime, |
| WsfPlatform * | aPlatformPtr, | ||
| WsfStringId | aSensorTypeId, | ||
| unsigned int | aEmitterNameDIS, | ||
| unsigned int | aEmitterIdNumberDIS ) |
Adds a weapon to the given platform.
| aSimTime | [input] Current simulation time. |
| aPlatformPtr | [input] Pointer to the weapon's platform. |
| aSensorTypeId | [input] Sensor type ID. |
| aEmitterNameDIS | [input] DIS emitter system - emitter name |
| aEmitterIdNumberDIS | [input] DIS emitter system - emitter ID number |
References WsfComponentListT< COMPONENT_TYPE >::AddComponent(), WsfWeapon::Clone(), WsfComponentList::DeleteComponent(), WsfObject::GetName(), WsfPlatform::GetScenario(), WsfPlatform::GetSimulation(), WsfObject::GetType(), GetWeapon(), WsfWeapon::Initialize(), and WsfObject::SetName().
Referenced by WsfMilDisInterface::AddEmissionSystem().
|
overridevirtual |
Clones a component. May return null if component does not support clone.
Implements WsfComponent.
References WsfMilExtInterface().
|
overridevirtual |
Reimplemented from WsfExtInterfaceComponent.
References WsfObjectTypeList< T >::Add(), WsfObjectTypeList< T >::Find(), and WsfWeaponEffectsTypes::Get().
|
static |
References WsfComponentList::FindByRole(), WsfExtData::GetComponents(), and WsfMilExtInterface().
Referenced by WsfMilDisInterface::AddedToDisInterface(), WsfMilDisInterface::AddEmissionSystem(), WsfDisDirectedEnergyFire::WsfDisDirectedEnergyFire(), WsfDisDirectedEnergyFire::WsfDisDirectedEnergyFire(), WsfDisFire::WsfDisFire(), WsfDisWeaponEvents::WsfDisWeaponEvents(), and WsfExtDetonation::WsfExtDetonation().
|
overridevirtual |
Returns the component's name. Each component in a component list has a unique name. Names are usually defined by the user, but they may also be generated by code and prefixed with a '#' to guarantee no collisions with user-defined names.
Implements WsfComponent.
|
overridevirtual |
Returns a zero-terminated array of component roles. Note that the array should be in decreasing order of specificity and should generally the inheritance hierarchy. The first entry should be the components 'primary' role. For example a sensor would do the following:
Implements WsfComponent.
References cWSF_COMPONENT_MIL_EXT_INTERFACE.
|
inline |
|
inline |
|
inline |
|
inline |
| uint32_t WsfMilExtInterface::GetJamModeSequence | ( | WsfStringId | aTechTypeId | ) |
Return the DIS jamming mode sequence name that corresponds to given WSF EW technique type Id.
|
inline |
|
inline |
| WsfStringId WsfMilExtInterface::GetTechniqueTypeId | ( | uint32_t | aJamModeSequence | ) |
Return the WSF technique type Id that corresponds to given DIS jamming mode sequence.
|
inline |
| int WsfMilExtInterface::GetWarheadEnum | ( | const WsfPlatformPart * | aWarheadPtr | ) |
Get the warhead enum based on any input category associations. Default is to return 0 == "Other".
References WsfPlatformPart::GetCategories(), and WsfCategoryList::IsCategoryMember().
| WsfWeapon * WsfMilExtInterface::GetWeapon | ( | const WsfScenario & | aScenario, |
| WsfStringId | aSensorTypeId, | ||
| unsigned int | aEmitterNameDIS, | ||
| unsigned int | aEmitterIdNumberDIS ) |
Gets a weapon from the given platform.
| aScenario | [input] The current scenario. |
| aSensorTypeId | [input] Sensor type ID. |
| aEmitterNameDIS | [input] DIS emitter system - emitter name |
| aEmitterIdNumberDIS | [input] DIS emitter system - emitter ID number |
References WsfObjectTypeList< T >::Clone(), WsfWeaponTypes::Get(), WsfAuxDataEnabled::GetAuxData(), and WsfAuxDataEnabled::GetAuxDataConst().
|
static |
Gets a weapon from the given platform.
| aPlatformPtr | [input] Pointer to the weapon's platform. |
| aSensorTypeId | [input] Sensor type ID. |
| aEmitterNameDIS | [input] DIS emitter system - emitter name |
| aEmitterIdNumberDIS | [input] DIS emitter system - emitter ID number |
References WsfComponentList::RoleIterator< T >::AtEnd(), and WsfUtil::GetAuxValue().
Referenced by AddWeapon(), and WsfMilDisInterface::UpdateEmissionSystem().
|
overridevirtual |
| void WsfMilExtInterface::ProcessEW_TechniqueType | ( | UtInput & | aInput | ) |
Referenced by ProcessInput().
|
overridevirtual |
Evaluate the current input command and determine if it is one processed by the component. The component should get the current command from the input stream and determine if it is one that it recognizes. If it does not recognize the command then it should leave the command in the input stream and return false. If it does recognize the command then it should process the command and return true. If invalid arguments are encountered then it should throw an exception.
| aInput | The input stream. |
| UtInput::ExceptionBase | if an invalid input was encountered. |
Reimplemented from WsfComponent.
References WsfExtInput::Find(), WsfExtInput::mData, WsfExtData::ProcessEntityType(), and ProcessEW_TechniqueType().
|
overridevirtual |
Requests a component's role interface. A component can support one or more roles.
| aRole | The role whose interface is to be returned. |
Implements WsfComponent.
References cWSF_COMPONENT_MIL_EXT_INTERFACE.
| WsfStringId WsfMilExtInterface::SelectWeaponType | ( | WsfSimulation & | aSimulation, |
| const WsfExtEntityType & | aEntityType ) |
Given an entity type, select the object type to be used.
References WsfExtInterface::Find(), WsfWeaponTypes::Get(), WsfExtInterface::GetEntityTypeToObjectMap(), WsfExtEntityType::mExtra, WsfExtEntityType::mSpecific, and WsfExtEntityType::mSubcategory.
|
inline |