tasks.taskTemplate module¶
| Author: | Dominic |
|---|
-
class
tasks.taskTemplate.Task[source]¶ Bases:
objectThe abstract tasks class from which all others inherit
Many general methods for tasks are found only here
-
Name¶ The name of the class used when recording what has been used.
Type: string
-
feedback()[source]¶ Responds to the action from the participant
Returns: feedback Return type: None, int or float
-
params()[source]¶ Returns the parameters of the task as a dictionary
Returns: parameters – The parameters of the task Return type: dict
-
receiveAction(action)[source]¶ Receives the next action from the participant
Parameters: action (int or string) – The action taken by the model
-