adevs
Class Event

java.lang.Object
  extended by adevs.Event

public class Event
extends java.lang.Object

The Event class is used to inject models into a running simulation, to route input and output within a network model, and to receive notifications of output by an EventListener.


Field Summary
 Devs model
          The model that produced or should receive the event.
 java.lang.Object value
          The value of the input or output event
 
Constructor Summary
Event()
          Create an event with both its model and value set to null
Event(Devs model, java.lang.Object value)
          Create an event with both fields set.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

public Devs model
The model that produced or should receive the event.

See Also:
Simulator, EventListener

value

public java.lang.Object value
The value of the input or output event

See Also:
Simulator, EventListener
Constructor Detail

Event

public Event()
Create an event with both its model and value set to null


Event

public Event(Devs model,
             java.lang.Object value)
Create an event with both fields set. The model is the target if the Object is an input, and the model is the source if the Object is an output.