talx x1.0.5

util
Interface Constraint

All Known Implementing Classes:
AutoFail, ConstraintAdapter, DialogOnFailure, DialogOnSuccess, IntroState.IntroConstraint, LayeredConstraint, PassElseFailOnPreviousCompletionPeriod, PassElseFailOnPreviousCompletionReason, PassElseFailOnPreviousCompletionSpace, PauseOnFailure, PauseOnSuccess, SetInstruction, SetSound, Snoop, SoundOnFailure, SoundOnSuccess, SucceedOnSoundFinished, TOCTopState.TOCTopConstraint, TOCTreeState.TOCTreeConstraint, TrainerConstraint, WaitOnSound

public interface Constraint

Determines the operating parameters of a task. Each constraint has the oportunity to react to each user input event. When a task is scheduled for execution, the constraints are located and each has its value set. Then the constraints process all user events until the task is completed (usually because one of the constraints calls setSuccessful() in TaskProperties).
All Constraint toString() methods should return just the fully qualifed classname of the constraint.


Method Summary
 java.lang.String getType()
           
 java.lang.String getValue()
           
 void process(EventWrapper ev, TaskProperties tp)
          Updates the taskproperties from the event.
 void setValue(java.lang.String value, java.lang.String type, TaskProperties tp)
          Sets the current value and type.
 

Method Detail

process

public void process(EventWrapper ev,
                    TaskProperties tp)
Updates the taskproperties from the event.


setValue

public void setValue(java.lang.String value,
                     java.lang.String type,
                     TaskProperties tp)
Sets the current value and type.


getValue

public java.lang.String getValue()

getType

public java.lang.String getType()

talx x1.0.5

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