tasks.taskTemplate module

Author:Dominic
class tasks.taskTemplate.Task[source]

Bases: object

The 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
classmethod get_name()[source]

Returns the name of the class

params()[source]

Returns the parameters of the task as a dictionary

Returns:parameters – The parameters of the task
Return type:dict
proceed()[source]

Updates the task before the next trialstep

receiveAction(action)[source]

Receives the next action from the participant

Parameters:action (int or string) – The action taken by the model
returnTaskState()[source]

Returns all the relevant data for this task run

Returns:results – A dictionary containing the class parameters as well as the other useful data
Return type:dictionary
standardResultOutput()[source]
storeState()[source]

Stores the state of all the important variables so that they can be output later