adevs
Interface EventListener


public interface EventListener

The EventListener interface is implemented by classes that will register with a Simulator to receive notification when changes occur in a model's state and output.

See Also:
Simulator

Method Summary
 void outputEvent(Event x, double t)
          This method is called when a model produces an output.
 void stateChange(Atomic model, double t)
          This method is called immediately after an Atomic model changes its state.
 

Method Detail

outputEvent

void outputEvent(Event x,
                 double t)
This method is called when a model produces an output. The time t is the time when the output occurs and the Event has the model that produced the output and the output's value.

Parameters:
x - An Event holding the model that produced the output and the output itself
t - The time that the output occurred
See Also:
Event

stateChange

void stateChange(Atomic model,
                 double t)
This method is called immediately after an Atomic model changes its state.

Parameters:
model - The model that changed state
t - The time at which the change occurred
See Also:
Atomic