|
WSF
|
#include <WsfSOSM_Interface.hpp>


Public Member Functions | |
| WsfSOSM_Interface () | |
| ~WsfSOSM_Interface () override | |
| void | AddedToScenario () override |
| bool | Complete () override |
| bool | ProcessInput (UtInput &aInput) override |
| std::string | GetSensorType (WsfSensorMode *aSensorModePtr) const |
| Return the SOSM sensor type to be used to model the specified sensor (mode). | |
| std::string | GetTargetType (WsfPlatform *aTargetPtr) const |
| Return the SOSM target type to be used to model the specified target. | |
| SOSM_Manager & | GetManager () const |
| Public Member Functions inherited from WsfScenarioExtension | |
| WsfScenarioExtension () | |
| ~WsfScenarioExtension () override | |
| WsfScenario & | GetScenario () const |
| WsfApplication & | GetApplication () const |
| virtual void | FileLoaded (const std::string &aFileName) |
| virtual bool | Complete2 () |
| virtual void | SimulationCreated (WsfSimulation &aSimulation) |
| virtual bool | AlwaysCreate () |
| Public Member Functions inherited from WsfExtension | |
| virtual | ~WsfExtension ()=default |
| const std::string & | GetExtensionName () const |
Protected Types | |
| typedef std::map< std::string, std::string > | TypeMap |
Protected Member Functions | |
| void | FileReferenced (const std::string &aFileName) |
| Protected Member Functions inherited from WsfExtension | |
| void | InitializeExtensionName (const std::string &aName) |
Protected Attributes | |
| SOSM_Manager * | mManagerPtr |
| TypeMap | mSensorTypeMap |
| TypeMap | mTargetTypeMap |
| UtCallbackHolder | mCallbacks |
A scenario extension that provides an interface to the Spectral Optical Sensor Model (SOSM).
This class implements the processing for the 'sosm_interface' input block, which is provided by the user to local SOSM input files.
|
protected |
| WsfSOSM_Interface::WsfSOSM_Interface | ( | ) |
References mCallbacks, mManagerPtr, mSensorTypeMap, and mTargetTypeMap.
|
override |
References mManagerPtr.
|
overridevirtual |
Called when the extension has been added to the scenario. This is typically used to register new component type objects and object factories, e.g.:
Script classes must NOT be registered here because they are global to the entire application. They should be registered in WsfApplication::AddedToApplication.
Reimplemented from WsfScenarioExtension.
References WsfObjectTypeList< T >::AddCoreType(), FileReferenced(), WsfSensorTypes::Get(), WsfScenarioExtension::GetScenario(), mCallbacks, and mManagerPtr.
|
overridevirtual |
Called when all inputs are processed. This is called when the application calls WsfScenario::LoadComplete to signify that all input data has been loaded into the scenario. The extension should perform any additional validity checking or other processing on its input data. Constant data may be created and stored here. Unless Complete2() is also implement, the contents of this class should not be changed after this call.
The extension should not assume anything about the state of another extension unless this a dependency has been registered to ensure the other extension has been called prior to this, e.g.:
Reimplemented from WsfScenarioExtension.
References mManagerPtr, mSensorTypeMap, mTargetTypeMap, and ok.
|
protected |
References WsfScenarioExtension::GetScenario(), WsfScenario::GetSystemLog(), and WsfSystemLog::WriteLogEntry().
Referenced by AddedToScenario().
|
inline |
References mManagerPtr.
Referenced by WsfSOSM_Sensor::SOSM_Mode::AttemptToDetect(), and WsfSOSM_Sensor::SOSM_Mode::Initialize().
| std::string WsfSOSM_Interface::GetSensorType | ( | WsfSensorMode * | aSensorModePtr | ) | const |
Return the SOSM sensor type to be used to model the specified sensor (mode).
References WsfNamed::GetName(), WsfSensorMode::GetSensor(), WsfObject::GetType(), WsfObject::GetTypeList(), mManagerPtr, and mSensorTypeMap.
Referenced by WsfSOSM_Sensor::SOSM_Mode::Initialize().
| std::string WsfSOSM_Interface::GetTargetType | ( | WsfPlatform * | aTargetPtr | ) | const |
Return the SOSM target type to be used to model the specified target.
References WsfObject::GetType(), WsfObject::GetTypeList(), mManagerPtr, and mTargetTypeMap.
Referenced by WsfSOSM_Sensor::SOSM_Mode::AttemptToDetect().
|
overridevirtual |
Process potential input for the extension. This method examines the current input command to determine if it is one that is recognized by the extension. If it is one recognized by the extension then it processes the command and returns 'true', otherwise it returns 'false'.
| aInput | a reference to a UtInput object. |
| UtInput::ExceptionBase | (or an object derived from it) if the command was recognized but contains some sort of error. |
Reimplemented from WsfScenarioExtension.
References WsfScenarioExtension::GetScenario(), WsfScenario::GetSystemLog(), mManagerPtr, mSensorTypeMap, mTargetTypeMap, and WsfSystemLog::WriteLogEntry().
|
protected |
Referenced by AddedToScenario(), and WsfSOSM_Interface().
|
protected |
Referenced by AddedToScenario(), Complete(), GetManager(), GetSensorType(), GetTargetType(), ProcessInput(), WsfSOSM_Interface(), and ~WsfSOSM_Interface().
|
protected |
Referenced by Complete(), GetSensorType(), ProcessInput(), and WsfSOSM_Interface().
|
protected |
Referenced by Complete(), GetTargetType(), ProcessInput(), and WsfSOSM_Interface().