public class StateTracker extends Object implements StateListener
| Constructor and Description |
|---|
StateTracker(StateModel model)
Creates a StateTracker for the indicated StateModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setStateModel(StateModel model)
Sets the StateModel.
|
void |
stateChanged(StateEvent event)
XXX This method is public as an implementation side effect.
|
void |
waitForState(int state)
Waits until the StateModel reaches the indicated
state.
|
int |
waitForState(int[] states)
Waits until the StateModel reaches one of the indicated
states.
|
public StateTracker(StateModel model)
model - The model to be tracked.public void setStateModel(StateModel model)
model - StateModel to be tracked.public void waitForState(int state)
state - to wait for.public int waitForState(int[] states)
states - choice of states to wait for.public void stateChanged(StateEvent event)
stateChanged in interface StateListenerCopyright © 2014. All Rights Reserved.