Module Process

Global(s)

PROCESS

Type PROCESS

PROCESS:AddScore(ProcessStatus, ScoreText, Score)

Adds a score for the PROCESS to be achieved.

PROCESS.AllowEvents
PROCESS.ClassName
PROCESS.Fsm
PROCESS:New(ProcessName, Task, ProcessUnit)

Instantiates a new TASK Base.

PROCESS.NextEvent
PROCESS:OnStateChange(Fsm, Event, From, To)

StateMachine callback function for a PROCESS

PROCESS.ProcessName
PROCESS.ProcessScheduler
PROCESS.ProcessUnit
PROCESS.Scores
PROCESS:StopEvents()
PROCESS.Task

Global(s)

#PROCESS PROCESS

Type Process

Type PROCESS

The PROCESS class

Field(s)

PROCESS:AddScore(ProcessStatus, ScoreText, Score)

Adds a score for the PROCESS to be achieved.

Parameters

  • #string ProcessStatus : is the status of the PROCESS when the score needs to be given.

  • #string ScoreText : is a text describing the score that is given according the status.

  • #number Score : is a number providing the score of the status.

Return value

#PROCESS: self

#boolean PROCESS.AllowEvents
#string PROCESS.ClassName
StateMachine#STATEMACHINE_TASK PROCESS.Fsm
PROCESS:New(ProcessName, Task, ProcessUnit)

Instantiates a new TASK Base.

Should never be used. Interface Class.

Parameters

Return value

#PROCESS: self

PROCESS.NextEvent
PROCESS:OnStateChange(Fsm, Event, From, To)

StateMachine callback function for a PROCESS

Parameters

#string PROCESS.ProcessName
Scheduler#SCHEDULER PROCESS.ProcessScheduler
Unit#UNIT PROCESS.ProcessUnit
PROCESS.Scores
PROCESS:StopEvents()
Task#TASK PROCESS.Task