talx x1.0.5

util
Class Skill

java.lang.Object
  extended byutil.Skill
All Implemented Interfaces:
SkillLatticeConstants
Direct Known Subclasses:
SkillAlias

public class Skill
extends java.lang.Object
implements SkillLatticeConstants

This object represents a Skill object in the Training program. Skills are read and created by the SkillLattice. Skill contain neccessary information for training that skill. A Skill has some attributes, a list of tasks, and a tree of drills. See skills.dtd and SkillLatticeConstants.java for more information on the attributes of Skills.


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
Skill(java.lang.String id)
          Provided for subclasses.
Skill(java.lang.String id, java.lang.String[] prereqs, java.lang.String status, java.util.Date date, java.lang.String refreshCriteria, java.lang.String reviewCriteria, java.lang.String start, java.lang.String filename)
          This constructor creates a Skill object with all the basic attributes.
 
Method Summary
 java.util.Date getDate()
          Returns the date of this Skill.
 java.lang.String getDescription()
          Returns the description of this Skill.
 Drill getDrill()
          Returns the drill that this Skill starts with.
 java.lang.String getId()
          Returns the id of this Skill.
 java.lang.String[] getPrerequisits()
          Returns the prereqs of this Skill.
 java.lang.String getRefreshCriteria()
          Returns the refresh criteria of this Skill.
 java.lang.String getReviewCriteria()
          Returns the review criteria of this Skill.
 Task getReviewTask()
          Returns the current task to do for this Skill (when reviewing/refreshing).
 java.lang.String getStatus()
          Returns the status of this Skill.
 void setDate(java.util.Date d)
          Sets the Status of this Skill.
 void setDescription(java.lang.String d)
          Sets the description of this Skill.
 void setStatus(Drill d)
          Sets the Status of this Skill.
 void setStatus(java.lang.String status)
          Sets the Status of this Skill.
 void setStatus(java.lang.String status, java.util.Date d)
          Sets the Status of this Skill.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skill

public Skill(java.lang.String id,
             java.lang.String[] prereqs,
             java.lang.String status,
             java.util.Date date,
             java.lang.String refreshCriteria,
             java.lang.String reviewCriteria,
             java.lang.String start,
             java.lang.String filename)
This constructor creates a Skill object with all the basic attributes. The Skill does not create its tasks or drills until it is needed.


Skill

public Skill(java.lang.String id)
Provided for subclasses.

Method Detail

getId

public java.lang.String getId()
Returns the id of this Skill.

Returns:
String id.

getPrerequisits

public java.lang.String[] getPrerequisits()
Returns the prereqs of this Skill.

Returns:
String[] prereqs.

getStatus

public java.lang.String getStatus()
Returns the status of this Skill.

Returns:
String status.

getDate

public java.util.Date getDate()
Returns the date of this Skill.

Returns:
Date date.

getRefreshCriteria

public java.lang.String getRefreshCriteria()
Returns the refresh criteria of this Skill.

Returns:
String refresh criteria.

getReviewCriteria

public java.lang.String getReviewCriteria()
Returns the review criteria of this Skill.

Returns:
String review criteria.

getDescription

public java.lang.String getDescription()
Returns the description of this Skill.

Returns:
String description.

getDrill

public Drill getDrill()
Returns the drill that this Skill starts with.

Returns:
Drill start drill.

getReviewTask

public Task getReviewTask()
Returns the current task to do for this Skill (when reviewing/refreshing).

Returns:
Task current task.

setDescription

public void setDescription(java.lang.String d)
Sets the description of this Skill. This method should only be called upon creation of the skill.

Parameters:
d - description.

setStatus

public void setStatus(java.lang.String status,
                      java.util.Date d)
Sets the Status of this Skill. And writes out the status to the status file.

Parameters:
status - status.
d - date.

setDate

public void setDate(java.util.Date d)
Sets the Status of this Skill. And writes out the status to the status file.

Parameters:
d - date.

setStatus

public void setStatus(java.lang.String status)
Sets the Status of this Skill. And writes out the status to the status file.

Parameters:
status - status.

setStatus

public void setStatus(Drill d)
Sets the Status of this Skill. And writes out the status to the status file.

Parameters:
d - drill.

talx x1.0.5

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