com.newisys.eventsim
Class MetaEvent
java.lang.Object
com.newisys.eventsim.Event
com.newisys.eventsim.StepEvent
com.newisys.eventsim.MetaEvent
- Direct Known Subclasses:
- AllEvent, AnyEvent, OrderEvent
public abstract class MetaEvent
- extends StepEvent
An Event comprised of other Events and whose state depends on the
state of its constituent Events.
|
Constructor Summary |
MetaEvent(Collection<? extends Event> events,
boolean autoReset)
Creates a new MetaEvent from the collection specified. |
MetaEvent(String name,
Collection<? extends Event> events,
boolean autoReset)
Creates a new MetaEvent from the collection specified. |
|
Method Summary |
boolean |
isAutoReset()
Returns whether or not this MetaEvent has auto-reset enabled. |
MetaEvent
public MetaEvent(Collection<? extends Event> events,
boolean autoReset)
- Creates a new MetaEvent from the collection specified. If
autoReset
is true, the event will be reset after it has been
satisfied.
- Parameters:
events - a Collection of events that comprise this MetaEventautoReset - true if this event should be reset after
it has been satisfied, false otherwise
MetaEvent
public MetaEvent(String name,
Collection<? extends Event> events,
boolean autoReset)
- Creates a new MetaEvent from the collection specified. If
autoReset
is true, the event will be reset after it has been
satisfied.
- Parameters:
name - the name of this MetaEventevents - a Collection of events that comprise this MetaEventautoReset - true if this event should be reset after
it has been satisfied, false otherwise
isAutoReset
public boolean isAutoReset()
- Returns whether or not this MetaEvent has auto-reset enabled. Auto-reset
causes
reset() to be called once this MetaEvent has occurred.
- Returns:
true if this MetaEvent has auto-reset enabled,
false otherwise