|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.newisys.eventsim.Event
com.newisys.eventsim.StepEvent
public class StepEvent
An Event that retains its state as on or off.
A StepEvent is turned on by calling hasOccurred(true) and maintains
that state until hasOccurred(false) is called.
| Field Summary | |
|---|---|
static StepEvent |
ALWAYS
A StepEvent that is always on. |
static StepEvent |
NEVER
A StepEvent that is always off. |
| Constructor Summary | |
|---|---|
StepEvent()
Create a new StepEvent. |
|
StepEvent(String name)
Create a new StepEvent with the specified name. |
|
| Method Summary | |
|---|---|
boolean |
hasOccurred()
Returns whether or not this StepEvent has occurred. |
| Methods inherited from class com.newisys.eventsim.Event |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StepEvent ALWAYS
public static final StepEvent NEVER
| Constructor Detail |
|---|
public StepEvent()
public StepEvent(String name)
name - the name of this StepEvent| Method Detail |
|---|
public boolean hasOccurred()
hasOccurred in class Eventtrue if this StepEvent has occurred, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||