|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Class used by TrainingComponents to pass information about the current task. When the
| Field Summary | |
static java.lang.String |
CANCELLED
|
static java.lang.String |
FAILED
|
static java.lang.String |
ONGOING
|
static java.lang.String |
PASSED
|
| Method Summary | |
java.lang.String |
get(java.lang.String key)
Retrieves the value of the key. |
Constraint |
getCompletionConstraint()
Returns the failure condition (if any). |
java.lang.String |
getCompletionReason()
Returns the failure condition (if any). |
java.lang.String |
getCompletionStatus()
|
int |
getInt(java.lang.String key)
Retrieves the value of the key as an int, if possible. |
Settings |
getSettings()
Returns the settings for the application. |
boolean |
isCompleted()
|
boolean |
isSuccessful()
|
void |
put(java.lang.String key,
int value)
Associates the value with the key. |
void |
put(java.lang.String key,
java.lang.String value)
Associates the value with the key. |
void |
setCancelled()
Called to indicate the user abandoned the task. |
void |
setCompleted(boolean success,
Constraint constraint,
java.lang.String reason)
Called to indicate the user completed the task. |
| Field Detail |
public static final java.lang.String CANCELLED
public static final java.lang.String PASSED
public static final java.lang.String FAILED
public static final java.lang.String ONGOING
| Method Detail |
public java.lang.String get(java.lang.String key)
public void put(java.lang.String key,
java.lang.String value)
public int getInt(java.lang.String key)
public void put(java.lang.String key,
int value)
public void setCompleted(boolean success,
Constraint constraint,
java.lang.String reason)
throws java.lang.IllegalStateException
success - if true, the user successfully completed the task.constraint - The constraint that called this method.reason - The text given here should be documented in the constraint.
IlllegalStateException - if the task has already been cancelled or completed
java.lang.IllegalStateException
public void setCancelled()
throws java.lang.IllegalStateException
IlllegalStateException - if the task has already been cancelled or completed
java.lang.IllegalStateExceptionpublic boolean isCompleted()
public boolean isSuccessful()
throws ValueNotSetException
ValueNotSetException - if the task was cancelled.public java.lang.String getCompletionStatus()
public java.lang.String getCompletionReason()
public Constraint getCompletionConstraint()
public Settings getSettings()
|
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.