36 #ifndef _mtsManagerComponentClient_h
37 #define _mtsManagerComponentClient_h
129 bool ConnectLocally(
const std::string & clientComponentName,
const std::string & clientInterfaceName,
130 const std::string & serverComponentName,
const std::string & serverInterfaceName,
131 const std::string & clientProcessName =
"");
133 bool DisconnectLocally(
const std::string & clientComponentName,
const std::string & clientInterfaceName,
134 const std::string & serverComponentName,
const std::string & serverInterfaceName);
157 bool Connect(
const std::string & clientComponentName,
const std::string & clientInterfaceRequiredName,
158 const std::string & serverComponentName,
const std::string & serverInterfaceProvidedName);
178 std::vector<mtsDescriptionComponentClass> & listOfComponentClasses)
const;
199 std::vector<std::string> & names)
const;
203 std::vector <mtsDescriptionComponentClass> & listOfComponentClasses)
const;
213 std::vector<double> &processTimes)
const;
236 #endif // _mtsManagerComponentClient_h
mtsFunctionWrite DisableLogForwarding
Definition: mtsManagerComponentClient.h:87
void InterfaceComponentCommands_GetListOfComponentClasses(const std::string &processName, std::vector< mtsDescriptionComponentClass > &listOfComponentClasses) const
void InterfaceComponentCommands_EnableLogForwarding(const std::vector< std::string > &processNames)
mtsFunctionQualifiedRead GetLogForwardingStates
Definition: mtsManagerComponentClient.h:88
void GetAbsoluteTimeInSeconds(mtsDouble &time) const
void InterfaceLCMCommands_ComponentStop(const mtsComponentStatusControl &arg)
mtsFunctionRead ComponentGetState
Definition: mtsManagerComponentClient.h:61
mtsFunctionWrite InterfaceComponentEvents_RemoveConnection
Definition: mtsManagerComponentClient.h:219
void InterfaceLCMCommands_ComponentResume(const mtsComponentStatusControl &arg)
Definition: mtsFunctionRead.h:37
Define a Mutex object.
Definition: osaMutex.h:48
void InterfaceLCMCommands_SetLogForwarding(const bool &state)
void InterfaceLCMCommands_GetInterfaceRequiredDescription(const mtsDescriptionInterface &intfc, mtsInterfaceRequiredDescription &description) const
void InterfaceComponentCommands_DisableLogForwarding(const std::vector< std::string > &processNames)
Definition: mtsManagerComponentClient.h:58
Definition: mtsParameterTypes.h:100
void InterfaceComponentCommands_ComponentResume(const mtsComponentStatusControl &arg)
void InterfaceLCMCommands_GetListOfComponentClasses(std::vector< mtsDescriptionComponentClass > &listOfComponentClasses) const
void InterfaceLCMCommands_ComponentGetState(const mtsDescriptionComponent &component, mtsComponentState &state) const
Definition: mtsParameterTypes.h:652
void InterfaceComponentCommands_ComponentConfigure(const mtsDescriptionComponent &arg)
Definition: mtsFunctionQualifiedRead.h:37
mtsFunctionQualifiedRead GetNamesOfComponents
Definition: mtsManagerComponentClient.h:91
mtsFunctionWrite EnableLogForwarding
Definition: mtsManagerComponentClient.h:86
mtsFunctionWrite ComponentConnect
Definition: mtsManagerComponentClient.h:117
mtsFunctionQualifiedRead GetNamesOfInterfaces
Definition: mtsManagerComponentClient.h:92
mtsFunctionRead GetNamesOfProcesses
Definition: mtsManagerComponentClient.h:49
bool IsLocalProcess(const std::string &procName) const
InterfaceLCMFunctionType InterfaceLCMFunction
Definition: mtsManagerComponentClient.h:100
mtsFunctionVoid ComponentStop
Definition: mtsManagerComponentClient.h:59
bool Connect(const std::string &clientComponentName, const std::string &clientInterfaceRequiredName, const std::string &serverComponentName, const std::string &serverInterfaceProvidedName)
void InterfaceLCMCommands_ComponentConnect(const mtsDescriptionConnection &connectionDescription)
std::vector< std::string > stdStringVec
Definition: mtsGenericObjectProxy.h:39
Definition: mtsInterfaceCommon.h:1046
mtsManagerComponentClient(const std::string &componentName)
void InterfaceLCMCommands_ComponentConfigure(const mtsDescriptionComponent &arg)
~mtsManagerComponentClient()
Definition: mtsFunctionVoid.h:36
void InterfaceComponentCommands_ComponentCreate(const mtsDescriptionComponent &componentDescription, bool &result)
bool MCSReady
Definition: mtsManagerComponentClient.h:52
mtsFunctionWrite InterfaceComponentEvents_AddConnection
Definition: mtsManagerComponentClient.h:218
mtsFunctionWrite ComponentConfigure
Definition: mtsManagerComponentClient.h:77
Definition: mtsParameterTypes.h:873
mtsFunctionQualifiedRead GetInterfaceRequiredDescription
Definition: mtsManagerComponentClient.h:96
bool AddInterfaceLCM(void)
bool AddInterfaceComponent(void)
Declaration of Base Class for Manager ComponentsIn the networked configuration, the communication bet...
void InterfaceComponentCommands_GetNamesOfProcesses(std::vector< std::string > &names) const
mtsFunctionQualifiedRead GetInterfaceProvidedDescription
Definition: mtsManagerComponentClient.h:95
Definition: mtsManagerLocal.h:89
Declaration of Manager Component ClientThis class defines the manager component client which is manag...
Definition: mtsManagerComponentClient.h:41
mtsFunctionWrite InterfaceComponentEvents_ChangeState
Definition: mtsManagerComponentClient.h:217
mtsFunctionWrite ComponentStartOther
Definition: mtsManagerComponentClient.h:67
void InterfaceLCMCommands_LoadLibrary(const std::string &fileName, bool &result) const
void InterfaceComponentCommands_GetLogForwardingStates(const stdStringVec &processNames, stdCharVec &states) const
osaMutex Mutex
Definition: mtsManagerComponentClient.h:116
Definition: mtsInterfaceCommon.h:928
Definition: mtsParameterTypes.h:533
Definition: mtsManagerComponentClient.h:74
CMN_DECLARE_SERVICES_INSTANTIATION(mtsManagerComponentClient)
Definition: mtsManagerComponentBase.h:99
bool ConnectLocally(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName, const std::string &clientProcessName="")
Connect two local interfaces.
void InterfaceLCMCommands_GetInterfaceProvidedDescription(const mtsDescriptionInterface &intfc, mtsInterfaceProvidedDescription &description) const
mtsFunctionWriteReturn RemoveObserverList
Definition: mtsManagerComponentClient.h:65
mtsFunctionWrite ComponentDisconnect
Definition: mtsManagerComponentClient.h:79
Definition: mtsParameterTypes.h:322
mtsFunctionVoid ComponentResume
Definition: mtsManagerComponentClient.h:60
mtsFunctionWriteReturn RemoveEndUserInterface
Definition: mtsManagerComponentClient.h:64
mtsFunctionWrite ComponentResume
Definition: mtsManagerComponentClient.h:82
bool AddNewClientComponent(const std::string &clientComponentName)
mtsFunctionWrite ComponentStop
Definition: mtsManagerComponentClient.h:81
mtsFunctionWrite InterfaceComponentEvents_AddComponent
Definition: mtsManagerComponentClient.h:216
Definition: mtsComponentState.h:34
void InterfaceLCMCommands_GetAbsoluteTimeInSeconds(double &time) const
bool DisconnectCleanup(const std::string &componentName)
void InterfaceComponentCommands_GetAbsoluteTimeDiffs(const std::vector< std::string > &processNames, std::vector< double > &processTimes) const
void InterfaceComponentCommands_GetInterfaceProvidedDescription(const mtsDescriptionInterface &intfc, mtsInterfaceProvidedDescription &description) const
struct mtsManagerComponentClient::GeneralInterfaceStruct GeneralInterface
bool ForwardLog(const mtsLogMessage &log) const
void InterfaceComponentCommands_ComponentDisconnect(const mtsDescriptionConnection &arg)
mtsFunctionWriteReturn AddObserverList
Definition: mtsManagerComponentClient.h:63
void InterfaceComponentCommands_ComponentStart(const mtsComponentStatusControl &arg)
mtsFunctionWriteReturn GetEndUserInterface
Definition: mtsManagerComponentClient.h:62
void InterfaceComponentCommands_ComponentGetState(const mtsDescriptionComponent &component, mtsComponentState &state) const
void HandleMCSReadyEvent(void)
void InterfaceComponentCommands_GetNamesOfInterfaces(const mtsDescriptionComponent &component, mtsDescriptionInterface &interfaces) const
bool DisconnectLocally(const std::string &clientComponentName, const std::string &clientInterfaceName, const std::string &serverComponentName, const std::string &serverInterfaceName)
void InterfaceLCMCommands_ComponentCreate(const mtsDescriptionComponent &componentDescription, bool &result)
void InterfaceLCMCommands_GetLogForwardingState(bool &state) const
mtsFunctionRead GetListOfConnections
Definition: mtsManagerComponentClient.h:93
mtsFunctionWrite ComponentStart
Definition: mtsManagerComponentClient.h:80
Definition: mtsManagerComponentClient.h:115
void HandleChangeStateFromComponent(const mtsComponentStateChange &componentStateChange)
void InterfaceComponentCommands_ComponentConnect(const mtsDescriptionConnection &connectionDescription)
void InterfaceComponentCommands_GetListOfConnections(std::vector< mtsDescriptionConnection > &listOfConnections) const
mtsFunctionRead GetNamesOfProcesses
Definition: mtsManagerComponentClient.h:90
void InterfaceLCMCommands_ComponentDisconnect(const mtsDescriptionConnection &arg)
std::vector< char > stdCharVec
Definition: mtsGenericObjectProxy.h:41
void InterfaceLCMCommands_ComponentStart(const mtsComponentStatusControl &arg)
void HandleAddComponentEvent(const mtsDescriptionComponent &component)
mtsFunctionWrite PrintLog
Definition: mtsManagerComponentClient.h:85
mtsFunctionQualifiedRead ComponentGetState
Definition: mtsManagerComponentClient.h:83
Definition: mtsParameterTypesOld.h:84
InterfaceComponentFunctionMapType InterfaceComponentFunctionMap
Definition: mtsManagerComponentClient.h:71
Definition: mtsFunctionWrite.h:37
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
cmnNamedMap< InterfaceComponentFunctionType > InterfaceComponentFunctionMapType
Definition: mtsManagerComponentClient.h:70
mtsFunctionWrite ComponentConnect
Definition: mtsManagerComponentClient.h:78
mtsFunctionQualifiedRead GetAbsoluteTimeDiffs
Definition: mtsManagerComponentClient.h:97
bool CanForwardLog(void) const
Definition: mtsParameterTypes.h:769
void InterfaceComponentCommands_GetNamesOfComponents(const std::string &processName, std::vector< std::string > &names) const
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
mtsFunctionQualifiedRead LoadLibrary
Definition: mtsManagerComponentClient.h:84
Definition: mtsFunctionWriteReturn.h:38
mtsFunctionQualifiedRead GetListOfComponentClasses
Definition: mtsManagerComponentClient.h:94
void InterfaceComponentCommands_GetInterfaceRequiredDescription(const mtsDescriptionInterface &intfc, mtsInterfaceRequiredDescription &description) const
mtsFunctionWrite InterfaceLCMEvents_ChangeState
Definition: mtsManagerComponentClient.h:184
void HandleRemoveConnectionEvent(const mtsDescriptionConnection &connection)
mtsFunctionWriteReturn ComponentCreate
Definition: mtsManagerComponentClient.h:66
void HandleAddConnectionEvent(const mtsDescriptionConnection &connection)
void InterfaceComponentCommands_LoadLibrary(const mtsDescriptionLoadLibrary &lib, bool &result) const
mtsFunctionWriteReturn ComponentCreate
Definition: mtsManagerComponentClient.h:76
void HandleChangeStateEvent(const mtsComponentStateChange &componentStateChange)
void InterfaceComponentCommands_ComponentStop(const mtsComponentStatusControl &arg)