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.11
Date:
2011/03/07 15:31:32

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 17 of file Enabled.cc.

References stor::Operations::safeEntryAction().

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

Definition at line 41 of file Enabled.cc.

References stor::Operations::safeExitAction().

42 {
44 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Enabled::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 22 of file Enabled.cc.

References stor::Operations::stateName().

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

Implements stor::Operations.

Definition at line 46 of file Enabled.cc.

References stor::Operations::stateName().

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

Implements stor::Operations.

Definition at line 62 of file Enabled.cc.

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

Implements stor::Operations.

Definition at line 57 of file Enabled.cc.

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

Definition at line 67 of file Enabled.cc.

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

Definition at line 72 of file Enabled.cc.

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