-
Notifications
You must be signed in to change notification settings - Fork 3
Programming model
Every application should extend the Task class and implement the application by overriding Task's methods. \reffig{fig-flow} shows the default method flow for a task. Blow is an example application RollDice. The application simulates to roll a dice at each step. Each dice has \textit{nSide} sides, and there are \textit{nDice} dices. In total it conducts \textit{nDice} steps in each repeat of a task.

Fig 1. Default method flow and time points for a task. There are 6 default built-in time points for result collection: 1) \textit{beforeTask}: before the start of a task, 2) \textit{beforeRept}: before starting a repeated run of a task, 3) \textit{beforeStep}: before starting a step in a run, 4) \textit{afterStep}: after finishing a step in a run, 5) \textit{afterRept}: after finishing a repeated run of a task, 6) \textit{afterTask}: after finishing a task.