com.newisys.ova
Class OVAEvent<K extends com.newisys.ova.OVAEventType>

java.lang.Object
  extended by com.newisys.eventsim.Event
      extended by com.newisys.eventsim.PulseEvent
          extended by com.newisys.ova.OVAEvent<K>
Type Parameters:
K - the type of enumeration used by this OVAEvent
Direct Known Subclasses:
OVAAssertEvent, OVAEngineEvent

public abstract class OVAEvent<K extends com.newisys.ova.OVAEventType>
extends PulseEvent

Class to help manage OVA events from Jove.

This class is not yet supported


Constructor Summary
OVAEvent(K eventType)
          Create an OVA Event associated with the type of event described by the event parameter.
 
Method Summary
 OVAEvent getNextEvent()
          Returns the event type that unblocked this thread.
 
Methods inherited from class com.newisys.eventsim.PulseEvent
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

OVAEvent

public OVAEvent(K eventType)
Create an OVA Event associated with the type of event described by the event parameter.

Parameters:
eventType - the event type to associate with this OVAEvent
Method Detail

getNextEvent

public OVAEvent getNextEvent()
Returns the event type that unblocked this thread. If more than one event caused the thread to unblock, this method may be called multiple times, until null is returned.

If there are multiple calls to DVSimulation.waitFor(Event) without intervening calls to getNextEvent, getNextEvent will return the set of event types corresponding to the last call to DVSimulation.waitFor(Event).

Returns:
the event type that unblocked this thread or null if there are no more events.