WSF
WsfXIO_Simulation Class Reference

#include <WsfXIO_Simulation.hpp>

Inheritance diagram for WsfXIO_Simulation:
Collaboration diagram for WsfXIO_Simulation:

Public Types

using ComponentList = WsfComponentListT<WsfXIO_Component>
Public Types inherited from WsfComponentListT< WsfXIO_Component >
using ComponentType
using ParentType
Public Types inherited from WsfComponentList
using NameAndComponent = std::pair<WsfStringId, WsfComponent*>
using ComponentList = std::vector<NameAndComponent>

Public Member Functions

 WsfXIO_Simulation (WsfXIO_Interface *aInterfacePtr, WsfSimulation &aSimulation)
 ~WsfXIO_Simulation () override
bool Initialize ()
WsfXIO_InterfaceGetInterface () const
WsfSimulationGetSimulation () const
WsfDisInterfaceGetDisInterface () const
Iterator Begin () const
 Return an iterator for the beginning of the component list.
Iterator End () const
 Return an iterator for the end of the component list.
 WsfComponentListT ()
 WsfComponentListT (const WsfComponentListT &aSrc)
 WsfComponentListT (WsfComponentListT &&)=default
 ~WsfComponentListT () override
WsfComponentListToperator= (const WsfComponentListT &aRhs)
WsfComponentListToperator= (WsfComponentListT &&aRhs)
ParentTypeGetParentOfComponents () const
void SetParentOfComponents (ParentType *aComponentParentPtr)
bool AddComponent (ComponentType *aComponentPtr)
ComponentTypeFindComponent (WsfStringId aName) const
ComponentTypeFindComponent (WsfStringId aName, int aRole) const
ComponentTypeFindComponentByRole (int aRole) const
ComponentTypeGetComponentEntryByRole (int aRole, unsigned int aEntry) const
std::vector< ComponentType * > GetComponentsByInitializationOrder () const
 Return a vector of components in the order in which they should be initialized.
bool RemoveComponent (ComponentType *aComponentPtr)
bool ProcessComponentInput (UtInput &aInput)
Public Member Functions inherited from WsfComponentList
 WsfComponentList ()
 WsfComponentList (const WsfComponentList &aSrc)
 WsfComponentList (WsfComponentList &&)=default
virtual ~WsfComponentList ()
WsfComponentListoperator= (const WsfComponentList &aRhs)
WsfComponentListoperator= (WsfComponentList &&)
bool HasComponents () const
 Returns true if the component list has at least one component.
void DeleteAllComponents ()
 Delete all of the components maintained by the list.
bool DeleteComponent (WsfStringId aName, int aRole)
unsigned int GetComponentCount (int aRole) const
template<class T>
bool DeleteComponent (WsfStringId aName)
template<class T>
bool DeleteComponent ()
template<class T>
T * GetComponent () const
template<class T>
T * GetComponent (WsfStringId aName) const
template<class T>
unsigned int GetComponentCount () const
template<class T>
T * GetComponentEntry (unsigned int aEntry) const
template<class T>
bool FindByRole (T *&aPtr) const
template<typename T>
RoleRange< T > GetComponentRange ()

Accessors to some of the services created by this class.

WsfXIO_TrackServiceGetTrackService () const
WsfXIO_PlatformListServiceGetPlatformListService () const
WsfXIO_PlatformInfoServiceGetPlatformInfoService () const
WsfXIO_PlatformPartInfoServiceGetPlatformPartInfoService () const
WsfXIO_TaskServiceGetTaskService () const
WsfXIO_MessageServiceGetMessageService () const
WsfXIO_SimTimeServiceGetSimTimeService () const
WsfXIO_ScriptServiceGetScriptService () const
WsfXIO_DrawServiceGetDrawService () const
WsfXIO_SensorServiceGetSensorService () const

Additional Inherited Members

virtual void ComponentAdded (WsfComponent *aComponentPtr)
virtual void ComponentDeleted (WsfComponent *aComponentPtr)
bool AddComponentP (WsfComponent *aComponentPtr, bool aDoNotify)
void CopyAllP (const WsfComponentList &aSrc, bool aDoNotify)
 Base class implementation of copying a component list.
void DeleteAllP (bool aDoNotify)
 Base class implementation of deleting all components in the list.
bool DeleteComponentP (WsfStringId aName, int aRole, bool aDoNotify)
WsfComponentFindComponentP (WsfStringId aName, int aRole) const
WsfComponentFindComponentP (WsfStringId aName) const
WsfComponentFindComponentByRoleP (int aRole) const
WsfComponentGetComponentEntryByRoleP (int aRole, unsigned int aEntry) const
bool RemoveComponentP (WsfStringId aName, int aRole, bool aDelete, bool aDoNotify)
ComponentList mComponentsByName

Detailed Description

Implements the XIO side of standard WSF simulations. An instance of this is instantiated what WSF simulation application does:

WSF_REGISTER_EXTENSION(app, xio_interface);
#define WSF_REGISTER_EXTENSION(APP, NAME)
Definition WsfApplication.hpp:212

This class hooks into the simulation performs the necessary functions needed to allow WSF applications to participate in a distributed XIO simulation.

Member Typedef Documentation

◆ ComponentList

Constructor & Destructor Documentation

◆ WsfXIO_Simulation()

◆ ~WsfXIO_Simulation()

WsfXIO_Simulation::~WsfXIO_Simulation ( )
override

Member Function Documentation

◆ GetDisInterface()

WsfDisInterface * WsfXIO_Simulation::GetDisInterface ( ) const
inline

◆ GetDrawService()

WsfXIO_DrawService * WsfXIO_Simulation::GetDrawService ( ) const
inline

◆ GetInterface()

WsfXIO_Interface * WsfXIO_Simulation::GetInterface ( ) const
inline

◆ GetMessageService()

WsfXIO_MessageService * WsfXIO_Simulation::GetMessageService ( ) const
inline

◆ GetPlatformInfoService()

WsfXIO_PlatformInfoService * WsfXIO_Simulation::GetPlatformInfoService ( ) const
inline

◆ GetPlatformListService()

WsfXIO_PlatformListService * WsfXIO_Simulation::GetPlatformListService ( ) const
inline

◆ GetPlatformPartInfoService()

WsfXIO_PlatformPartInfoService * WsfXIO_Simulation::GetPlatformPartInfoService ( ) const
inline

◆ GetScriptService()

WsfXIO_ScriptService * WsfXIO_Simulation::GetScriptService ( ) const
inline

◆ GetSensorService()

WsfXIO_SensorService * WsfXIO_Simulation::GetSensorService ( ) const
inline

◆ GetSimTimeService()

WsfXIO_SimTimeService * WsfXIO_Simulation::GetSimTimeService ( ) const
inline

◆ GetSimulation()

◆ GetTaskService()

WsfXIO_TaskService * WsfXIO_Simulation::GetTaskService ( ) const
inline

◆ GetTrackService()

WsfXIO_TrackService * WsfXIO_Simulation::GetTrackService ( ) const
inline

◆ Initialize()


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