Class SSJModel
- java.lang.Object
-
- org.palladiosimulator.simulation.abstractsimengine.ssj.SSJModel
-
- All Implemented Interfaces:
ISimulationModel
public class SSJModel extends Object implements ISimulationModel
-
-
Constructor Summary
Constructors Constructor Description SSJModel(ISimulationModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalise()
Cleans up when the simulation stops.ISimulationConfig
getConfiguration()
Returns the configuration of the simulation run.ISimEngineFactory
getSimEngineFactory()
Creation of new elements, e.g.ISimulationControl
getSimulationControl()
Offers means to control the simulation run, e.g.void
init()
Initialises the simulation.void
setSimulationControl(ISimulationControl control)
void
setSimulationEngineFactory(ISimEngineFactory factory)
-
-
-
Constructor Detail
-
SSJModel
public SSJModel(ISimulationModel model)
-
-
Method Detail
-
finalise
public void finalise()
Cleans up when the simulation stops.This method is called directly after the simulation have stopped.
- Specified by:
finalise
in interfaceISimulationModel
-
getConfiguration
public ISimulationConfig getConfiguration()
Returns the configuration of the simulation run. Each running simulation model has a configuration.- Specified by:
getConfiguration
in interfaceISimulationModel
-
getSimEngineFactory
public ISimEngineFactory getSimEngineFactory()
Description copied from interface:ISimulationModel
Creation of new elements, e.g. events and processes, in the simulation.- Specified by:
getSimEngineFactory
in interfaceISimulationModel
- Returns:
- Factory to create element in the event-based simulation.
-
getSimulationControl
public ISimulationControl getSimulationControl()
Description copied from interface:ISimulationModel
Offers means to control the simulation run, e.g. to start and stop the simulation.- Specified by:
getSimulationControl
in interfaceISimulationModel
- Returns:
- Controller for the event-based simulation.
-
init
public void init()
Initialises the simulation. Especially, the initial events are scheduled here before the simulation starts. If no events are scheduled, the simulator stops immediately after being started.This method is called directly before the simulation starts.
- Specified by:
init
in interfaceISimulationModel
-
setSimulationControl
public void setSimulationControl(ISimulationControl control)
- Specified by:
setSimulationControl
in interfaceISimulationModel
-
setSimulationEngineFactory
public void setSimulationEngineFactory(ISimEngineFactory factory)
- Specified by:
setSimulationEngineFactory
in interfaceISimulationModel
-
-