talx x1.0.5

util
Class Task

java.lang.Object
  extended byutil.Task
All Implemented Interfaces:
SkillLatticeConstants

public class Task
extends java.lang.Object
implements SkillLatticeConstants

This object represents a Task object in Training. Tasks are read in from xml files, and contain neccessary information for training that task.


Field Summary
 
Fields inherited from interface util.SkillLatticeConstants
ALIAS_ELEMENT, ALIAS_ID_ATTR, ALIAS_SKILL_ATTR, CONSTRAINT_ELEMENT, CONSTRAINT_FINAL_TOKEN, CONSTRAINT_NAME_ATTR, CONSTRAINT_ONGOING_TOKEN, CONSTRAINT_PARAM_ATTR, CONSTRAINT_STARTUP_TOKEN, CONSTRAINT_TYPE_ATTR, DESCRIPTION_ELEMENT, DRILL__RIGHT_PTR_ATTR, DRILL_CRITERIA_ATTR, DRILL_ELEMENT, DRILL_LIMIT_ATTR, DRILL_LIMIT_PTR_ATTR, DRILL_MAX_RETRIES_ATTR, DRILL_SKIPPABLE_ATTR, DRILL_WRONG_PTR_ATTR, MASTERY_CORRECT_TOKEN, MASTERY_INCORRECT_TOKEN, MASTERY_INITIAL_TOKEN, MASTERY_ONCE_TOKEN, MASTERY_OUTOF_REGEX, MASTERY_OUTOF_TOKEN, MASTERY_SEPARATOR_TOKEN, PAUSE_ELEMENT, PAUSE_LEVEL_ATTR, PAUSE_NEXT_PTR_ATTR, ROOT_ELEMENT, SKILL_BASE_DRILL_ATTR, SKILL_ELEMENT, SKILL_ID_ATTR, SKILL_PREREQUISITE_ATTR, SKILL_REFRESH_CRITERIA_ATTR, SKILL_REVIEW_CRITERIA_ATTR, STATUS_ATTEMPTED_TOKEN, STATUS_DATE_FORMAT, STATUS_IRRELEVANT_TOKEN, STATUS_LIMIT_COUNT_FORMAT, STATUS_MASTERED_TOKEN, STATUS_NEVER_ATTEMPTED_TOKEN, STATUS_REVIEWED_FAILED_TOKEN, STATUS_REVIEWED_PASSED_TOKEN, TASK_COMPONENT_ATTR, TASK_ELEMENT, TASK_TYPE_ATTR
 
Constructor Summary
Task(java.lang.String[] types, java.lang.String component)
           
 
Method Summary
 void addConstraint(ShallowConstraint constraint)
           
 java.lang.String getComponent()
           
 Constraint[] getConstraints(TaskProperties tp)
          Returns the initialized constraints for this task.
 java.lang.String[] getTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task(java.lang.String[] types,
            java.lang.String component)
Method Detail

addConstraint

public void addConstraint(ShallowConstraint constraint)

getTypes

public java.lang.String[] getTypes()

getComponent

public java.lang.String getComponent()

getConstraints

public Constraint[] getConstraints(TaskProperties tp)
Returns the initialized constraints for this task. Before returning this method calls setValue on all the constraints, with the given TaskProperties.

Returns:
the constraints for this task.
Throws:
java.lang.NullPointerException - if one of the constraints could not be created for some reason.

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.