RPFlankerActivity
Flanker Test.
- Inheritance
-
- Object
- Serializable
- RPStep
- RPActivityStep
- RPFlankerActivity
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPFlankerActivity.fromJson
RPFlankerActivity
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
lengthOfTest
getter/setter pair
Test duration in seconds. Default is 90 seconds.
numberOfCards
getter/setter pair
Number of cards to be presented. Default is 25.
Methods
calculateScore
The score is the number of mistakes made during the test. If the number of mistakes > 2, the test is failed and a score of 0 is returned. Otherwise, a score of 1 is returned.
calculateScoreFlanker
- dynamic result
Calculate scores - sum, mean congruent, mean incongruent
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.