|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.studentmodel2.data.EvidenceCollector
public class EvidenceCollector
This class keeps a record of all evidences for a user. It also stores
references to EvidenceContainers for every competency of any
concept.
| Field Summary | |
|---|---|
protected static Logger |
log
Access to logging facility |
String |
version
for XStream |
| Constructor Summary | |
|---|---|
EvidenceCollector()
Default constructor(empty) |
|
| Method Summary | |
|---|---|
void |
addIndirectEvidence(Evidence ev,
String conceptId,
int depth)
Add an ExerciseResult to the evidences |
List<Evidence> |
addResult(ExerciseResult exResult,
String conceptId)
Add an ExerciseResult to the evidences |
void |
addResult(ExerciseResult exResult,
String conceptId,
CognitiveProcess cognitiveProcess)
Add an ExerciseResult to the evidences |
List<Evidence> |
addResult(ExerciseResult exResult,
String conceptId,
Collection<CognitiveProcess> cognitiveProcesses)
Add an ExerciseResult to the evidences |
void |
discardIndirectEvidence(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
Discard indirect evidence - not needed anymore for enough direct evidence is available |
Collection<Evidence> |
getAllEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
Get all direct and indirect evidences for a competency and concept. |
Collection<Evidence> |
getDirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
Get direct evidences for a competency and concept. |
Collection<Evidence> |
getDirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess,
boolean updateCognitiveProcesses)
Get direct evidences for a competency and concept. |
protected String |
getEvidenceContainerKey(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
Creates a key to access a particular EvidenceContainer |
HashMap<String,EvidenceContainer> |
getEvidenceContainers()
|
Collection<Evidence> |
getIndirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
Get indirect evidences for a competency and concept. |
Collection<Evidence> |
getRemainingIndirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess,
int directEvidenceCnt)
|
boolean |
hasEvidence(ExerciseResult r,
String conceptId,
CognitiveProcess cognitiveProcess)
Checks whether a specific exercise result has already been added for a given concept/competency |
boolean |
hasIndirectEvidence(ExerciseResult r,
String conceptId,
CognitiveProcess cognitiveProcess)
Checks if a specific exercise result has already been added as indirect evidence for a given concept/competency |
void |
setEvidenceContainers(HashMap<String,EvidenceContainer> evidenceContainers)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
public String version
| Constructor Detail |
|---|
public EvidenceCollector()
| Method Detail |
|---|
public HashMap<String,EvidenceContainer> getEvidenceContainers()
public void setEvidenceContainers(HashMap<String,EvidenceContainer> evidenceContainers)
evidenceContainers - the evidenceContainers to set
public List<Evidence> addResult(ExerciseResult exResult,
String conceptId,
Collection<CognitiveProcess> cognitiveProcesses)
exResult - -
the result of the exerciseconceptId - -
the mbaseId of the concept this result is forcognitiveProcesses - - A set of cognitive processes for which the evidences
are to be added
public void addResult(ExerciseResult exResult,
String conceptId,
CognitiveProcess cognitiveProcess)
exResult - -
the result of the exerciseconceptId - -
the mbaseId of the concept this result is forcogProcessId - -
the cognitive process of the competency to be updated
public List<Evidence> addResult(ExerciseResult exResult,
String conceptId)
exResult - -
the result of the exerciseconceptId - -
the mbaseId of the concept this result is for
public Collection<Evidence> getAllEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
conceptId - -
the mbaseId of the conceptcognitiveProcess - -
a cognitive processuserId - -
the user to get the evidences for
public Collection<Evidence> getRemainingIndirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess,
int directEvidenceCnt)
protected String getEvidenceContainerKey(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
EvidenceContainer
userId - - Id of the userconceptId - - Id of a conceptcognitiveProcess - - a cognitive process
EvidenceContainer
is stored
public Collection<Evidence> getIndirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
conceptId - -
the mbaseId of the conceptcognitiveProcess - -
the cognitive processuserId - -
the user to get the evidences for
public Collection<Evidence> getDirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
conceptId - -
the mbaseId of the conceptcognitiveProcess - -
the competencyuserId - -
the user to get the evidences for
public Collection<Evidence> getDirectEvidences(String userId,
String conceptId,
CognitiveProcess cognitiveProcess,
boolean updateCognitiveProcesses)
conceptId - -
the mbaseId of the conceptcognitiveProcess - -
the competencyuserId - -
the user to get the evidences forupdateCognitiveProcesses - If true, then the cognitive processes of the
returned evidences are checked and eventually corrected
public boolean hasEvidence(ExerciseResult r,
String conceptId,
CognitiveProcess cognitiveProcess)
r - -
the exercise result to check (it contains the eventId)conceptId - -
the concept to checkcognitiveProcess - -
the competency to check
public boolean hasIndirectEvidence(ExerciseResult r,
String conceptId,
CognitiveProcess cognitiveProcess)
r - -
the exercise result to check (it contains the eventId)conceptId - -
the concept to checkcognitiveProcess - -
the competency to check
public void addIndirectEvidence(Evidence ev,
String conceptId,
int depth)
ev - -
a reference to a direct evidenceconceptId - - the concept ev is an evidence fordepth - -
the distance of the propagation (0, direct; <0 down
propagation; >0 up propagation)
public void discardIndirectEvidence(String userId,
String conceptId,
CognitiveProcess cognitiveProcess)
userId - - the userIdconceptId - - conceptIdcognitiveProcess - - cognitive process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||