#include <StateMachine.h>
Public Member Functions | |
Operations const & | getCurrentState () const |
std::string | getCurrentStateName () const |
EventDistributor * | getEventDistributor () const |
FragmentStore * | getFragmentStore () const |
Notifier * | getNotifier () |
SharedResourcesPtr | getSharedResources () const |
void | setExternallyVisibleState (const std::string &) |
StateMachine (EventDistributor *ed, FragmentStore *fs, Notifier *n, SharedResourcesPtr sr) | |
void | unconsumed_event (bsc::event_base const &) |
void | updateHistory (const TransitionRecord &tr) |
Private Attributes | |
DiskWriter * | diskWriter_ |
EventDistributor * | eventDistributor_ |
FragmentStore * | fragmentStore_ |
Notifier * | notifier_ |
SharedResourcesPtr | sharedResources_ |
State machine class
Definition at line 127 of file StateMachine.h.
stor::StateMachine::StateMachine | ( | EventDistributor * | ed, |
FragmentStore * | fs, | ||
Notifier * | n, | ||
SharedResourcesPtr | sr | ||
) |
Definition at line 19 of file StateMachine.cc.
Operations const & stor::StateMachine::getCurrentState | ( | ) | const |
Definition at line 32 of file StateMachine.cc.
Referenced by getCurrentStateName().
std::string stor::StateMachine::getCurrentStateName | ( | ) | const |
Definition at line 37 of file StateMachine.cc.
References getCurrentState(), and stor::Operations::stateName().
Referenced by unconsumed_event().
|
inline |
Definition at line 143 of file StateMachine.h.
References eventDistributor_.
|
inline |
|
inline |
|
inline |
Definition at line 146 of file StateMachine.h.
References sharedResources_.
void stor::StateMachine::setExternallyVisibleState | ( | const std::string & | s | ) |
Definition at line 64 of file StateMachine.cc.
References sharedResources_.
void stor::StateMachine::unconsumed_event | ( | bsc::event_base const & | event | ) |
Definition at line 51 of file StateMachine.cc.
References dtNoiseDBValidation_cfg::cerr, event(), getCurrentStateName(), mergeVDriftHistosByStation::name, notifier_, and stor::Notifier::reportNewState().
void stor::StateMachine::updateHistory | ( | const TransitionRecord & | tr | ) |
Definition at line 42 of file StateMachine.cc.
References sharedResources_.
|
private |
Definition at line 154 of file StateMachine.h.
|
private |
Definition at line 155 of file StateMachine.h.
Referenced by getEventDistributor().
|
private |
Definition at line 156 of file StateMachine.h.
Referenced by getFragmentStore().
|
private |
Definition at line 157 of file StateMachine.h.
Referenced by getNotifier(), and unconsumed_event().
|
private |
Definition at line 158 of file StateMachine.h.
Referenced by getSharedResources(), setExternallyVisibleState(), and updateHistory().