Skip to content

RPContinuousVisualTrackingActivity

A Multiple Object Tracking Test

Inheritance
Annotations

Constructors

RPContinuousVisualTrackingActivity.fromJson

RPContinuousVisualTrackingActivity.fromJson(
  1. Map<String, dynamic> json
)

RPContinuousVisualTrackingActivity

RPContinuousVisualTrackingActivity({
  1. required String identifier,
  2. bool includeInstructions = true,
  3. bool includeResults = true,
  4. int lengthOfTest = 90,
  5. int numberOfTests = 3,
  6. int amountOfDots = 5,
  7. int amountOfTargets = 2,
  8. int dotSize = 100,
  9. Duration trackingSpeed = const Duration(seconds: 5),
})

Properties

amountOfDots

int amountOfDots
getter/setter pair

Amount of dots to be displayed. Default is 5.

amountOfTargets

int amountOfTargets
getter/setter pair

Amount of targets to be displayed. Default is 2.

dotSize

int dotSize
getter/setter pair

Size of the dots in pixels. Default is 100.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

lengthOfTest

int lengthOfTest
getter/setter pair

Test duration in seconds. Default is 90 seconds.

numberOfTests

int numberOfTests
getter/setter pair

Amount of test repetitions. Default is 3.

trackingSpeed

Duration trackingSpeed
getter/setter pair

The speed of the dots in seconds. Default is 5 seconds per move.

Methods

calculateScore

int calculateScore(
  1. dynamic result
)
override

The result of this activity is a list of mistakes for each test repetition. The list is empty if no mistakes were made. For every repetition with 0 mistakes a score of 1 is added. The final score is the sum of repetitions with 0 mistakes.

stepBody

Widget stepBody(
  1. dynamic onResultChange(
    1. dynamic
    ),
  2. 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

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.