|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.util.StateTracker
public class StateTracker
Tracks state changes in a StateModel.
| Constructor Summary | |
|---|---|
StateTracker(StateModel model)
Creates a StateTracker for the indicated StateModel. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateTracker(StateModel model)
model - The model to be tracked.| Method Detail |
|---|
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 StateListener
|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||