Definition at line 762 of file ratecontrol.cc.
References Calibrate(), CalibrateByCurrent(), CalibrateRun(), HandleCalibratedCurrents(), HandleStaticData(), HandleTriggerRates(), RateControl::State::kConnected, RateControl::State::kDimNetworkNA, RateControl::State::kDisconnected, RateControl::State::kGlobalThresholdSet, RateControl::State::kInProgress, RateControl::State::kSettingGlobalThreshold, Print(), SetMinThreshold(), SetTargetRate(), SetVerbosity(), StopRC(), DimState::Subscribe(), and DimDescribedState::Subscribe().
769 "Resulting threshold after calibration" 770 "|threshold[dac]:Resulting threshold from calibration" 771 "|begin[mjd]:Start time of calibration" 772 "|end[mjd]:End time of calibration")
791 Subscribe(
"FEEDBACK/CALIBRATED_CURRENTS")
796 "The Dim DNS is not reachable.");
799 "The Dim DNS is reachable, but the required subsystems are not available.");
802 "All needed subsystems are connected to their hardware, no action is performed.");
805 "A global minimum threshold is currently determined.");
808 "A global threshold has ben set, waiting for the trigger to be switched on.");
811 "Rate control in progress.");
815 (
"Start a search for a reasonable minimum global threshold");
819 (
"Set the global threshold from the median current");
823 (
"Start a threshold calibration as defined in the setup for this run-type, state change to InProgress is delayed until trigger enabled");
827 (
"Stop a calibration or ratescan in progress");
829 AddEvent(
"SET_MIN_THRESHOLD",
"I:1")
831 (
"Set a minimum threshold at which th rate control starts calibrating");
835 (
"Set a target trigger rate for the calibration");
839 (
"Print current status");
843 (
"set verbosity state" 844 "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
int CalibrateRun(const EventImp &evt)
EventImp & AddEvent(const std::string &name, const std::string &states, const std::string &fmt)
int SetMinThreshold(const EventImp &evt)
virtual void Subscribe(StateMachineImp &imp)
int HandleStaticData(const EventImp &evt)
int HandleTriggerRates(const EventImp &evt)
StateMachineDim(std::ostream &out=std::cout, const std::string &name="DEFAULT")
int HandleCalibratedCurrents(const EventImp &evt)
int SetVerbosity(const EventImp &evt)
int SetTargetRate(const EventImp &evt)
DimDescribedState fDimDrive
DimDescribedService fDimThreshold
DimDescribedState fDimFTM
virtual void Subscribe(StateMachineImp &imp)
EventImp & Subscribe(const std::string &name)
DimDescribedState fDimLid
bool AddStateName(const int state, const std::string &name, const std::string &doc="")