org.problets.domain.template
Class TemplateWithContext

java.lang.Object
  extended by org.problets.domain.template.Template
      extended by org.problets.domain.template.TemplateWithContext
All Implemented Interfaces:
java.lang.Cloneable

public class TemplateWithContext
extends Template

Enhances a Template object with context - pre/prac/post-test, type of feedback, etc.

Author:
Amruth Kumar

Field Summary
static int POSTTEST
           
static int PRACTICE
           
static int PRETEST
           
 
Constructor Summary
TemplateWithContext(Template reference, int inStageType, Configuration inConfiguration, java.lang.String inLearnObj)
           
 
Method Summary
 java.lang.String getSpecificLearnObj()
          Returns the specific learning objective for which this template was chosen
 java.lang.String getStageType()
          Returns the stage name as a string
 java.lang.String getStatus()
           
 boolean isStageType(int inStageType)
          Confirm whether this template is for a particular stage type
static void main(java.lang.String[] args)
           
 void print()
           
 void setConfiguration(Configuration newConfiguration)
           
 
Methods inherited from class org.problets.domain.template.Template
clone, getAntecedent, getCompleteTemplate, getConjuncts, getDisjuncts, getHardness, getIfCorrect, getIfWrong, getInstructions, getProblemType, getTemplate, getTemplateNumber, match, matchConjuncts, matchDisjuncts, setInstructions, setTemplate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRETEST

public static final int PRETEST
See Also:
Constant Field Values

PRACTICE

public static final int PRACTICE
See Also:
Constant Field Values

POSTTEST

public static final int POSTTEST
See Also:
Constant Field Values
Constructor Detail

TemplateWithContext

public TemplateWithContext(Template reference,
                           int inStageType,
                           Configuration inConfiguration,
                           java.lang.String inLearnObj)
Method Detail

getStageType

public java.lang.String getStageType()
Returns the stage name as a string


isStageType

public boolean isStageType(int inStageType)
Confirm whether this template is for a particular stage type


getSpecificLearnObj

public java.lang.String getSpecificLearnObj()
Returns the specific learning objective for which this template was chosen


setConfiguration

public void setConfiguration(Configuration newConfiguration)

print

public void print()
Overrides:
print in class Template

getStatus

public java.lang.String getStatus()

main

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