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

#include <StateMachine.h>

Inheritance diagram for stor::Stopped:
stor::Operations

Public Types

typedef bsc::transition
< Enable, Enabled
ET
 
typedef bsc::in_state_reaction
< HaltDone, Stopped,&Stopped::logHaltDoneRequest
HaltDoneIR
 
typedef boost::mpl::list< ET,
HaltDoneIR
reactions
 

Public Member Functions

void logHaltDoneRequest (const HaltDone &request)
 
 Stopped (my_context)
 
virtual ~Stopped ()
 
- 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

Stopped state

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

Definition at line 307 of file StateMachine.h.

Member Typedef Documentation

typedef bsc::transition<Enable,Enabled> stor::Stopped::ET

Definition at line 314 of file StateMachine.h.

Definition at line 315 of file StateMachine.h.

Definition at line 316 of file StateMachine.h.

Constructor & Destructor Documentation

Stopped::Stopped ( my_context  c)

Definition at line 16 of file Stopped.cc.

References stor::Operations::safeEntryAction().

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

Definition at line 29 of file Stopped.cc.

References stor::Operations::safeExitAction().

30 {
32 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void Stopped::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 21 of file Stopped.cc.

References stor::Operations::stateName().

22 {
23  TransitionRecord tr( stateName(), true );
24  outermost_context().updateHistory( tr );
25  outermost_context().setExternallyVisibleState( "Ready" );
26  outermost_context().getNotifier()->reportNewState( "Ready" );
27 }
std::string stateName() const
Definition: Operations.cc:39
void Stopped::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 34 of file Stopped.cc.

References stor::Operations::stateName().

35 {
36  TransitionRecord tr( stateName(), false );
37  outermost_context().updateHistory( tr );
38 }
std::string stateName() const
Definition: Operations.cc:39
void Stopped::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 45 of file Stopped.cc.

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

Implements stor::Operations.

Definition at line 40 of file Stopped.cc.

41 {
42  return std::string( "Stopped" );
43 }
void Stopped::logHaltDoneRequest ( const HaltDone request)

Definition at line 50 of file Stopped.cc.

51 {
52  outermost_context().unconsumed_event( request );
53 }