net.simplace.simulation.event.FWSimulationListener

Model listener is called for start and end of a model run and for exceptional cases. Within the FWSimulationEvent all data available in the model can be accessed and modified. For implementation method simulationStarted(FWSimulationEvent), simulationEnded(FWSimulationEvent) and simulationErrored(FWSimulationErrorEvent) have to be implemented. FWSimulationErrorEvent contains additional exception information.


public interface interface FWSimulationListener extends java.util.EventListener {


// Public Instance Methods
public void simulationStarted(FWSimulationEvent aEvent);

invoked when a simulation is started
public void simulationEnded(FWSimulationEvent aEvent);

invoked when a simulation has ended
public void simulationErrored(FWSimulationErrorEvent aEvent);

invoked when a OutputEvent is received
public void projectEnded(FWSimulationEvent aEvent);

invoked when a OutputEvent is received
public void iterationEnded(FWSimulationEvent aEvent);

invoked when a new iteration was started


}



Implemented by: net.simplace.processors.LoopSimModelRunProcessor



Passed to: net.simplace.simulation.FWSimSession.registerModelListener(), net.simplace.simulation.wrapper.SimplaceWrapper.registerModelListener(), net.simplace.simulation.FWSimSession.removeModelListener(), net.simplace.simulation.wrapper.SimplaceWrapper.removeModelListener()