com.newisys.eventsim
Class OrderEvent

java.lang.Object
  extended by com.newisys.eventsim.Event
      extended by com.newisys.eventsim.StepEvent
          extended by com.newisys.eventsim.MetaEvent
              extended by 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.


Field Summary
 
Fields inherited from class com.newisys.eventsim.StepEvent
ALWAYS, NEVER
 
Constructor Summary
OrderEvent(Collection<Event> events, boolean autoReset)
          Creates a new OrderEvent from the collection specified.
OrderEvent(String name, Collection<Event> events, boolean autoReset)
          Creates a new OrderEvent from the collection specified.
 
Method Summary
 
Methods inherited from class com.newisys.eventsim.MetaEvent
isAutoReset
 
Methods inherited from class com.newisys.eventsim.StepEvent
hasOccurred
 
Methods inherited from class com.newisys.eventsim.Event
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 OrderEvent
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