Components/Libraries/XF/FreeRTOS/IStateMachine

From UIT
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{TOC right}} = IStateMachine = This is an interface that defines all basic methods of a state machine")
 
(Member Attributes)
 
(9 intermediate revisions by one user not shown)
Line 2: Line 2:
 
= IStateMachine =
 
= IStateMachine =
 
This is an interface that defines all basic methods of a state machine
 
This is an interface that defines all basic methods of a state machine
 +
 +
= Member Attributes =
 +
string '''_name''' : the name of the stat machine
 +
 +
= Member Functions Documentation =
 +
== IStateMachine(string oName) ==
 +
=== Description ===
 +
The constructor of the IStateMachine
 +
=== Parameters ===
 +
string '''oName''' : the name of the state machine
 +
 +
== ~IStateMachine() [virtual] ==
 +
=== Description ===
 +
The destructor of the IStateMachine.
 +
 +
== void setName(string oNewName) ==
 +
=== Description ===
 +
Set the name of the state machine
 +
=== Parameters ===
 +
string '''oNewName''' : the new name of the state machine
 +
 +
== string getName() ==
 +
=== Description ===
 +
Returns the name of the state machine.
 +
 +
== void startProcessing() [pure virtual] ==
 +
=== Description ===
 +
Starts the state machine. This method must be implemented in subclass
 +
 +
== pushEvent(Event* opEv) [pusr virtual] ==
 +
=== Description ===
 +
Sends an event to start an other state. This method must be implemented in subclass
 +
=== Parameters ===
 +
Event* '''opEv''' : a pointer to the event to push
 +
 +
== eEventStatus process(Event* opEv) [pure virtual] ==
 +
=== Description ===
 +
Process an event (execute the code of the new state). This method must be implemented in subclass
 +
=== Parameters ===
 +
Event* '''opEv''' : a pointer to the event to process
 +
 +
== void cancelEvent(Event* opEv) [pure virtual] ==
 +
=== Description ===
 +
Cancel an event that has been sent. This method must be implemented in subclass of this class
 +
=== Parameters ===
 +
Event* '''opEv''' : a pointer on the event to cancel

Latest revision as of 13:43, 21 August 2017

Contents

IStateMachine

This is an interface that defines all basic methods of a state machine

Member Attributes

string _name : the name of the stat machine

Member Functions Documentation

IStateMachine(string oName)

Description

The constructor of the IStateMachine

Parameters

string oName : the name of the state machine

~IStateMachine() [virtual]

Description

The destructor of the IStateMachine.

void setName(string oNewName)

Description

Set the name of the state machine

Parameters

string oNewName : the new name of the state machine

string getName()

Description

Returns the name of the state machine.

void startProcessing() [pure virtual]

Description

Starts the state machine. This method must be implemented in subclass

pushEvent(Event* opEv) [pusr virtual]

Description

Sends an event to start an other state. This method must be implemented in subclass

Parameters

Event* opEv : a pointer to the event to push

eEventStatus process(Event* opEv) [pure virtual]

Description

Process an event (execute the code of the new state). This method must be implemented in subclass

Parameters

Event* opEv : a pointer to the event to process

void cancelEvent(Event* opEv) [pure virtual]

Description

Cancel an event that has been sent. This method must be implemented in subclass of this class

Parameters

Event* opEv : a pointer on the event to cancel

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox