Constructor
new SequenceReg(ase)
SequenceReg constructor
Name | Type | Description |
---|---|---|
ase | module:bags/ActivitySequenceElement. | The |
- Source
Members
activities :Array.<module:report/ActivityReg.ActivityReg>
Collection of all the ActivityReg
elements done during this sequence.
- Source
closed :boolean
Flag indicating if the sequence is closed or already available for more activities
- boolean
- Source
currentActivity :module:report/ActivityReg.ActivityReg
Registry linked to the Activity
that is currently running
- Source
description :string
Optional description given to the ActivitySequenceElement
- string
- Source
info :module:report/SequenceReg.SequenceRegInfo
Object with global information associated to this sequence
- Source
name :string
The tag
member of the associated ActivitySequenceElement
- string
- Source
totalTime :number
Total time spent on the activities of this sequence
- number
- Source
Methods
endActivity(score, numActions, solved)
This method should be called when the current activity finishes. Data about user's final results
on the activity will then be saved.
Name | Type | Description |
---|---|---|
score | number | The final score, usually in a 0-100 scale. |
numActions | number | The total number of actions done by the user to solve the activity |
solved | boolean |
|
- Source
endSequence()
This method should be called when the current working session finishes.
- Source
getData() → {object}
Builds a complex object with data about the results of the activities done in this sequence
- Source
- The sequence results
- Type:
- object
getInfo() → {module:report/SequenceReg.SequenceRegInfo}
Returns the info
element associated to this SequenceReg.
- Source
newAction(type, +, +, ok)
Reports a new action done by the user while playing the current activity
Name | Type | Description |
---|---|---|
type | string | Type of action ( |
+ | string | source - Description of the object on which the action is done. |
+ | string | dest - Description of the object that acts as a target of the action (used in pairings) |
ok | boolean |
|
- Source
newActivity(act)
This method should be invoked when the user starts a new activity
Name | Type | Description |
---|---|---|
act | module:Activity. | The |
- Source