org.problets.tutor.reflection
Class Reflection

java.lang.Object
  extended by org.problets.tutor.reflection.Reflection

public class Reflection
extends java.lang.Object

For a given problem, generates a multiple-choice question of learning objectives and asks the user to select the most appropriate learning objective. Reports whether the student's answer is correct or wrong, may be repeatedly asks for the answer till the user gets it right, and reports the proceedings to the server

Author:
Amruth Kumar

Constructor Summary
Reflection(KnowledgeModel inCorrectKM)
           
 
Method Summary
 java.util.Vector getChoices(java.lang.String antecedentString)
          1.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reflection

public Reflection(KnowledgeModel inCorrectKM)
Method Detail

getChoices

public java.util.Vector getChoices(java.lang.String antecedentString)
1. Breaks up problemLearningObjective into disjuncts 2. Randomly chooses one of these disjuncts as correct answer 3. Makes a temporary copy of allLearningObjectives 4. Deletes all but the learning objective selected in 2 from the list in 3. 5. Pick n - 1 distractor learning objectives randomly from the list in 4, if possible 6. Make a list of learning objective in 2 as first element and n - 1 elements from 5 7. For the list in 6, get explanations and return their vector. Note: Client should randomize the list before displaying and bear in mind that the most appropriate answer is the first element of the list.


main

public static void main(java.lang.String[] args)