Skip to content

PlayerState

Samuel Gomes edited this page Jul 12, 2024 · 9 revisions

PlayerState

This class represents the learning state of a subject. It couples data stored in PlayerCharacteristics to other dynamic adaptation variables, such as the current incentivized profile.

Constructor and Members

Constructor

PlayerState(state_type: int = 1, 
              profile: InteractionsProfile = InteractionsProfile(), 
              characteristics: PlayerCharacteristics = PlayerCharacteristics(), 
              dist: decimal = -1.0, 
              quality: decimal = -1.0,
              group: int[] = [],
              tasks: int[] = []): void

Members

Name: expected type Default value Description
(auto) creationTime: Time current time The time when the instance was created.
type: int* 1 Informs if this state corresponds to a simulated state or a real state.
profile: InteractionsProfile InteractionsProfile() The InteractionsProfile that was being promoted in the creation of this instance.
characteristics: PlayerCharacteristics PlayerCharacteristics() The characteristics of the player at the time that this instance was created.
(auxiliary) dist: decimal -1.0 Used to store the distance between other profiled PlayerState.
(auxiliary) quality: decimal -1.0 Used to store the quality of the state as measured by a QualityEvalAlg.
(auxiliary) group: int[] [] Used to store the learner's group at creation time.
(auxiliary) tasks: int[] [] Used to store the learner's assigned tasks at creation time.

*Although stateType is an integer and can be extended to include other categories, it is treated as a boolean with the values {0:Simulated, 1:Real}.

Functions

reset(): PlayerState

Description

It sets all attributes to their default values and then returns the updated caller instance.

Clone this wiki locally