CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Ready.cc
Go to the documentation of this file.
1 
8 
9 using std::string;
10 using namespace evf::rb_statemachine;
11 
12 // entry action, state notification, state action
13 //______________________________________________________________________________
15 }
16 
18  SharedResourcesPtr_t res = outermost_context().getSharedResources();
19  LOG4CPLUS_INFO(res->log_, "--> ResourceBroker: NEW STATE: " << stateName());
20  outermost_context().setExternallyVisibleState(stateName());
21  outermost_context().setInternalStateName(stateName());
22  // notify RCMS of the new state
23  outermost_context().rcmsStateChangeNotify();
24 }
25 
26 // construction / destruction
27 //______________________________________________________________________________
28 Ready::Ready(my_context c) :
29  my_base(c) {
31 }
32 
35 }
36 
37 // exit action, state name, move to failed state
38 //______________________________________________________________________________
40 }
41 
42 string Ready::do_stateName() const {
43  return string("Ready");
44 }
45 
47 }
boost::shared_ptr< SharedResources > SharedResourcesPtr_t
virtual std::string do_stateName() const
Definition: Ready.cc:42
virtual void do_stateNotify()
Definition: Ready.cc:17
virtual void do_moveToFailedState(xcept::Exception &exception) const
Definition: Ready.cc:46
virtual void do_entryActionWork()
Definition: Ready.cc:14
std::string stateName() const
Definition: BaseState.cc:31
virtual void do_exitActionWork()
Definition: Ready.cc:39