9 #include "interface/evb/i2oEVBMsgs.h"
16 using namespace evf::rb_statemachine;
25 LOG4CPLUS_INFO(res->log_,
"--> ResourceBroker: NEW STATE: " <<
stateName());
26 outermost_context().setExternallyVisibleState(
"Enabled");
27 outermost_context().setInternalStateName(
stateName());
29 outermost_context().rcmsStateChangeNotify();
33 outermost_context().getSharedResources()->resourceStructure_->setStopFlag(
false);
42 bool returnValue =
false;
44 returnValue = res->resourceStructure_->discardDataEvent(bufRef);
52 bool returnValue =
false;
54 returnValue = res->resourceStructure_->discardDqmEvent(bufRef);
83 res->reasonForFailed_ = exception.what();
84 LOG4CPLUS_FATAL(res->log_,
85 "Moving to FAILED state! Reason: " << exception.what());
87 res->commands_.enqEvent(fail);
virtual bool discardDqmEvent(MemRef_t *bufRef) const
boost::shared_ptr< SharedResources > SharedResourcesPtr_t
toolbox::mem::Reference MemRef_t
virtual bool discardDataEvent(MemRef_t *bufRef) const
boost::shared_ptr< boost::statechart::event_base > EventPtr
virtual void do_stateAction() const
virtual void do_stateNotify()
virtual std::string do_stateName() const
virtual void do_entryActionWork()
void moveToFailedState(xcept::Exception &exception) const
virtual void do_moveToFailedState(xcept::Exception &exception) const
virtual void do_exitActionWork()
std::string stateName() const