|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectutil.Mastery
| Nested Class Summary | |
static class |
Mastery.Result
|
| Field Summary | |
static java.lang.String |
BLANK_HISTORY
|
static Mastery.Result |
CONTINUE
|
static Mastery.Result |
FAILED
|
static util.Mastery.Condition[] |
ONCE_CONDITION
|
static Mastery.Result |
PASSED
|
| Constructor Summary | |
Mastery(java.lang.String criteria)
Constructs a new Mastery object using the given mastery conditions. |
|
| Method Summary | |
static java.lang.String |
appendHistory(java.lang.String history,
boolean success)
Updates the given history with the given task outcome. |
Mastery.Result |
evaluateHistory(java.lang.String history)
Decides if the mastery conditions have been met yet. |
int[] |
getProgress(java.lang.String history)
Returns int[] format of the current progress. |
java.lang.String |
getProgressString(java.lang.String history)
Returns String format of the current progress. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Mastery.Result FAILED
public static final Mastery.Result PASSED
public static final Mastery.Result CONTINUE
public static final java.lang.String BLANK_HISTORY
public static final util.Mastery.Condition[] ONCE_CONDITION
| Constructor Detail |
public Mastery(java.lang.String criteria)
criteria - a string from the following BNF grammar:
CRITERIA ::= CRITERIA-LIST
| <white-space> CRITERIA
| initial <n>
| correct <n> OUTOF <n>
| wrong <n> OUTOF <n>
OUTOF ::= out of | of
Where the java.lang.IllegalArgumentException - if the criteria do not match the given grammar.| Method Detail |
public static java.lang.String appendHistory(java.lang.String history,
boolean success)
history - the previous task history,
or null or BLANK_HISTORY if there were no previous tasks.success - true if the outcome of the latest task was success, false otherwise.
public Mastery.Result evaluateHistory(java.lang.String history)
public java.lang.String getProgressString(java.lang.String history)
public int[] getProgress(java.lang.String history)
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.