net.simplace.sim.event.FWSimulationEvent

Model event is created for start and end of a model run and for exceptional cases. Within the FWSimulationListener implementation all data available in the model can be accessed and modified. For implementation method FWSimulationListener, FWSimulationListener and FWSimulationListener.simulationErrored(FWSimulationErrorEvent) have to be implemented. FWSimulationErrorEvent extends this class and contains additional exception information.


public class FWSimulationEvent {
// Public Constructors
public FWSimulationEvent(Object aSourceObject, Integer aPercentage);


// Public Instance Methods
public boolean isSimulationEvent();

public boolean isProjectEvent();

public boolean isIterationEvent();

public int getPercentage();

public FWSimModel getModel();


returns the model
public FWSimProject getProject();


returns the project
public FWSimulationControlCache getControlCache();


returns the project


}



Extended by: FWSimulationErrorEvent



Passed to: net.simplace.client.sim.processors.LoopSimModelRunProcessor.iterationEnded(), FWSimulationListener.iterationEnded(), net.simplace.client.sim.processors.LoopSimModelRunProcessor.projectEnded(), FWSimulationListener.projectEnded(), net.simplace.client.sim.processors.LoopSimModelRunProcessor.simulationEnded(), FWSimulationListener.simulationEnded(), net.simplace.client.sim.processors.LoopSimModelRunProcessor.simulationStarted(), FWSimulationListener.simulationStarted()