org.problets.tutor.problemsequencer.integrated
Class TreatmentRegimen

java.lang.Object
  extended by org.problets.tutor.problemsequencer.integrated.TreatmentRegimen
All Implemented Interfaces:
java.lang.Cloneable

public class TreatmentRegimen
extends java.lang.Object
implements java.lang.Cloneable

Holds the pretest, practice and post-test treatments for one concept. This is a regimen because it contains 3 treatments.

Author:
Amruth Kumar

Constructor Summary
TreatmentRegimen(java.util.Vector inputVector)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String[] getPosttestTreatment()
          Returns the treatment options for posttest
 java.lang.String[] getPracticeTreatment()
          Returns the treatment options for practice
 java.lang.String[] getPretestTreatment()
          Returns the treatment options for pretest
static void main(java.lang.String[] args)
           
 void print()
          Prints the values of existent treatment options for pre, practice, post, along with the name of the treatment
 void setTreatmentOptions(java.util.Vector inputVector)
          Given a vector of strings of the form treatmentOption value1 [value2] [value3] sets value1 to be pretestTreatment, value2 as practice and value3 as postestTreatment for the treatmentOption.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreatmentRegimen

public TreatmentRegimen(java.util.Vector inputVector)
Method Detail

setTreatmentOptions

public void setTreatmentOptions(java.util.Vector inputVector)
Given a vector of strings of the form treatmentOption value1 [value2] [value3] sets value1 to be pretestTreatment, value2 as practice and value3 as postestTreatment for the treatmentOption. If value2 is omitted, value1 is used for practice and posttest also. If value3 is omitted, value 1 is used for posttest also.


clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getPretestTreatment

public final java.lang.String[] getPretestTreatment()
Returns the treatment options for pretest


getPracticeTreatment

public final java.lang.String[] getPracticeTreatment()
Returns the treatment options for practice


getPosttestTreatment

public final java.lang.String[] getPosttestTreatment()
Returns the treatment options for posttest


print

public void print()
Prints the values of existent treatment options for pre, practice, post, along with the name of the treatment


main

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