Constructor
new ReporterInfo(rep)
ReporterInfo constructor
Name | Type | Description |
---|---|---|
rep | module:report/Reporter. | The |
- Source
Members
globalScore :number
Final score based on the percent of reportable activities played. If the user plays all the
activities, this result equals to partialScore
.
- number
- Source
nActPlayed :number
Number of different activities played
- number
- Source
nActScore :number
Global score obtained in all sessions registered by this reporter
- number
- Source
nActSolved :number
Number of activities solved
- number
- Source
nActions :number
Number of actions done by the user while in this working session
- number
- Source
nActivities :number
Number of activities played
- number
- Source
numSequences :number
Number of sequences played
- number
- Source
numSessions :number
Number of sessions registered
- number
- Source
partialScore :number
Global score obtained
- number
- Source
ratioPlayed :number
Percentage of reportable activities played
- number
- Source
ratioSolved :number
Percentage of solved activities
- number
- Source
rep :module:report/Reporter.Reporter
The Reporter linked to this Info object
- Source
reportableActs :number
Number of activities in existing in the played projects suitable to be reported
- number
- Source
tScore :number
Sum of the scores of all the activities played
- number
- Source
tTime :number
Sum of the playing time reported by each activity (not always equals to the sum of all session's time)
- number
- Source
valid :boolean
When false
, data must be recalculated
- boolean
- Source
Methods
clear()
Clears all data associated with this ReporterInfo
- Source
recalc() → {module:report/Reporter.ReporterInfo}
Computes the value of all global variables based on the data stored in sessions
- Source
- This "info" object