Constructor
new SessionRegInfo(sReg)
SessionRegInfo constructor
Parameters:
Name | Type | Description |
---|---|---|
sReg | module:report/SessionReg. | The |
- Source
Members
nActScore :number
Number of activities with score > 0
Type:
- number
- Source
nActSolved :number
Number of activities solved
Type:
- number
- Source
nActions :number
Number of actions done by the user while in this working session
Type:
- number
- Source
nActivities :number
Number of activities played
Type:
- number
- Source
numSequences :number
Number of sequences played
Type:
- number
- Source
ratioPlayed :number
Percentage of reportable activities played
Type:
- number
- Source
ratioSolved :number
Percentage of solved activities
Type:
- number
- Source
sReg :module:report/SessionReg.SessionReg
The SessionReg linked to this Info object
- Source
tScore :number
Sum of the scores of all the activities played
Type:
- number
- Source
tTime :number
Sum of the playing time reported by each activity (not always equals to the session's total time)
Type:
- number
- Source
valid :boolean
When false
, this session info needs to be recalculated
Type:
- boolean
- Source
Methods
clear()
Clears all data associated with this working session
- Source
recalc() → {module:report/SessionReg.SessionRegInfo}
Computes the value of all global variables based on the data stored in sequences
- Source
Returns:
- This "info" object