org.problets.tutor.problemsequencer
Class AutoProblemSequencer

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

public class AutoProblemSequencer
extends AbstractProblemSequencer

Problem sequencer to test the tutor - picks all the templates in the file for the topic - presents them in the order in which they appear in the template database

Author:
Amruth Kumar

Field Summary
 
Fields inherited from class org.problets.tutor.problemsequencer.AbstractProblemSequencer
PREDEFINED_FILE_EXT, PREDEFINED_FILE_INDEX, TEMPLATE_FILE
 
Constructor Summary
AutoProblemSequencer(java.lang.String inTopic, java.util.Vector conceptsVector, int nextTemplateNumber)
           
 
Method Summary
 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
static void main(java.lang.String[] args)
           
 
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

AutoProblemSequencer

public AutoProblemSequencer(java.lang.String inTopic,
                            java.util.Vector conceptsVector,
                            int nextTemplateNumber)
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

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

main

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