|
WSF
|
#include <WsfXIO_Simulation.hpp>


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_Interface * | GetInterface () const |
| WsfSimulation & | GetSimulation () const |
| WsfDisInterface * | GetDisInterface () 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 | |
| WsfComponentListT & | operator= (const WsfComponentListT &aRhs) |
| WsfComponentListT & | operator= (WsfComponentListT &&aRhs) |
| ParentType * | GetParentOfComponents () const |
| void | SetParentOfComponents (ParentType *aComponentParentPtr) |
| bool | AddComponent (ComponentType *aComponentPtr) |
| ComponentType * | FindComponent (WsfStringId aName) const |
| ComponentType * | FindComponent (WsfStringId aName, int aRole) const |
| ComponentType * | FindComponentByRole (int aRole) const |
| ComponentType * | GetComponentEntryByRole (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 () |
| WsfComponentList & | operator= (const WsfComponentList &aRhs) |
| WsfComponentList & | operator= (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_TrackService * | GetTrackService () const |
| WsfXIO_PlatformListService * | GetPlatformListService () const |
| WsfXIO_PlatformInfoService * | GetPlatformInfoService () const |
| WsfXIO_PlatformPartInfoService * | GetPlatformPartInfoService () const |
| WsfXIO_TaskService * | GetTaskService () const |
| WsfXIO_MessageService * | GetMessageService () const |
| WsfXIO_SimTimeService * | GetSimTimeService () const |
| WsfXIO_ScriptService * | GetScriptService () const |
| WsfXIO_DrawService * | GetDrawService () const |
| WsfXIO_SensorService * | GetSensorService () 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) |
| WsfComponent * | FindComponentP (WsfStringId aName, int aRole) const |
| WsfComponent * | FindComponentP (WsfStringId aName) const |
| WsfComponent * | FindComponentByRoleP (int aRole) const |
| WsfComponent * | GetComponentEntryByRoleP (int aRole, unsigned int aEntry) const |
| bool | RemoveComponentP (WsfStringId aName, int aRole, bool aDelete, bool aDoNotify) |
| ComponentList | mComponentsByName |
Implements the XIO side of standard WSF simulations. An instance of this is instantiated what WSF simulation application does:
This class hooks into the simulation performs the necessary functions needed to allow WSF applications to participate in a distributed XIO simulation.
| WsfXIO_Simulation::WsfXIO_Simulation | ( | WsfXIO_Interface * | aInterfacePtr, |
| WsfSimulation & | aSimulation ) |
References WsfCSV_EventOutputData::AddDataTags(), WsfCSV_EventOutput::Find(), WsfDisInterface::Find(), WsfEventOutput::Find(), WsfXIO_ScriptSerialize::Initialize(), Register_event_output(), WsfXIO_SimPacketRegistry::RegisterPackets(), WsfXIO_Interface::SetClockSource(), and WsfComponentListT< WsfXIO_Component >::SetParentOfComponents().
|
override |
|
inline |
|
inline |
|
inline |
Referenced by WsfXIO_WeaponComponent::ComponentParentChanged().
|
inline |
|
inline |
Referenced by WsfXIO_WeaponComponent::ComponentParentChanged().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by WsfXIO_WeaponComponent::GetSimulation(), Initialize(), WsfXIO_ObjectInfoLoad::Load_Platform(), WsfXIO_DrawService::WsfXIO_DrawService(), WsfXIO_PlatformPartInfoService::WsfXIO_PlatformPartInfoService(), WsfXIO_ScriptService::WsfXIO_ScriptService(), WsfXIO_SensorService::WsfXIO_SensorService(), and WsfXIO_TrackService::WsfXIO_TrackService().
|
inline |
|
inline |
| bool WsfXIO_Simulation::Initialize | ( | ) |