CCA

#include <State.h>

Inheritance diagram for cca::ComponentState:
Collaboration diagram for cca::ComponentState:

List of all members.

Public Types

enum  State {
  STATE_RESET = 32, STATE_PAUSE = 31, STATE_ACQUIRE = 24, STATE_OFFLLEARN = 23,
  STATE_ONLLEARN = 22, STATE_EXEC = 21, STATE_LOAD = 12, STATE_PERSIST = 11,
  STATE_OFF = 0
}
 Possible component states. More...

Public Member Functions

ComponentState::State getState () const
virtual std::string print () const
 Prints the ComponentState.
virtual ~ComponentState ()

Static Public Member Functions

static ComponentStatePtr PERSISTED ()
static ComponentStatePtr LOADED ()
static ComponentStatePtr PAUSED ()
static ComponentStatePtr STOPPED ()
static ComponentStatePtr EXECUTION ()
static ComponentStatePtr ONLINELEARNING ()
static ComponentStatePtr OFFLINELEARNING ()
static ComponentStatePtr DATAACQUISITION ()
static ComponentStatePtr RESET ()

Protected Member Functions

 ComponentState (ComponentState::State state)
 Constructor.

Protected Attributes

ComponentState::State state

Detailed Description

Definition at line 51 of file State.h.


Member Enumeration Documentation

Possible component states.

Enumerator:
STATE_RESET 
STATE_PAUSE 
STATE_ACQUIRE 
STATE_OFFLLEARN 
STATE_ONLLEARN 
STATE_EXEC 
STATE_LOAD 
STATE_PERSIST 
STATE_OFF 

Definition at line 66 of file State.h.


Constructor & Destructor Documentation

Definition at line 81 of file State.cpp.

Constructor.

Definition at line 77 of file State.cpp.


Member Function Documentation

Definition at line 68 of file State.cpp.

Definition at line 55 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 73 of file State.cpp.

Referenced by cca::operator==().

Here is the caller graph for this function:

Definition at line 39 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 63 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 59 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 43 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 35 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

std::string cca::ComponentState::print ( ) const [virtual]

Prints the ComponentState.

Returns:
Formatted component information box

Reimplemented from cca::DataTransferObject.

Definition at line 84 of file State.cpp.

References state, STATE_ACQUIRE, STATE_EXEC, STATE_LOAD, STATE_OFF, STATE_OFFLLEARN, STATE_ONLLEARN, STATE_PAUSE, STATE_PERSIST, and STATE_RESET.

Definition at line 47 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::ComponentStateConverter::serialize().

Here is the caller graph for this function:

Definition at line 51 of file State.cpp.

Referenced by cca::ComponentStateConverter::deserialize(), and cca::Component::~Component().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 94 of file State.h.

Referenced by print().


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