FACT++
1.0
|
|
protected |
Calling this function, a new (named) event is added to the state machine. Via a call to CreateEvent a new event is created with the given targetstate, name and format.
The allowed states are passed to the new event and a message is written to the output-stream.
name | The command name which should initiate the transition. The DimCommand will be constructed with the name given to the constructor and this name, e.g. "DRIVE/CHANGE_STATE_TO_NEW_STATE" |
states | A comma sepeareted list of ints, e.g. "1, 4, 5, 9" with states in which this new state transition is allowed and will be accepted. |
fmt | A format as defined by the dim system can be given for the command. However, it has no real meaning except that it is stored within the DimCommand object. However, the user must make sure that the data of received commands is properly extracted. No check is done. |
Definition at line 529 of file StateMachineImp.cc.
References EventImp::AddAllowedStates(), CreateEvent(), fListOfEvents, fMutexEvt, Time::GetAsStr(), EventImp::GetName(), and MessageImp::Out().
Referenced by AddEvent(), DataLogger::DataLogger(), FitsLoader::FitsLoader(), StateMachineDimControl::StateMachineDimControl(), and Wrapper().