WSF
WsfXIO_Component Class Reference

An component that may be used to extend the XIO simulation components. More...

#include <WsfXIO_Component.hpp>

Inheritance diagram for WsfXIO_Component:
Collaboration diagram for WsfXIO_Component:

Public Member Functions

 WsfXIO_Component (int aRole, const std::string &aName)
bool Initialize ()
 Called by WsfXIO_Interface to allow initialization of the component.
Public Member Functions inherited from WsfSimpleComponentT< WsfComponentT< PARENT_TYPE > >
 WsfSimpleComponentT ()=default
 Empty constructor for serialization.
 WsfSimpleComponentT (int aRole, WsfStringId aName)
 WsfSimpleComponentT (int aRole)
 WsfSimpleComponentT (WsfStringId aName)
 WsfSimpleComponentT (const WsfSimpleComponentT &aSrc)
WsfSimpleComponentToperator= (const WsfSimpleComponentT &aRhs)
 ~WsfSimpleComponentT () override=default
WsfStringId GetComponentName () const override
const int * GetComponentRoles () const override
Public Member Functions inherited from WsfComponentT< PARENT_TYPE >
 WsfComponentT ()
 WsfComponentT (const WsfComponentT &) noexcept
WsfComponentToperator= (const WsfComponentT &) noexcept
 ~WsfComponentT () override=default
virtual void ComponentParentChanged (ParentType *aParentPtr)
ParentTypeGetComponentParent () const
void SetComponentParent (ParentType *aParentPtr)
Public Member Functions inherited from WsfComponent
virtual ~WsfComponent ()=default
virtual WsfComponentCloneComponent () const =0
virtual void * QueryInterface (int aRole)=0
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 PreInitialize (double aSimTime)
virtual bool Initialize (double aSimTime)
virtual bool Initialize2 (double aSimTime)
virtual void PreInput ()
virtual bool ProcessInput (UtInput &aInput)
Public Member Functions inherited from WsfNamed
 WsfNamed ()
 WsfNamed (WsfStringId aName)
 WsfNamed (const WsfNamed &)=default
WsfNamedoperator= (const WsfNamed &)=default
virtual ~WsfNamed ()=default
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)

Extensions of xio_sim/WsfXIO_ObjectInfoLoad

virtual void EM_RcvrInfo_Load (WsfXIO_EM_RcvrInfo &aInfo, const WsfEM_Rcvr &aRcvr)
virtual void EM_XmtrInfo_Load (WsfXIO_EM_XmtrInfo &aInfo, const WsfEM_Xmtr &aXmtr)
virtual WsfXIO_PlatformPartInfoCreatePlatformPartInfo (WsfPlatformPart &aPart)

Extensions of xio_sim/WsfXIO_PlatformInfoService

virtual void RegisterSimulationObservers (WsfSimulation &aSimulation, UtCallbackHolder &aCallbacks)
virtual bool FillPartState (const WsfPlatformPart &aPart, WsfXIO_PartStateChangePkt &aPkt)
virtual WsfObjectFindPartType (int aPartType, WsfStringId aPartTypeName)
virtual WsfObjectFindPart (const WsfPlatform &aPlatform, int aPartType, WsfStringId aPartName)

Extensions of xio_sim/WsfXIO_Simulation

virtual bool HandleStateChangeRequest (double aSimTime, WsfXIO_PartStateChangeRequestPkt &aPkt, WsfPlatform *aPlatformPtr, WsfEM_Xmtr *&aXmtrPtr, WsfEM_Rcvr *&aRcvrPtr)

Extensions of xio_sim/WsfXIO_TaskService.

virtual bool HandleTaskCommand (double aSimTime, WsfXIO_TaskCommandPkt &aPkt, WsfTaskProcessor *aProcA_Ptr, WsfTaskProcessor *aProcB_Ptr, WsfTrack *aTrackPtr, WsfTaskResource *aResourcePtr)

Additional Inherited Members

Public Types inherited from WsfComponentT< PARENT_TYPE >
typedef PARENT_TYPE ParentType
 This is needed to support the WsfComponentList template.
int mRoles [2]

Detailed Description

An component that may be used to extend the XIO simulation components.

Constructor & Destructor Documentation

◆ WsfXIO_Component()

WsfXIO_Component::WsfXIO_Component ( int aRole,
const std::string & aName )

Member Function Documentation

◆ CreatePlatformPartInfo()

virtual WsfXIO_PlatformPartInfo * WsfXIO_Component::CreatePlatformPartInfo ( WsfPlatformPart & aPart)
inlinevirtual

Create a WsfXIO_PlatformPartInfo from a WsfPlatformPart.

Returns
0 if the supplied part type is not recognized.

Reimplemented in WsfXIO_WeaponComponent.

◆ EM_RcvrInfo_Load()

virtual void WsfXIO_Component::EM_RcvrInfo_Load ( WsfXIO_EM_RcvrInfo & aInfo,
const WsfEM_Rcvr & aRcvr )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ EM_XmtrInfo_Load()

virtual void WsfXIO_Component::EM_XmtrInfo_Load ( WsfXIO_EM_XmtrInfo & aInfo,
const WsfEM_Xmtr & aXmtr )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ FillPartState()

virtual bool WsfXIO_Component::FillPartState ( const WsfPlatformPart & aPart,
WsfXIO_PartStateChangePkt & aPkt )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ FindPart()

virtual WsfObject * WsfXIO_Component::FindPart ( const WsfPlatform & aPlatform,
int aPartType,
WsfStringId aPartName )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ FindPartType()

virtual WsfObject * WsfXIO_Component::FindPartType ( int aPartType,
WsfStringId aPartTypeName )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ HandleStateChangeRequest()

virtual bool WsfXIO_Component::HandleStateChangeRequest ( double aSimTime,
WsfXIO_PartStateChangeRequestPkt & aPkt,
WsfPlatform * aPlatformPtr,
WsfEM_Xmtr *& aXmtrPtr,
WsfEM_Rcvr *& aRcvrPtr )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ HandleTaskCommand()

virtual bool WsfXIO_Component::HandleTaskCommand ( double aSimTime,
WsfXIO_TaskCommandPkt & aPkt,
WsfTaskProcessor * aProcA_Ptr,
WsfTaskProcessor * aProcB_Ptr,
WsfTrack * aTrackPtr,
WsfTaskResource * aResourcePtr )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.

◆ Initialize()

bool WsfXIO_Component::Initialize ( )
inline

Called by WsfXIO_Interface to allow initialization of the component.

◆ RegisterSimulationObservers()

virtual void WsfXIO_Component::RegisterSimulationObservers ( WsfSimulation & aSimulation,
UtCallbackHolder & aCallbacks )
inlinevirtual

Reimplemented in WsfXIO_WeaponComponent.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved