Go to the documentation of this file.00001
00003
00004 #include "EventFilter/StorageManager/interface/AlarmHandler.h"
00005 #include "EventFilter/StorageManager/interface/Notifier.h"
00006 #include "EventFilter/StorageManager/interface/StateMachine.h"
00007 #include "EventFilter/StorageManager/interface/TransitionRecord.h"
00008
00009 #include <iostream>
00010
00011 using namespace std;
00012 using namespace stor;
00013
00014 void Constructed::do_entryActionWork()
00015 {
00016 TransitionRecord tr( stateName(), true );
00017 outermost_context().updateHistory( tr );
00018 outermost_context().setExternallyVisibleState( "Halted" );
00019 }
00020
00021 Constructed::Constructed( my_context c ): my_base(c)
00022 {
00023 safeEntryAction();
00024 }
00025
00026 void Constructed::do_exitActionWork()
00027 {
00028 TransitionRecord tr( stateName(), false );
00029 outermost_context().updateHistory( tr );
00030 }
00031
00032 Constructed::~Constructed()
00033 {
00034 safeExitAction();
00035 }
00036
00037 string Constructed::do_stateName() const
00038 {
00039 return string( "Constructed" );
00040 }
00041
00042 void Constructed::do_moveToFailedState( xcept::Exception& exception ) const
00043 {
00044 outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
00045 }
00046
00047
00048