#include <WsfEW_XmtrComponent.hpp>
◆ WsfEW_XmtrComponent() [1/2]
| WsfEW_XmtrComponent::WsfEW_XmtrComponent |
( |
| ) |
|
◆ WsfEW_XmtrComponent() [2/2]
◆ ~WsfEW_XmtrComponent()
| WsfEW_XmtrComponent::~WsfEW_XmtrComponent |
( |
| ) |
|
|
override |
◆ CloneComponent()
| WsfComponent * WsfEW_XmtrComponent::CloneComponent |
( |
| ) |
const |
|
overridevirtual |
◆ Find()
◆ FindOrCreate()
◆ GetComponentName()
| WsfStringId WsfEW_XmtrComponent::GetComponentName |
( |
| ) |
const |
|
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.
◆ GetComponentRoles()
| const int * WsfEW_XmtrComponent::GetComponentRoles |
( |
| ) |
const |
|
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:
return roles;
@ cWSF_COMPONENT_SENSOR
A 'sensor' component (WsfSensor).
Definition WsfComponentRoles.hpp:105
@ cWSF_COMPONENT_PLATFORM_PART
The component derives from WsfPlatformPart.
Definition WsfComponentRoles.hpp:98
@ cWSF_COMPONENT_ARTICULATED_PART
The component derives from WsfArticulatedPart.
Definition WsfComponentRoles.hpp:99
Implements WsfComponent.
References cWSF_COMPONENT_EW_XMTR.
◆ GetElectronicAttack()
| WsfEW_EA_EP * WsfEW_XmtrComponent::GetElectronicAttack |
( |
| ) |
const |
|
inline |
◆ Initialize()
| bool WsfEW_XmtrComponent::Initialize |
( |
double | aSimTime | ) |
|
|
overridevirtual |
Perform phase 1 initialization. This is called by WsfPlatform::Initialize() during phase 1 initialization of the platform. The component should complete validation of input data that could not be done by ProcessInput, as well as any other functions to prepare for simulation use (subject to the next paragraph).
The order in which components are initialized is defined by GetComponentInitializationOrder. In general a component implementation of this method should not be dependent on the state of another component, i.e.: it should not assume that the other components Initialize() method has been called. If such a dependency exists one should use Initialize2() if possible, or specify a value GetComponentInitializationOrder to force things to initialize in a particular order.
- Parameters
-
| aSimTime | The current simulation time. |
- Returns
- true if successful or false if unsuccessful (bad input data, etc.)
- Note
- This method should NOT add any other components to the platform. This MUST be done in PreInitialize().
Reimplemented from WsfComponent.
References WsfComponentT< WsfEM_Xmtr >::GetComponentParent(), WsfEM_XmtrRcvr::GetSimulation(), and ok.
◆ operator=()
◆ QueryInterface()
| void * WsfEW_XmtrComponent::QueryInterface |
( |
int | aRole | ) |
|
|
overridevirtual |
Requests a component's role interface. A component can support one or more roles.
- Parameters
-
| aRole | The role whose interface is to be returned. |
- Returns
- A pointer to the object if it supports the indicated role, or 'null' if it does not. Usage: WsfProcessor* procPtrOrNull = (WsfProcessor*)componentPtr->QueryComponentInterface(cWSF_COMPONENT_PROCESSOR);
Implements WsfComponent.
References cWSF_COMPONENT_EW_XMTR.
◆ SetElectronicAttack()
| void WsfEW_XmtrComponent::SetElectronicAttack |
( |
WsfEW_EA_EP * | aElectronicAttackPtr | ) |
|
Set the Electronic Attack object for this receiver.
- Parameters
-
| aElectronicAttackPtr | Pointer to the new electronic attack object. |
- Note
- Any existing electronic attack object is deleted.
Referenced by WsfEW_EA::SetElectronicAttack().
The documentation for this class was generated from the following files: