org.problets.tutor.problemsequencer
Class PredefinedProblemSequencer

java.lang.Object
  extended by org.problets.tutor.problemsequencer.AbstractProblemSequencer
      extended by org.problets.tutor.problemsequencer.PredefinedProblemSequencer

public class PredefinedProblemSequencer
extends AbstractProblemSequencer

Problem sequencer to test the student - picks and presents the problems in the order specified by instructor

Author:
Amruth Kumar

Field Summary
 
Fields inherited from class org.problets.tutor.problemsequencer.AbstractProblemSequencer
PREDEFINED_FILE_EXT, PREDEFINED_FILE_INDEX, TEMPLATE_FILE
 
Constructor Summary
PredefinedProblemSequencer(java.lang.String inTopic, java.util.Vector conceptsVector, java.lang.String inPredefinedFile)
          Warning: conceptsVector limits the templates that are loaded to the concepts listed.
 
Method Summary
 java.util.Vector getLearningObjectives()
          Returns the learning objectives in the antecedents of all the problems in this test, and for each learning objective, the template numbers of the problems that have the learning objective in their antecedent.
 Template getNextTemplate()
          Returns the next template.
 java.lang.String getStatus()
          Returns the number of problems that remain to be solved
 boolean isSequenceDone()
          // Returns true if all the templates have been generated at least once Returns false, since the templates are generated in wrap-around fashion
static void main(java.lang.String[] args)
           
 void resetWrapAround()
           
 void setWrapAround()
           
 
Methods inherited from class org.problets.tutor.problemsequencer.AbstractProblemSequencer
getProblemSequencer, loadTemplates, loadTemplates, preProcess
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredefinedProblemSequencer

public PredefinedProblemSequencer(java.lang.String inTopic,
                                  java.util.Vector conceptsVector,
                                  java.lang.String inPredefinedFile)
Warning: conceptsVector limits the templates that are loaded to the concepts listed. If PredefinedFile contains template numbers for concepts not in the conceptsVector, those templates will not be loaded and will not be used during the predefined problem sequence. To avoid this, send null as conceptsVector.

Method Detail

getNextTemplate

public Template getNextTemplate()
Returns the next template. Starts over from the beginning if there are no more templates.

Specified by:
getNextTemplate in class AbstractProblemSequencer

isSequenceDone

public boolean isSequenceDone()
// Returns true if all the templates have been generated at least once Returns false, since the templates are generated in wrap-around fashion

Specified by:
isSequenceDone in class AbstractProblemSequencer

getStatus

public java.lang.String getStatus()
Returns the number of problems that remain to be solved

Specified by:
getStatus in class AbstractProblemSequencer

getLearningObjectives

public java.util.Vector getLearningObjectives()
Returns the learning objectives in the antecedents of all the problems in this test, and for each learning objective, the template numbers of the problems that have the learning objective in their antecedent.


setWrapAround

public void setWrapAround()

resetWrapAround

public void resetWrapAround()

main

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