com.newisys.eventsim
Class OrderEvent
java.lang.Object
com.newisys.eventsim.Event
com.newisys.eventsim.StepEvent
com.newisys.eventsim.MetaEvent
com.newisys.eventsim.OrderEvent
public final class OrderEvent
- extends MetaEvent
A MetaEvent which occurs once all of its constituent events have occurred,
in the order in which they are specified.
OrderEvent
public OrderEvent(Collection<Event> events,
boolean autoReset)
- Creates a new OrderEvent 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 must occur for this OrderEvent to
be satisfied.autoReset - true if this event should be reset after
it has been satisfied, false otherwise
OrderEvent
public OrderEvent(String name,
Collection<Event> events,
boolean autoReset)
- Creates a new OrderEvent from the collection specified. If
autoReset
is true, the event will be reset after it has been
satisfied.
- Parameters:
name - the name of this OrderEventevents - a Collection of events that must occur for this OrderEvent to
be satisfiedautoReset - true if this event should be reset after
it has been satisfied, false otherwise