net.simplace.simulation.event.FWSimModelListener

Model listener is called for start and end of a model run and for exceptional cases. Within the FWSimModelEvent all data available in the model can be accessed and modified. For implementation method modelStarted(FWSimModelEvent), modelEnded(FWSimModelEvent) and modelErrored(FWSimModelErrorEvent) have to be implemented. FWSimModelErrorEvent contains additional exception information.


public interface interface FWSimModelListener extends java.util.EventListener {


// Public Instance Methods
public void modelStarted(FWSimModelEvent aEvent);

invoked when a OutputEvent is received
public void modelEnded(FWSimModelEvent aEvent);

invoked when a OutputEvent is received
public void modelErrored(FWSimModelErrorEvent aEvent);

invoked when a OutputEvent is received


}



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()