Public Member Functions

maci::ComponentStateManager Class Reference

#include <acsComponentStateManager.h>

Inheritance diagram for maci::ComponentStateManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ComponentStateManager ()
virtual ACS::ComponentStates getCurrentState ()=0
virtual void setState (ACS::ComponentStates newState)=0
virtual ACE_CString getName ()=0

Detailed Description

ComponentStateManager is an interface with the methods to manage the state of a component


Constructor & Destructor Documentation

virtual maci::ComponentStateManager::~ComponentStateManager (  )  [inline, virtual]

Member Function Documentation

virtual ACS::ComponentStates maci::ComponentStateManager::getCurrentState (  )  [pure virtual]

Returns the current state of the component

Returns:
the state of the component

Implemented in maci::MACIComponentStateManager.

virtual ACE_CString maci::ComponentStateManager::getName (  )  [pure virtual]

Return the state in a human readable format It could be useful for logging or printing the state

Returns:
A string with the name of the state

Implemented in maci::MACIComponentStateManager.

virtual void maci::ComponentStateManager::setState ( ACS::ComponentStates  newState  )  [pure virtual]

Change the state of the component

Parameters:
newState The new state of the component
Exceptions:
LifeCycleException if the transition from the current state to the new state is not allowed

Implemented in maci::MACIComponentStateManager.


The documentation for this class was generated from the following file: