#include <StateMachine.h>
Public Types | |
typedef bsc::transition < StopDone, Stopped > | DT |
typedef bsc::in_state_reaction < Halt, Enabled,&Enabled::logHaltRequest > | HaltIR |
typedef boost::mpl::list< DT, HaltIR, RecfgIR > | reactions |
typedef bsc::in_state_reaction < Reconfigure, Enabled,&Enabled::logReconfigureRequest > | RecfgIR |
Public Member Functions | |
Enabled (my_context) | |
void | logHaltRequest (const Halt &request) |
void | logReconfigureRequest (const Reconfigure &request) |
virtual | ~Enabled () |
Private Member Functions | |
virtual void | do_entryActionWork () |
virtual void | do_exitActionWork () |
virtual void | do_moveToFailedState (xcept::Exception &exception) const |
virtual std::string | do_stateName () const |
Enabled state
Definition at line 337 of file StateMachine.h.
typedef bsc::transition<StopDone,Stopped> stor::Enabled::DT |
Definition at line 345 of file StateMachine.h.
typedef bsc::in_state_reaction<Halt,Enabled,&Enabled::logHaltRequest> stor::Enabled::HaltIR |
Definition at line 346 of file StateMachine.h.
typedef boost::mpl::list<DT,HaltIR,RecfgIR> stor::Enabled::reactions |
Definition at line 348 of file StateMachine.h.
typedef bsc::in_state_reaction<Reconfigure,Enabled,&Enabled::logReconfigureRequest> stor::Enabled::RecfgIR |
Definition at line 347 of file StateMachine.h.
Enabled::Enabled | ( | my_context | c | ) |
Definition at line 16 of file Enabled.cc.
References stor::Operations::safeEntryAction().
: my_base(c) { safeEntryAction(); }
Enabled::~Enabled | ( | ) | [virtual] |
Definition at line 40 of file Enabled.cc.
References stor::Operations::safeExitAction().
{ safeExitAction(); }
void Enabled::do_entryActionWork | ( | ) | [private, virtual] |
Implements stor::Operations.
Definition at line 21 of file Enabled.cc.
References stor::Operations::stateName().
{ TransitionRecord tr( stateName(), true ); outermost_context().updateHistory( tr ); SharedResourcesPtr sharedResources = outermost_context().getSharedResources(); // reset all statistics (needs to be done first) sharedResources->statisticsReporter_->reset(); // clear the INIT message collection at begin run sharedResources->initMsgCollection_->clear(); // update the run-based configuration parameters sharedResources->configuration_->updateRunParams(); }
void Enabled::do_exitActionWork | ( | ) | [private, virtual] |
Implements stor::Operations.
Definition at line 45 of file Enabled.cc.
References stor::Operations::stateName().
{ TransitionRecord tr( stateName(), false ); outermost_context().updateHistory( tr ); // clear the stream selections in the event distributor outermost_context().getEventDistributor()->clearStreams(); }
void Enabled::do_moveToFailedState | ( | xcept::Exception & | exception | ) | const [private, virtual] |
Implements stor::Operations.
Definition at line 61 of file Enabled.cc.
{ outermost_context().getSharedResources()->moveToFailedState( exception ); }
string Enabled::do_stateName | ( | ) | const [private, virtual] |
Implements stor::Operations.
Definition at line 56 of file Enabled.cc.
{ return std::string( "Enabled" ); }
void Enabled::logHaltRequest | ( | const Halt & | request | ) |
Definition at line 66 of file Enabled.cc.
{ outermost_context().unconsumed_event( request ); }
void Enabled::logReconfigureRequest | ( | const Reconfigure & | request | ) |
Definition at line 71 of file Enabled.cc.
{ outermost_context().unconsumed_event( request ); }