report/SessionReg. SessionRegInfo

This object stores the global results of a SessionReg

Constructor

new SessionRegInfo(sReg)

SessionRegInfo constructor

Parameters:
NameTypeDescription
sRegmodule:report/SessionReg.SessionReg

The SessionReg associated tho this Info object.

Members

nActScore :number

Number of activities with score > 0

Type:
  • number

nActSolved :number

Number of activities solved

Type:
  • number

nActions :number

Number of actions done by the user while in this working session

Type:
  • number

nActivities :number

Number of activities played

Type:
  • number

numSequences :number

Number of sequences played

Type:
  • number

ratioPlayed :number

Percentage of reportable activities played

Type:
  • number

ratioSolved :number

Percentage of solved activities

Type:
  • number

sReg :module:report/SessionReg.SessionReg

The SessionReg linked to this Info object

tScore :number

Sum of the scores of all the activities played

Type:
  • number

tTime :number

Sum of the playing time reported by each activity (not always equals to the session's total time)

Type:
  • number

valid :boolean

When false, this session info needs to be recalculated

Type:
  • boolean

Methods

clear()

Clears all data associated with this working session

recalc() → {module:report/SessionReg.SessionRegInfo}

Computes the value of all global variables based on the data stored in sequences

Returns:
  • This "info" object
Type: 
module:report/SessionReg.SessionRegInfo