|
@@ -31,8 +31,7 @@ class StatemachineInterface implements IContentTemplate {
|
|
|
#ifndef «statemachineInterface.define»_H_
|
|
|
#define «statemachineInterface.define»_H_
|
|
|
|
|
|
- /*
|
|
|
- * Basic interface for state machines.
|
|
|
+ /*! \file Basic interface for state machines.
|
|
|
*/
|
|
|
class «statemachineInterface»
|
|
|
{
|
|
@@ -40,35 +39,29 @@ class StatemachineInterface implements IContentTemplate {
|
|
|
|
|
|
virtual ~«statemachineInterface»() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Initializes the state machine. Used to initialize internal variables etc.
|
|
|
+ /*! Initializes the state machine. Used to initialize internal variables etc.
|
|
|
*/
|
|
|
virtual void init() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Enters the state machine. Sets the state machine into a defined state.
|
|
|
+ /*! Enters the state machine. Sets the state machine into a defined state.
|
|
|
*/
|
|
|
virtual void enter() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Exits the state machine. Leaves the state machine with a defined state.
|
|
|
+ /*! Exits the state machine. Leaves the state machine with a defined state.
|
|
|
*/
|
|
|
virtual void exit() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Start a run-to-completion cycle.
|
|
|
+ /*! Start a run-to-completion cycle.
|
|
|
*/
|
|
|
virtual void runCycle() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Checks whether the state machine is active.
|
|
|
- * A state machine is active if it has been entered. It is inactive if it has not been entered at all or if it has been exited.
|
|
|
+ /*! Checks whether the state machine is active.
|
|
|
+ A state machine is active if it has been entered. It is inactive if it has not been entered at all or if it has been exited.
|
|
|
*/
|
|
|
virtual sc_boolean isActive() = 0;
|
|
|
|
|
|
- /*
|
|
|
- * Checks if all active states are final.
|
|
|
- * If there are no active states then the state machine is considered being inactive. In this case this method returns false.
|
|
|
+ /*! Checks if all active states are final.
|
|
|
+ If there are no active states then the state machine is considered being inactive. In this case this method returns false.
|
|
|
*/
|
|
|
virtual sc_boolean isFinal() = 0;
|
|
|
};
|