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

#include <StateMachine.h>

Inheritance diagram for stor::Halted:
stor::Operations

Public Types

typedef boost::mpl::list< RTreactions
 
typedef bsc::transition
< Configure, Ready
RT
 

Public Member Functions

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

Halted state

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

Definition at line 251 of file StateMachine.h.

Member Typedef Documentation

Definition at line 257 of file StateMachine.h.

typedef bsc::transition<Configure,Ready> stor::Halted::RT

Definition at line 256 of file StateMachine.h.

Constructor & Destructor Documentation

Halted::Halted ( my_context  c)

Definition at line 24 of file Halted.cc.

References stor::Operations::safeEntryAction().

24  : my_base(c)
25 {
27 }
void safeEntryAction()
Definition: Operations.cc:77
Halted::~Halted ( )
virtual

Definition at line 35 of file Halted.cc.

References stor::Operations::safeExitAction().

36 {
38 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Halted::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 16 of file Halted.cc.

17 {
18  TransitionRecord tr( stateName(), true );
19  outermost_context().updateHistory( tr );
20  outermost_context().setExternallyVisibleState( "Halted" );
21  outermost_context().getNotifier()->reportNewState( "Halted" );
22 }
std::string stateName() const
Definition: Operations.cc:39
void Halted::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 29 of file Halted.cc.

References stor::Operations::stateName().

30 {
31  TransitionRecord tr( stateName(), false );
32  outermost_context().updateHistory( tr );
33 }
std::string stateName() const
Definition: Operations.cc:39
void Halted::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 45 of file Halted.cc.

46 {
47  outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
48 }
string Halted::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 40 of file Halted.cc.

41 {
42  return std::string( "Halted" );
43 }