12#ifndef WSFCOMMANDCHAIN_HPP
13#define WSFCOMMANDCHAIN_HPP
15#include "wsf_export.h"
43 static std::unique_ptr<UtScriptClass>
CreateScriptClass(
const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
73 std::string GetCommanderName()
const;
103 static bool LoadInstance(UtInput& aInput,
WsfCommandChain*& aInstancePtr);
114 std::string PrintHeader()
const;
120 bool mCommanderIsSelfImplicitly{
false};
122 WsfPlatform* mCommanderPtr;
123 std::vector<WsfPlatform*> mPeers;
124 std::vector<WsfPlatform*> mSubordinates;
126 UtScriptClass* mPlatformClassPtr;
@ cWSF_INITIALIZE_ORDER_COMMAND_CHAIN
Command chains aren't dependent on anything, but something may be dependent on them.
Definition WsfComponentRoles.hpp:164
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
@ cWSF_COMPONENT_COMMAND_CHAIN
A 'command_chain' component (WsfCommandChain).
Definition WsfComponentRoles.hpp:109
WsfSimpleComponentT< WsfPlatformComponent > WsfSimplePlatformComponent
Definition WsfSimpleComponent.hpp:126
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfCommandChain.hpp:36
WsfCommandChain()
Definition WsfCommandChain.cpp:110
WsfPlatform * GetPlatform() const
Definition WsfCommandChain.hpp:62
static void RegisterComponentFactory(WsfScenario &aScenario)
Definition WsfCommandChain.cpp:90
WsfStringId GetCommanderNameId() const
Get the name ID of the commander;.
Definition WsfCommandChain.hpp:76
static WsfStringId GetDefaultNameId()
Get the name (string ID) to be used for the default command chain.
Definition WsfCommandChain.cpp:104
~WsfCommandChain() override=default
WsfPlatform * GetCommander() const
Definition WsfCommandChain.hpp:68
static std::unique_ptr< UtScriptClass > CreateScriptClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfCommandChain.cpp:551
void ComponentParentChanged(WsfPlatform *aPlatformPtr) override
Definition WsfCommandChain.hpp:57
PlatformList & GetSubordinates()
Definition WsfCommandChain.hpp:93
int GetComponentInitializationOrder() const override
Definition WsfCommandChain.hpp:56
static std::string GetDefaultName()
Get the name to be used for the default command chain.
Definition WsfCommandChain.cpp:97
std::vector< WsfPlatform * >::iterator PlatformListIter
Definition WsfCommandChain.hpp:39
WsfComponent * CloneComponent() const override
Definition WsfCommandChain.hpp:54
PlatformList & GetPeers()
Definition WsfCommandChain.hpp:83
std::vector< WsfPlatform * > PlatformList
Definition WsfCommandChain.hpp:38
void * QueryInterface(int aRole) override
Definition WsfCommandChain.hpp:55
Definition WsfComponent.hpp:39
virtual bool Initialize(double aSimTime)
Definition WsfComponent.cpp:45
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
WsfSimpleComponentT & operator=(const WsfSimpleComponentT &aRhs)
Definition WsfSimpleComponent.hpp:84
int mRoles[2]
Definition WsfSimpleComponent.hpp:116