org.problets.tutor.problemsequencer
Class AutoProblemSequencer
java.lang.Object
org.problets.tutor.problemsequencer.AbstractProblemSequencer
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoProblemSequencer
public AutoProblemSequencer(java.lang.String inTopic,
java.util.Vector conceptsVector,
int nextTemplateNumber)
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)