#include <maciComponentStateManager.h>
Inheritance diagram for maci::MACIComponentStateManager:
Public Member Functions | |
MACIComponentStateManager (ACE_CString &compName) | |
virtual | ~MACIComponentStateManager () |
virtual ACS::ComponentStates | getCurrentState () |
virtual void | setState (ACS::ComponentStates newState) |
virtual ACE_CString | getName () |
Private Member Functions | |
bool | checkTransition (ACS::ComponentStates candidateState) |
ACE_CString | stateToString (ACS::ComponentStates state) |
Private Attributes | |
ACS::ComponentStates | componentState_m |
The current state of the component. | |
ACE_CString | componentName_m |
The name of the component (to beautify log messages). |
|
The constructor |
|
The destructor |
|
Check if the transition from the actual state to the requested state is consistent At the present this function does nothing: it checks the consistency and in case of error send a message to the log. But it always returns true.
|
|
Returns the current state of the component
Implements maci::ComponentStateManager.
|
|
Return the state in a human readable format It could be useful for logging or printing the state
Implements maci::ComponentStateManager.
|
|
Change the state of the component
Implements maci::ComponentStateManager.
|
|
Convert a state to a string
|
|
The name of the component (to beautify log messages).
|
|
The current state of the component.
|