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::Normal Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::Normal:
stor::Operations

Public Types

typedef bsc::transition< Fail,
Failed
FT
 
typedef boost::mpl::list< FTreactions
 

Public Member Functions

 Normal (my_context)
 
virtual ~Normal ()
 
- 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

Normal state

Author:
mommsen
Revision:
1.11
Date:
2011/03/07 15:31:32

Definition at line 197 of file StateMachine.h.

Member Typedef Documentation

typedef bsc::transition<Fail,Failed> stor::Normal::FT

Definition at line 202 of file StateMachine.h.

Definition at line 203 of file StateMachine.h.

Constructor & Destructor Documentation

Normal::Normal ( my_context  c)

Definition at line 19 of file Normal.cc.

References stor::Operations::safeEntryAction().

19  : my_base(c)
20 {
22 }
void safeEntryAction()
Definition: Operations.cc:77
Normal::~Normal ( )
virtual

Definition at line 30 of file Normal.cc.

References stor::Operations::safeExitAction().

31 {
33 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Normal::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 13 of file Normal.cc.

14 {
15  TransitionRecord tr( stateName(), true );
16  outermost_context().updateHistory( tr );
17 }
std::string stateName() const
Definition: Operations.cc:39
void Normal::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 24 of file Normal.cc.

References stor::Operations::stateName().

25 {
26  TransitionRecord tr( stateName(), false );
27  outermost_context().updateHistory( tr );
28 }
std::string stateName() const
Definition: Operations.cc:39
void Normal::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 40 of file Normal.cc.

41 {
42  outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
43 }
string Normal::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 35 of file Normal.cc.

36 {
37  return std::string( "Normal" );
38 }