Class FWSimulationEvent<T>
java.lang.Object
net.simplace.sim.event.FWSimulationEvent<T>
- Type Parameters:
T- type of the source object
- Direct Known Subclasses:
FWSimulationErrorEvent
Event of a session run, passed to the
FWSimulationListeners: start and end of a simulation (source
FWSimModel), end of a project (source FWSimProject) or end of an iteration (source
FWSimulationControlCache), with the progress in percent. FWSimulationErrorEvent extends this class
with the exception.- Author:
- Andreas Enders
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FWSimulationEvent
-
-
Method Details
-
isSimulationEvent
public boolean isSimulationEvent()- Returns:
trueif the source is a model (simulation)
-
isProjectEvent
public boolean isProjectEvent()- Returns:
trueif the source is a project
-
isIterationEvent
public boolean isIterationEvent()- Returns:
trueif the source is the control cache (iteration)
-
getPercentage
public int getPercentage()- Returns:
- the progress in percent, 0 for events without percentage (error events)
-
getModel
- Returns:
- the model, or
nullif the source is no model
-
getProject
- Returns:
- the project, or
nullif the source is no project
-
getControlCache
- Returns:
- the control cache, or
nullif the source is no control cache
-