CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

stor::Halted Class Reference

#include <StateMachine.h>

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

List of all members.

Public Types

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

Public Member Functions

 Halted (my_context)
virtual ~Halted ()

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

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

typedef boost::mpl::list<RT> stor::Halted::reactions

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

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

Definition at line 35 of file Halted.cc.

References stor::Operations::safeExitAction().


Member Function Documentation

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

Implements stor::Operations.

Definition at line 16 of file Halted.cc.

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

Implements stor::Operations.

Definition at line 29 of file Halted.cc.

References stor::Operations::stateName().

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

Implements stor::Operations.

Definition at line 45 of file Halted.cc.

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

Implements stor::Operations.

Definition at line 40 of file Halted.cc.

{
  return std::string( "Halted" );
}