|
WSF
|
A class template for defining multiresolution containers for WsfPlatformComponent types. More...
#include <WsfMultiresolutionWrapperMetaModel.hpp>


Public Member Functions | |
| WsfMultiresolutionWrapperMetaModel ()=default | |
| ~WsfMultiresolutionWrapperMetaModel () noexcept override=default | |
| WsfMultiresolutionWrapperMetaModel & | operator= (const WsfMultiresolutionWrapperMetaModel &aSrc)=delete |
| WsfMultiresolutionWrapperMetaModel (WsfMultiresolutionWrapperMetaModel &&)=delete | |
| WsfMultiresolutionWrapperMetaModel & | operator= (WsfMultiresolutionWrapperMetaModel &&aSrc)=delete |
| Public Member Functions inherited from WsfMultiresolutionPlatformComponent< DerivedComponent > | |
| WsfMultiresolutionPlatformComponent () | |
| bool | PreInitialize (double aSimTime) override |
| WsfStringId | GetComponentName () const override |
| const int * | GetComponentRoles () const override |
| void * | QueryInterface (int aRole) override |
| Public Member Functions inherited from WsfComponentT< WsfPlatform > | |
| WsfComponentT () | |
| WsfComponentT (const WsfComponentT &) noexcept | |
| 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 | Initialize (double aSimTime) |
| virtual bool | Initialize2 (double aSimTime) |
| virtual void | PreInput () |
| Public Member Functions inherited from WsfObject | |
| WsfObject () | |
| This is the constructor for the WsfObject class. | |
| ~WsfObject () override | |
| This is the destructor for the WsfObject class. | |
| const char * | GetScriptClassName () const override |
| const std::string & | GetType () const |
| WsfStringId | GetTypeId () const |
| Get the string ID of the 'type' of the object. | |
| void | SetType (WsfStringId aType) |
| const std::string & | GetBaseType () const |
| WsfStringId | GetBaseTypeId () const |
| const TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (const WsfObject &aRhs) |
| Assignment operator. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
Framework methods. | |
| WsfComponent * | CloneComponent () const override |
| WsfObject * | Clone () const override |
| bool | ProcessInput (UtInput &aInput) override |
Additional Inherited Members | |
| Public Types inherited from WsfComponentT< WsfPlatform > | |
| typedef WsfPlatform | ParentType |
| This is needed to support the WsfComponentList template. | |
| Public Types inherited from WsfObject | |
| typedef std::vector< WsfStringId > | TypeList |
| The list of types returned by GetTypeList. | |
| static WsfMultiresolutionPlatformComponent< DerivedComponent > * | Find (const WsfPlatform &aParent) |
| double | GetFidelity () const |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
A class template for defining multiresolution containers for WsfPlatformComponent types.
The purpose of this class is to define a multiresolution container for a WsfPlatformComponent. The assumptions are that the container defines a family of models, each assigned non-overlapping fidelity ranges (which are values between 0 and 1 inclusive). These fidelity ranges define the range over which the model should be used when a fidelity value is given, currently only defined on this container, though in the future it may be definable at other parts of a scenario.
More specifically, the container can consist of one or more instantiations of its specific WsfPlatformComponent (such as WsfMover) that are chosen from during initialization. The choice is made by assigning each contained WsfPlatformComponent a non-overlapping fidelity range. The container itself then has a fidelity and the model whose range contains the container's fidelity is used as the containing platform's model. There is also an input available for users to forward input commands to all models.
| DerivedComponent | A type deriving from WsfPlatformComponent |
|
default |
Referenced by Clone(), CloneComponent(), operator=(), operator=(), and WsfMultiresolutionWrapperMetaModel().
|
overridedefaultnoexcept |
|
delete |
References WsfMultiresolutionWrapperMetaModel().
|
overridevirtual |
Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.
Implements WsfObject.
References WsfMultiresolutionWrapperMetaModel(), and WsfObject::WsfObject().
Referenced by operator=().
|
overridevirtual |
Clones a component. May return null if component does not support clone.
Implements WsfComponent.
References WsfMultiresolutionWrapperMetaModel().
Referenced by operator=().
|
delete |
References WsfMultiresolutionWrapperMetaModel().
|
delete |
References Clone(), CloneComponent(), ProcessInput(), WsfMultiresolutionWrapperMetaModel(), and WsfObject::WsfObject().
|
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 WsfMultiresolutionPlatformComponent< DerivedComponent >.
References WsfMultiresolutionPlatformComponent< DerivedComponent >::ProcessInput().
Referenced by operator=().