org.activemath.studentmodel2.data
Class ConceptAssessment

java.lang.Object
  extended by org.activemath.studentmodel2.data.ConceptAssessment

public class ConceptAssessment
extends Object

This class holds the mastery estimations for a specific concept and user. It uses the configured belief system to combine evidences and stores the resulting mastery values.


Field Summary
protected static Logger log
           
 
Constructor Summary
ConceptAssessment(String conceptId)
          Create a new ConceptAssessment for a specific concept
 
Method Summary
 boolean equals(Object obj)
           
 String getConceptId()
           
 Map<CognitiveProcess,Integer> getMap()
          Get the map of competencies and respective assessment values If a competency has not yet been evaluated set its assessment to -1
 int getMastery()
          return a value in [0..100] describing the degree of mastery of the wrapped concept.
 int getMastery(List<CognitiveProcess> cognitiveProcesses)
          Get the computed Mastery for a list of competencies using the weighted average and uses the user's default competency system
 Map<String,Double> getPlausibilitiesMap()
          Get a Map with competency -> plausibility associations.
 String toString()
           
 void updateValues(String userId, Collection<CognitiveProcess> cognitiveProcesses)
          recomputes the mastery assessment for the given competency dimension.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

ConceptAssessment

public ConceptAssessment(String conceptId)
Create a new ConceptAssessment for a specific concept

Method Detail

getMap

public Map<CognitiveProcess,Integer> getMap()
Get the map of competencies and respective assessment values If a competency has not yet been evaluated set its assessment to -1

Returns:
A map with key(string): competency and value(int): associated assessment

updateValues

public void updateValues(String userId,
                         Collection<CognitiveProcess> cognitiveProcesses)
recomputes the mastery assessment for the given competency dimension.

Parameters:
cognitiveProcesses - List of cognitive processes to compute the new mastery for.

getPlausibilitiesMap

public Map<String,Double> getPlausibilitiesMap()
Get a Map with competency -> plausibility associations. Only return those which have been estimated.

Returns:
A map with key: competencyId, value: Double in [0,1]

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getMastery

public int getMastery()
return a value in [0..100] describing the degree of mastery of the wrapped concept.

Returns:
The Mastery for the concept in [0..100], -1 is unknown

getMastery

public int getMastery(List<CognitiveProcess> cognitiveProcesses)
Get the computed Mastery for a list of competencies using the weighted average and uses the user's default competency system

Parameters:
cognitiveProcesses - - a List of cognitive processes to get the mastery for
Returns:
The mastery in [0,100]

getConceptId

public String getConceptId()
Returns:
The concept id this assessment is about