FACT++
1.0
|
|
protectedvirtual |
This is an internal function to do some action in case of a state change, like updating the corresponding service.
This function is a helpter function to do all the corresponding action if the state machine decides to change its state.
If state is equal to the current state (fCurrentState) nothing is done. Then the service STATE (fSrcState) is updated with the new state and the text message and updateService() is called to distribute the update to all clients.
In addition a log message is created and set via UpdateMsg.
state | The new state which should be applied |
txt | A text corresponding to the state change which is distributed together with the state itself for convinience. |
cmd | This argument can be used to give an additional name of the function which is reponsible for the state change. It will be included in the message |
Reimplemented in StateMachineDim.
Definition at line 772 of file StateMachineImp.cc.
References fCurrentState, Time::GetAsStr(), GetStateDescription(), MessageImp::Message(), MessageImp::Out(), and str.
Referenced by HandleNewState(), Run(), StateMachineDim::SetCurrentState(), SetNotReady(), SetReady(), and Wrapper().