CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions
stor::Enabled Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::Enabled:
stor::Operations

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 ()
 
- Public Member Functions inherited from stor::Operations
void moveToFailedState (xcept::Exception &exception) const
 
void noFragmentToProcess () const
 
 Operations ()
 
void processI2OFragment (I2OChain &frag) const
 
std::string stateName () const
 
virtual ~Operations ()=0
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from stor::Operations
virtual void do_noFragmentToProcess () const
 
virtual void do_processI2OFragment (I2OChain &frag) const
 
void safeEntryAction ()
 
void safeExitAction ()
 

Detailed Description

Enabled state

Author:
mommsen
Revision:
1.10.12.1
Date:
2011/03/07 11:33:04

Definition at line 337 of file StateMachine.h.

Member Typedef Documentation

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.

Definition at line 348 of file StateMachine.h.

Definition at line 347 of file StateMachine.h.

Constructor & Destructor Documentation

Enabled::Enabled ( my_context  c)

Definition at line 16 of file Enabled.cc.

References stor::Operations::safeEntryAction().

16  : my_base(c)
17 {
19 }
void safeEntryAction()
Definition: Operations.cc:77
Enabled::~Enabled ( )
virtual

Definition at line 40 of file Enabled.cc.

References stor::Operations::safeExitAction().

41 {
43 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Enabled::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 21 of file Enabled.cc.

References stor::Operations::stateName().

22 {
23 
24  TransitionRecord tr( stateName(), true );
25  outermost_context().updateHistory( tr );
26 
27  SharedResourcesPtr sharedResources =
28  outermost_context().getSharedResources();
29 
30  // reset all statistics (needs to be done first)
31  sharedResources->statisticsReporter_->reset();
32 
33  // clear the INIT message collection at begin run
34  sharedResources->initMsgCollection_->clear();
35 
36  // update the run-based configuration parameters
37  sharedResources->configuration_->updateRunParams();
38 }
std::string stateName() const
Definition: Operations.cc:39
boost::shared_ptr< SharedResources > SharedResourcesPtr
void Enabled::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 45 of file Enabled.cc.

References stor::Operations::stateName().

46 {
47 
48  TransitionRecord tr( stateName(), false );
49  outermost_context().updateHistory( tr );
50 
51  // clear the stream selections in the event distributor
52  outermost_context().getEventDistributor()->clearStreams();
53 
54 }
std::string stateName() const
Definition: Operations.cc:39
void Enabled::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 61 of file Enabled.cc.

62 {
63  outermost_context().getSharedResources()->moveToFailedState( exception );
64 }
string Enabled::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 56 of file Enabled.cc.

57 {
58  return std::string( "Enabled" );
59 }
void Enabled::logHaltRequest ( const Halt request)

Definition at line 66 of file Enabled.cc.

67 {
68  outermost_context().unconsumed_event( request );
69 }
void Enabled::logReconfigureRequest ( const Reconfigure request)

Definition at line 71 of file Enabled.cc.

72 {
73  outermost_context().unconsumed_event( request );
74 }