Constructor
new ActivitySequenceJump(action, sqopt)
ActivitySequenceJump constructor
Name | Type | Attributes | Description |
---|---|---|---|
action | string | Must be one of the described actions. | |
sq | number | | <optional> | Can be the tag of the sequence element to jump to, or its |
Extends
Members
actNum :number
Activity number in the sequence list
- number
- Overrides
- Source
action :string
The current action.
Possible values are: JUMP
, STOP
, RETURN
and EXIT
.
- string
- Overrides
- Source
id :string
The JumpInfo identifier
- For regular jumps: 'forward', 'back'
- For conditional jumps: 'upper', 'lower'
- string
- Overrides
- Source
lowerJump :module:bags/ConditionalJumpInfo.ConditionalJumpInfo
Optional jump to be performed when the results (score or time) are below a specific threshold.
projectPath :string
Path of another JClic project to jump to
- string
- Source
sequence :string
Current sequence tag
- string
- Source
upperJump :module:bags/ConditionalJumpInfo.ConditionalJumpInfo
Optional jump to be performed when the results (score and time) are above a specific threshold.
Methods
getAttributes() → {object}
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
- The resulting object, with minimal attrributes
- Type:
- object
resolveJump(rating, time) → {module:bags/JumpInfo.JumpInfo}
Resolves what JumpInfo
must be taken, based on a done time and average rating obtained
in activities.
Name | Type | Description |
---|---|---|
rating | number | Average rating obtained by the user in the activities done during the |
time | number | Total time spend doing the activities. |
setAttributes(data)
Loads the jump settings from a data object
Name | Type | Description |
---|---|---|
data | object | The data object to parse |
setProperties($xml)
Loads the object settings from a specific JQuery XML element.
Name | Type | Description |
---|---|---|
$xml | external:jQuery | The XML element to parse |