org.eclipse.ohf.stem.jobs.simulation
Class SimulationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.ohf.stem.jobs.simulation.SimulationEvent
All Implemented Interfaces:
java.io.Serializable

public class SimulationEvent
extends java.util.EventObject

This class represents an event that has occured in the operation of the Simulation

See Also:
Serialized Form

Constructor Summary
SimulationEvent(ISimulation source, SimulationState simulationState)
           
 
Method Summary
 ISimulation getSimulation()
           
 SimulationState getSimulationState()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimulationEvent

public SimulationEvent(ISimulation source,
                       SimulationState simulationState)
Parameters:
source - the Simulation the generated the event
simulationState - the new state of the simulation
Method Detail

getSimulationState

public final SimulationState getSimulationState()
Returns:
the new state of the simulation

getSimulation

public ISimulation getSimulation()
Returns:
the simulation that is the source of the event

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject
See Also:
EventObject.toString()