#include <StateMachine.h>
Public Member Functions | |
bool | checkIfEnabled () |
xoap::MessageReference | commandCallback (xoap::MessageReference msg) throw (xoap::exception::Exception) |
void | disableRcmsStateNotification () |
void | failed (toolbox::Event::Reference e) throw (toolbox::fsm::exception::Exception) |
void | findRcmsStateListener () |
void | fireEvent (const std::string &evtType, void *originator) |
void | fireFailed (const std::string &errorMsg, void *originator) |
xdata::Boolean * | foundRcmsStateListener () |
template<class T > | |
void | initialize (T *app) |
xdata::Bag < xdaq2rc::ClassnameAndInstance > * | rcmsStateListener () |
void | stateChanged (toolbox::fsm::FiniteStateMachine &fsm) throw (toolbox::fsm::exception::Exception) |
StateMachine (xdaq::Application *app) | |
xdata::String * | stateName () |
virtual | ~StateMachine () |
Private Attributes | |
xdata::InfoSpace * | appInfoSpace_ |
std::string | appNameAndInstance_ |
toolbox::task::ActionSignature * | asConfiguring_ |
toolbox::task::ActionSignature * | asEnabling_ |
toolbox::task::ActionSignature * | asHalting_ |
toolbox::task::ActionSignature * | asStopping_ |
bool | doStateNotification_ |
toolbox::fsm::FiniteStateMachine | fsm_ |
log4cplus::Logger | logger_ |
xdaq2rc::RcmsStateNotifier | rcmsStateNotifier_ |
xdata::String | stateName_ |
toolbox::task::WorkLoop * | workLoopConfiguring_ |
toolbox::task::WorkLoop * | workLoopEnabling_ |
toolbox::task::WorkLoop * | workLoopHalting_ |
toolbox::task::WorkLoop * | workLoopStopping_ |
Definition at line 28 of file StateMachine.h.
StateMachine::StateMachine | ( | xdaq::Application * | app | ) |
Definition at line 36 of file StateMachine.cc.
References appNameAndInstance_.
|
virtual |
Definition at line 60 of file StateMachine.cc.
|
inline |
xoap::MessageReference StateMachine::commandCallback | ( | xoap::MessageReference | msg | ) | |
throw | ( | xoap::exception::Exception | |||
) |
Definition at line 71 of file StateMachine.cc.
References edmPickEvents::command, alignCSCRings::e, web.browse_db::env, edm::hlt::Exception, i, lumiQueryAPI::msg, python.Node::node, and evf::utils::state.
Referenced by evf::FUEventProcessor::fsmCallback().
|
inline |
Definition at line 64 of file StateMachine.h.
References doStateNotification_.
Referenced by evf::FUEventProcessor::enabling(), evf::FUEventProcessor::forkProcessesFromEDM(), and evf::FUEventProcessor::supervisor().
void StateMachine::failed | ( | toolbox::Event::Reference | e | ) | |
throw | ( | toolbox::fsm::exception::Exception | |||
) |
Definition at line 184 of file StateMachine.cc.
References alignCSCRings::e, evf::FsmFailedEvent::errorMessage(), and vdt::fe.
Referenced by initialize().
void StateMachine::findRcmsStateListener | ( | ) |
Definition at line 218 of file StateMachine.cc.
References appInfoSpace_, and rcmsStateNotifier_.
Referenced by evf::BU::BU(), and evf::FUEventProcessor::FUEventProcessor().
void evf::StateMachine::fireEvent | ( | const std::string & | evtType, |
void * | originator | ||
) |
Referenced by evf::BU::configuring(), evf::FUEventProcessor::configuring(), evf::FUEventProcessor::enableCommon(), evf::BU::enabling(), evf::FUEventProcessor::enabling(), evf::FUEventProcessor::forkProcessesFromEDM(), evf::BU::halting(), evf::FUEventProcessor::halting(), evf::FUEventProcessor::receiving(), evf::FUEventProcessor::stopClassic(), evf::BU::stopping(), and evf::FUEventProcessor::supervisor().
void StateMachine::fireFailed | ( | const std::string & | errorMsg, |
void * | originator | ||
) |
Definition at line 210 of file StateMachine.cc.
References alignCSCRings::e, and fsm_.
Referenced by evf::BU::configuring(), evf::FUEventProcessor::configuring(), evf::FUEventProcessor::doEndRunInEDM(), evf::FUEventProcessor::enableCommon(), evf::FUEventProcessor::enableForkInEDM(), evf::FUEventProcessor::enableMPEPSlave(), evf::BU::enabling(), evf::FUEventProcessor::enabling(), evf::FUEventProcessor::forkProcessesFromEDM(), evf::BU::halting(), evf::FUEventProcessor::halting(), evf::FUEventProcessor::stopClassic(), and evf::BU::stopping().
|
inline |
Definition at line 78 of file StateMachine.h.
References rcmsStateNotifier_.
Referenced by evf::BU::exportParameters(), and evf::FUEventProcessor::FUEventProcessor().
|
inline |
Definition at line 84 of file StateMachine.h.
References appNameAndInstance_, asConfiguring_, asEnabling_, asHalting_, asStopping_, failed(), fsm_, stateChanged(), stateName_, workLoopConfiguring_, workLoopEnabling_, workLoopHalting_, and workLoopStopping_.
Referenced by evf::BU::BU(), and evf::FUEventProcessor::FUEventProcessor().
|
inline |
Definition at line 72 of file StateMachine.h.
References rcmsStateNotifier_.
Referenced by evf::BU::exportParameters(), and evf::FUEventProcessor::FUEventProcessor().
void StateMachine::stateChanged | ( | toolbox::fsm::FiniteStateMachine & | fsm | ) | |
throw | ( | toolbox::fsm::exception::Exception | |||
) |
Definition at line 126 of file StateMachine.cc.
References alignCSCRings::e, edm::hlt::Exception, and evf::utils::state.
Referenced by initialize().
|
inline |
Definition at line 69 of file StateMachine.h.
References stateName_.
Referenced by evf::FUEventProcessor::actionPerformed(), evf::BU::exportParameters(), evf::FUEventProcessor::forkProcessesFromEDM(), evf::FUEventProcessor::FUEventProcessor(), evf::WebGUI::htmlHeadline(), evf::FUEventProcessor::microState(), evf::FUEventProcessor::receivingAndMonitor(), evf::FUEventProcessor::sigmon(), evf::FUEventProcessor::spotlightWebPage(), evf::FUEventProcessor::summarize(), evf::FUEventProcessor::supervisor(), and evf::FUEventProcessor::updater().
|
private |
Definition at line 165 of file StateMachine.h.
Referenced by findRcmsStateListener().
|
private |
Definition at line 166 of file StateMachine.h.
Referenced by initialize(), and StateMachine().
|
private |
Definition at line 180 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 181 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 183 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 182 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 168 of file StateMachine.h.
Referenced by disableRcmsStateNotification().
|
private |
Definition at line 171 of file StateMachine.h.
Referenced by checkIfEnabled(), fireFailed(), and initialize().
|
private |
Definition at line 164 of file StateMachine.h.
|
private |
Definition at line 186 of file StateMachine.h.
Referenced by findRcmsStateListener(), foundRcmsStateListener(), and rcmsStateListener().
|
private |
Definition at line 167 of file StateMachine.h.
Referenced by initialize(), and stateName().
|
private |
Definition at line 174 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 175 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 177 of file StateMachine.h.
Referenced by initialize().
|
private |
Definition at line 176 of file StateMachine.h.
Referenced by initialize().