CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
stor::FinishingDQM Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::FinishingDQM:
stor::Operations

Public Member Functions

 FinishingDQM (my_context)
 
virtual ~FinishingDQM ()
 
- 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 void do_noFragmentToProcess () const
 
virtual std::string do_stateName () const
 
bool endOfRunProcessingIsDone () const
 

Additional Inherited Members

- Protected Member Functions inherited from stor::Operations
virtual void do_processI2OFragment (I2OChain &frag) const
 
void safeEntryAction ()
 
void safeExitAction ()
 

Detailed Description

FinishingDQM state

Author:
mommsen
Revision:
1.10.12.1
Date:
2011/03/07 11:33:04

Definition at line 567 of file StateMachine.h.

Constructor & Destructor Documentation

FinishingDQM::FinishingDQM ( my_context  c)

Definition at line 16 of file FinishingDQM.cc.

References stor::Operations::safeEntryAction().

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

Definition at line 35 of file FinishingDQM.cc.

References stor::Operations::safeExitAction().

36 {
38 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void FinishingDQM::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 21 of file FinishingDQM.cc.

References stor::Operations::stateName().

22 {
23 
24  TransitionRecord tr( stateName(), true );
25  outermost_context().updateHistory( tr );
26 
27  SharedResourcesPtr sharedResources =
28  outermost_context().getSharedResources();
29 
30  // request end-of-run processing in DQMEventProcessor
31  sharedResources->dqmEventProcessorResources_->requestEndOfRun();
32 
33 }
std::string stateName() const
Definition: Operations.cc:39
boost::shared_ptr< SharedResources > SharedResourcesPtr
void FinishingDQM::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 40 of file FinishingDQM.cc.

References stor::Operations::stateName().

41 {
42  TransitionRecord tr( stateName(), false );
43  outermost_context().updateHistory( tr );
44 }
std::string stateName() const
Definition: Operations.cc:39
void FinishingDQM::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 51 of file FinishingDQM.cc.

52 {
53  outermost_context().getSharedResources()->moveToFailedState( exception );
54 }
void FinishingDQM::do_noFragmentToProcess ( ) const
privatevirtual

Reimplemented from stor::Operations.

Definition at line 57 of file FinishingDQM.cc.

References endOfRunProcessingIsDone().

58 {
60  {
61  SharedResourcesPtr sharedResources =
62  outermost_context().getSharedResources();
63  EventPtr_t stMachEvent( new EndRun() );
64  sharedResources->commandQueue_->enqWait( stMachEvent );
65  }
66 }
boost::shared_ptr< SharedResources > SharedResourcesPtr
boost::shared_ptr< boost::statechart::event_base > EventPtr_t
Definition: CommandQueue.h:21
bool endOfRunProcessingIsDone() const
Definition: FinishingDQM.cc:69
string FinishingDQM::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 46 of file FinishingDQM.cc.

47 {
48  return std::string( "FinishingDQM" );
49 }
bool FinishingDQM::endOfRunProcessingIsDone ( ) const
private

Definition at line 69 of file FinishingDQM.cc.

Referenced by do_noFragmentToProcess().

70 {
71  SharedResourcesPtr sharedResources =
72  outermost_context().getSharedResources();
73 
74  if ( sharedResources->dqmEventProcessorResources_->requestsOngoing() ) return false;
75 
76  return true;
77 }
boost::shared_ptr< SharedResources > SharedResourcesPtr