com.newisys.eventsim
Class MetaEvent

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


Field Summary
 
Fields inherited from class com.newisys.eventsim.StepEvent
ALWAYS, NEVER
 
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.
 
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

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 MetaEvent
autoReset - 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 MetaEvent
events - a Collection of events that comprise this MetaEvent
autoReset - true if this event should be reset after it has been satisfied, false otherwise
Method Detail

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