CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

stor::Stopped Class Reference

#include <StateMachine.h>

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

List of all members.

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 ()

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

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.

typedef bsc::in_state_reaction<HaltDone,Stopped,&Stopped::logHaltDoneRequest> stor::Stopped::HaltDoneIR

Definition at line 315 of file StateMachine.h.

typedef boost::mpl::list<ET,HaltDoneIR> stor::Stopped::reactions

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().

                              : my_base(c)
{
  safeEntryAction();
}
Stopped::~Stopped ( ) [virtual]

Definition at line 29 of file Stopped.cc.

References stor::Operations::safeExitAction().


Member Function Documentation

void Stopped::do_entryActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 21 of file Stopped.cc.

References stor::Operations::stateName().

{
  TransitionRecord tr( stateName(), true );
  outermost_context().updateHistory( tr );
  outermost_context().setExternallyVisibleState( "Ready" );
  outermost_context().getNotifier()->reportNewState( "Ready" );
}
void Stopped::do_exitActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 34 of file Stopped.cc.

References stor::Operations::stateName().

{
  TransitionRecord tr( stateName(), false );
  outermost_context().updateHistory( tr );
}
void Stopped::do_moveToFailedState ( xcept::Exception exception) const [private, virtual]

Implements stor::Operations.

Definition at line 45 of file Stopped.cc.

{
  outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
}
string Stopped::do_stateName ( ) const [private, virtual]

Implements stor::Operations.

Definition at line 40 of file Stopped.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

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

Definition at line 50 of file Stopped.cc.

{
  outermost_context().unconsumed_event( request );
}