RPReactionTimeActivity
Reaction Time Test.
- Inheritance
-
- Object
- Serializable
- RPStep
- RPActivityStep
- RPReactionTimeActivity
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPReactionTimeActivity.fromJson
RPReactionTimeActivity
Contructor for creating a Reaction time Test.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
lengthOfTest
getter/setter pair
The duration of the test. Default is 30 seconds.
switchInterval
getter/setter pair
Max seconds until light switch-1. Writing 4 means at most 5 seconds. Default is 4.
Methods
stepBody
- dynamic onResultChange(
- dynamic
- RPActivityEventLogger eventLogger
override
Initiates the UI component for an ActivityStep.
All classes extending an activity step should override this with their own UI components.
toJson
Return a JSON encoding of this object.