ExternalRotationTask class

Defines the full External Rotation SROM test task sequence.

Combines all steps (ExternalRotationPreparationStep, ExternalRotationInstructionsStep, SromTestStep, SromResultStep) into a single test. Used to configure and execute a complete SROM external rotation session.

Inheritance
  • Object
  • Serializable
  • RPTask
  • RPOrderedTask
  • RPNavigableOrderedTask
  • ExternalRotationTask

Constructors

ExternalRotationTask.new({required String identifier, SromMeasure? measure})
Constructs the ExternalRotationTask and initializes all required steps and configurations. Sets up the SROM external rotation test sequence, sensor configuration, and probe.

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
getter/setter pairinherited
closeAfterFinished bool
If set to true the Task will close after the participant has finished the task. If it's set to false no navigation function is called.
getter/setter pairinherited
config SromConfig
The configuration for the SROM test (sensor, sampling rates, etc).
latefinal
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifier String
A unique identifier of the Task. This identifier connects the Task to its result (RPTaskResult) object.
getter/setter pairinherited
isConsentTask bool
Returns true if the task is a Consent Task. It is considered a Consent Task if it has an RPConsentReviewStep
no setterinherited
jsonType String
Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
no setterinherited
measure SromMeasure
The measure describing the SROM test (type, name, duration).
getter/setter pair
numberOfQuestionSteps int
The number of question steps in the task
no setterinherited
probe MobilityProbe
The probe used to collect sensor data during the test.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepNavigationRules Map<String, RPStepNavigationRule>
A dictionary of step identifier Strings and their corresponding navigation rule(RPStepNavigationRule).
getter/setter pairinherited
steps List<RPStep>
The list of RPSteps of the task
getter/setter pairinherited

Methods

getStepAfterStep(RPStep? step, RPTaskResult? result) → RPStep?
Returns the step after a specified step if there's any, taking the RPStepNavigationRules into consideration.
inherited
getStepBeforeStep(RPStep? step, RPTaskResult? result) → RPStep?
Returns the step that precedes the specified step, if there is one. If the specified step is null then it returns the last step.
inherited
getStepWithIdentifier(String identifier) → RPStep?
Returns the step that matches the specified identifier. Returns null if there is no step with the identifier.
inherited
getTitleForStep(RPStep step) String
Returns the title of a given step
inherited
Returns the navigation rule for the given step identifier
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNavigationRuleForTriggerStepIdentifier(String triggerStepIdentifier) → void
Removes the navigation rule from the given step using its identifier
inherited
setNavigationRuleForTriggerStepIdentifier(RPStepNavigationRule stepNavigationRule, String triggerStepIdentifier) → void
Adds a navigation rule to a step using its identifier.
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited