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.10.12.1
Date:
2011/03/07 11:33:04

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 23 of file Halted.cc.

References stor::Operations::safeEntryAction().

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

Definition at line 34 of file Halted.cc.

References stor::Operations::safeExitAction().

35 {
37 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Halted::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 15 of file Halted.cc.

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

Implements stor::Operations.

Definition at line 28 of file Halted.cc.

References stor::Operations::stateName().

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

Implements stor::Operations.

Definition at line 44 of file Halted.cc.

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

Implements stor::Operations.

Definition at line 39 of file Halted.cc.

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