#include <WsfChaffEjector.hpp>
◆ WsfChaffEjector() [1/3]
| WsfChaffEjector::WsfChaffEjector |
( |
| ) |
|
◆ WsfChaffEjector() [2/3]
| WsfChaffEjector::WsfChaffEjector |
( |
const std::string & | aName | ) |
|
◆ ~WsfChaffEjector()
| WsfChaffEjector::~WsfChaffEjector |
( |
| ) |
|
|
override |
◆ WsfChaffEjector() [3/3]
◆ CloneComponent()
◆ EjectParcel()
| std::unique_ptr< WsfChaffParcel > WsfChaffEjector::EjectParcel |
( |
double | aSimTime | ) |
|
◆ GetQuantityRemaining()
| unsigned int WsfChaffEjector::GetQuantityRemaining |
( |
| ) |
const |
|
inline |
◆ Initialize()
| bool WsfChaffEjector::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 WsfPlatform::AttachObserver(), WsfNamed::GetName(), WsfObject::GetName(), WsfWeaponComponent::GetPlatform(), WsfWeaponComponent::GetWeapon(), and ok.
◆ OnPlatformUpdated()
| void WsfChaffEjector::OnPlatformUpdated |
( |
double | , |
|
|
WsfPlatform * | ) |
|
inlineoverrideprotectedvirtual |
A callback from the platform subject. This class attaches itself as an observer to the associated platform and through this method is notified whenever the platform is updated (moved).
Reimplemented from WsfSinglePlatformObserver.
◆ operator=()
◆ ProcessInput()
| bool WsfChaffEjector::ProcessInput |
( |
UtInput & | aInput | ) |
|
|
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.
- Parameters
-
- Returns
- true if the current command was recognized (and processed), or false if the command was not recognized.
- Exceptions
-
| UtInput::ExceptionBase | if an invalid input was encountered. |
Reimplemented from WsfComponent.
◆ QueryInterface()
| void * WsfChaffEjector::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.
◆ RegisterComponentFactory()
| void WsfChaffEjector::RegisterComponentFactory |
( |
WsfScenario & | aScenario | ) |
|
|
static |
◆ SetLaunchState()
| void WsfChaffEjector::SetLaunchState |
( |
double | aSimTime, |
|
|
WsfPlatform * | aPlatformPtr ) |
The documentation for this class was generated from the following files: