Variable ska::pst::common::state_transitions

Variable Documentation

static std::map<std::pair<State, StateModelEvent>, State> ska::pst::common::state_transitions{{{Unknown, Initialise}, Idle}, {{Idle, ConfigureBeam}, BeamConfigured}, {{Idle, Terminate}, Unknown}, {{BeamConfigured, ConfigureScan}, ScanConfigured}, {{BeamConfigured, DeconfigureBeam}, Idle}, {{ScanConfigured, StartScan}, StartingScan}, {{ScanConfigured, DeconfigureScan}, BeamConfigured}, {{StartingScan, ScanStarted}, Scanning}, {{Scanning, StopScan}, StoppingScan}, {{StoppingScan, ScanStopped}, ScanConfigured}, {{RuntimeError, Reset}, Idle},}

Mapping of the valid transitions given a current state and event.

The transitions to RuntimeError as not modelled here but programmatically handled. If a state and event pair are not listed there than the event is not valid and there is no transition valid for that.