10 using namespace evf::rb_statemachine;
15 if (outermost_context().firstTimeInHalted())
18 outermost_context().setExternallyVisibleState(
do_stateName());
19 outermost_context().setInternalStateName(
do_stateName());
24 LOG4CPLUS_INFO(res->log_,
"--> ResourceBroker: NEW STATE: " <<
stateName());
25 outermost_context().setExternallyVisibleState(
stateName());
26 outermost_context().setInternalStateName(
stateName());
28 outermost_context().rcmsStateChangeNotify();
45 outermost_context().setFirstTimeInHaltedFalse();
49 return string(
"Halted");
54 res->reasonForFailed_ = exception.what();
55 LOG4CPLUS_FATAL(res->log_,
56 "Moving to FAILED state! Reason: " << exception.what());
58 res->commands_.enqEvent(fail);
boost::shared_ptr< SharedResources > SharedResourcesPtr_t
boost::shared_ptr< boost::statechart::event_base > EventPtr
virtual std::string do_stateName() const
virtual void do_entryActionWork()
virtual void do_exitActionWork()
virtual void do_moveToFailedState(xcept::Exception &exception) const
virtual void do_stateNotify()
std::string stateName() const