org.problets.tutor.problemsequencer.integrated
Class LearnObjManager

java.lang.Object
  extended by org.problets.tutor.problemsequencer.integrated.LearnObjSpec
      extended by org.problets.tutor.problemsequencer.integrated.LearnObjManager

public class LearnObjManager
extends LearnObjSpec

Manages the information for one learning objective in the Integrated Problem Sequencer

Author:
Amruth Kumar

Field Summary
 
Fields inherited from class org.problets.tutor.problemsequencer.integrated.LearnObjSpec
PROFICIENCY_HEADER, TREATMENT_HEADER
 
Constructor Summary
LearnObjManager(java.lang.String inLearnObj, java.util.Vector specVector, java.util.Vector inTemplateList, java.util.Vector inStudentLearnObjs, Configuration defaultConfiguration, TreatmentRegimen defaultTreatmentRegimen)
          Given specifications in the form - Learning Objective: Proficiency: Pretest: Practice: Posttest: Extracts data and populates the class variables
 
Method Summary
 int getIndex()
           
 java.lang.String getLearningObjective()
          Returns the learning objective of this manager
 Template getNextTemplate()
          Assumes that client calls isSequenceDone() before getNextTemplate()
 int[] getProficiencyCriteria(int language)
          Returns the proficiency criteria for the given language
 int getRemainingProblems()
          Returns the minimum number of remaining problems to be solved.
 boolean isLanguageApplicable(int language)
          Returns true if this LearnObjManager is applicable to the specified language, i.e., has a proficiency criterion of minimum number of problems > 0
 boolean isSequenceDone()
          Assumes that client calls this method before getNextTemplate().
static void main(java.lang.String[] args)
           
 void print()
           
 java.util.Vector summarize()
          Returns a list of the templates dealt by this LearnObjManager
 boolean willGeneratePracticeProblem()
          Returns true if the next problem this LearnObjManager will generate is a practice problem, and false otherwise.
 
Methods inherited from class org.problets.tutor.problemsequencer.integrated.LearnObjSpec
getPosttestProblems, getPracticeProblems, getPretestProblems, getProblems
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LearnObjManager

public LearnObjManager(java.lang.String inLearnObj,
                       java.util.Vector specVector,
                       java.util.Vector inTemplateList,
                       java.util.Vector inStudentLearnObjs,
                       Configuration defaultConfiguration,
                       TreatmentRegimen defaultTreatmentRegimen)
Given specifications in the form - Learning Objective: Proficiency: Pretest: Practice: Posttest: Extracts data and populates the class variables

Method Detail

getLearningObjective

public java.lang.String getLearningObjective()
Returns the learning objective of this manager

Overrides:
getLearningObjective in class LearnObjSpec

isLanguageApplicable

public boolean isLanguageApplicable(int language)
Returns true if this LearnObjManager is applicable to the specified language, i.e., has a proficiency criterion of minimum number of problems > 0


getProficiencyCriteria

public int[] getProficiencyCriteria(int language)
Returns the proficiency criteria for the given language


getNextTemplate

public Template getNextTemplate()
Assumes that client calls isSequenceDone() before getNextTemplate()


getRemainingProblems

public int getRemainingProblems()
Returns the minimum number of remaining problems to be solved. If pretest is not done, returns the remaining number of pretest problems. If pretest is done and practice is not done, returns 2, an estimate. If practice is done and posttest is not done, but is called for, returns the remaining number of posttest problems


isSequenceDone

public boolean isSequenceDone()
Assumes that client calls this method before getNextTemplate(). This method will update the flags


willGeneratePracticeProblem

public boolean willGeneratePracticeProblem()
Returns true if the next problem this LearnObjManager will generate is a practice problem, and false otherwise. Needed to enforce that a LearnObjManager will not generate a post-test problem right after a practice problem, back to back


summarize

public java.util.Vector summarize()
Returns a list of the templates dealt by this LearnObjManager


getIndex

public int getIndex()

print

public void print()

main

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