|
WSF
|
#include <WsfSignatureList.hpp>
Public Types | |
| typedef WsfSignatureInterface | Interface |
| Make typing easier.. | |
Public Member Functions | |
| WsfSignatureList () | |
| WsfSignatureList (const WsfSignatureList &aSrc, WsfPlatform *aPlatformPtr) | |
| ~WsfSignatureList () | |
| void | AddInterface (Interface *aInterfacePtr, size_t aIndex) |
| Interface * | GetInterface (size_t aIndex) |
| Return the pointer to the interface with the specified index. | |
| bool | Initialize (double aSimTime) |
| bool | ProcessInput (UtInput &aInput) |
| void | SetState (WsfStringId aState, const std::string &aType) |
| std::string | GetClassName (size_t aIndex) const |
| WsfStringId | GetInputType (size_t aIndex) const |
| WsfStringId | GetState (size_t aIndex) const |
| bool | SetState (size_t aIndex, WsfStringId aState) |
| float | GetScaleFactor (size_t aIndex) const |
| bool | SetScaleFactor (size_t aIndex, float aScaleFactor) |
Platform interface to signatures (observables).
This class has two main purposes: -) Provide the means to link the platform to its various signatures. -) Provide the interface by which sensors can RAPIDLY access the signatures.
There is an instance of this on every platform and another that is stored on the scenario. The later instance is a skeleton object that is populated during scenario creation when each signature 'type list' is added to the scenario. This skeleton is the initial copy that is attached to each platform.
Make typing easier..
| WsfSignatureList::WsfSignatureList | ( | ) |
Referenced by WsfSignatureList().
| WsfSignatureList::WsfSignatureList | ( | const WsfSignatureList & | aSrc, |
| WsfPlatform * | aPlatformPtr ) |
References for(), and WsfSignatureList().
| WsfSignatureList::~WsfSignatureList | ( | ) |
| void WsfSignatureList::AddInterface | ( | Interface * | aInterfacePtr, |
| size_t | aIndex ) |
Add a signature item to the prototype signature list.
| aInterfacePtr | The pointer to the interface. The class assumes ownership. |
| aIndex | The index of the signature. This must be unique. An exception will be thrown if it is not unique. |
Referenced by WsfAcousticSignature::RegisterInterface(), WsfInfraredSignature::RegisterInterface(), WsfInherentContrast::RegisterInterface(), WsfOpticalReflectivity::RegisterInterface(), WsfOpticalSignature::RegisterInterface(), and WsfRadarSignature::RegisterInterface().
| std::string WsfSignatureList::GetClassName | ( | size_t | aIndex | ) | const |
| WsfStringId WsfSignatureList::GetInputType | ( | size_t | aIndex | ) | const |
|
inline |
Return the pointer to the interface with the specified index.
Referenced by WsfOpticalSignature::UsesInherentContrast().
| float WsfSignatureList::GetScaleFactor | ( | size_t | aIndex | ) | const |
Referenced by WsfAcousticSignature::GetScaleFactor(), WsfInfraredSignature::GetScaleFactor(), WsfInherentContrast::GetScaleFactor(), WsfOpticalReflectivity::GetScaleFactor(), WsfOpticalSignature::GetScaleFactor(), WsfRadarSignature::GetScaleFactor(), wsf::event::PlatformAppearanceChanged::Print(), and wsf::event::PlatformAppearanceChanged::PrintCSV().
| WsfStringId WsfSignatureList::GetState | ( | size_t | aIndex | ) | const |
Referenced by WsfAcousticSignature::GetState(), WsfInfraredSignature::GetState(), WsfInherentContrast::GetState(), WsfOpticalReflectivity::GetState(), WsfOpticalSignature::GetState(), WsfRadarSignature::GetState(), wsf::event::PlatformAppearanceChanged::Print(), and wsf::event::PlatformAppearanceChanged::PrintCSV().
| bool WsfSignatureList::Initialize | ( | double | aSimTime | ) |
References ok.
Referenced by WsfPlatform::Initialize().
| bool WsfSignatureList::ProcessInput | ( | UtInput & | aInput | ) |
References ProcessInput().
Referenced by ProcessInput().
| bool WsfSignatureList::SetScaleFactor | ( | size_t | aIndex, |
| float | aScaleFactor ) |
References WsfObserver::cSIGNATURE_SCALE_FACTOR_START, WsfSignatureInterface::GetScaleFactor(), ok, WsfObserver::PlatformAppearanceChanged(), and WsfSignatureInterface::SetScaleFactor().
Referenced by WsfAcousticSignature::SetScaleFactor(), WsfInfraredSignature::SetScaleFactor(), WsfInherentContrast::SetScaleFactor(), WsfOpticalReflectivity::SetScaleFactor(), WsfOpticalSignature::SetScaleFactor(), and WsfRadarSignature::SetScaleFactor().
| bool WsfSignatureList::SetState | ( | size_t | aIndex, |
| WsfStringId | aState ) |
| void WsfSignatureList::SetState | ( | WsfStringId | aState, |
| const std::string & | aType ) |
Set the signature state for the given type of signature.
| aState | The string Id of the new signature state. |
| aType | The string of the type of signature to change the state of. |
References SetState().
Referenced by WsfAcousticSignature::SetState(), WsfInfraredSignature::SetState(), WsfInherentContrast::SetState(), WsfOpticalReflectivity::SetState(), WsfOpticalSignature::SetState(), WsfRadarSignature::SetState(), SetState(), and WsfDisInterface::UpdatePlatformFromAppearance().