#include <TkStateMachine.h>
Public Types | |
enum | StatusType { ready = 1, calibrating = 2, updating = 3, stuck = 4 } |
Public Member Functions | |
bool | alreadyCalibrated () const |
bool | isCalibrating () const |
bool | isReady () const |
bool | isStuck () const |
bool | isUpdating () const |
void | setCalibrating () |
void | setReady () |
void | setStatus (StatusType in) |
void | setStuck () |
void | setUpdating () |
StatusType | status () const |
std::string | statusName () |
Public Attributes | |
StatusType | myStatus |
Implement a state machine. Each of the ApvAnalysis component can be
Definition at line 12 of file TkStateMachine.h.
Definition at line 15 of file TkStateMachine.h.
{ready=1,calibrating=2,updating=3,stuck=4};
bool TkStateMachine::alreadyCalibrated | ( | ) | const [inline] |
bool TkStateMachine::isCalibrating | ( | ) | const [inline] |
Definition at line 30 of file TkStateMachine.h.
References calibrating, and myStatus.
Referenced by TT6NoiseCalculator::updateNoise(), SimpleNoiseCalculator::updateNoise(), SimplePedestalCalculator::updatePedestal(), TT6PedestalCalculator::updatePedestal(), SimplePedestalCalculator::updateStatus(), TT6NoiseCalculator::updateStatus(), TT6PedestalCalculator::updateStatus(), and SimpleNoiseCalculator::updateStatus().
{return myStatus==calibrating;}
bool TkStateMachine::isReady | ( | ) | const [inline] |
bool TkStateMachine::isStuck | ( | ) | const [inline] |
bool TkStateMachine::isUpdating | ( | ) | const [inline] |
Definition at line 29 of file TkStateMachine.h.
References myStatus, and updating.
Referenced by TT6NoiseCalculator::updateNoise(), SimpleNoiseCalculator::updateNoise(), SimplePedestalCalculator::updatePedestal(), and TT6PedestalCalculator::updatePedestal().
void TkStateMachine::setCalibrating | ( | ) | [inline] |
Definition at line 22 of file TkStateMachine.h.
References calibrating, and myStatus.
Referenced by TT6NoiseCalculator::init(), TT6PedestalCalculator::init(), and SimplePedestalCalculator::init().
{myStatus = calibrating;}
void TkStateMachine::setReady | ( | ) | [inline] |
void TkStateMachine::setStatus | ( | StatusType | in | ) | [inline] |
Definition at line 25 of file TkStateMachine.h.
References recoMuon::in, and myStatus.
void TkStateMachine::setStuck | ( | ) | [inline] |
void TkStateMachine::setUpdating | ( | ) | [inline] |
Definition at line 21 of file TkStateMachine.h.
References myStatus, and updating.
Referenced by TT6NTPedestalCalculator::TT6NTPedestalCalculator(), SimplePedestalCalculator::updateStatus(), TT6NoiseCalculator::updateStatus(), TT6PedestalCalculator::updateStatus(), and SimpleNoiseCalculator::updateStatus().
StatusType TkStateMachine::status | ( | ) | const [inline] |
std::string TkStateMachine::statusName | ( | ) | [inline] |
Definition at line 33 of file TkStateMachine.h.
References calibrating, myStatus, ready, stuck, and updating.
Definition at line 44 of file TkStateMachine.h.
Referenced by alreadyCalibrated(), isCalibrating(), isReady(), isStuck(), isUpdating(), setCalibrating(), setReady(), setStatus(), setStuck(), setUpdating(), status(), and statusName().