Class AbstractSimulationModel
- java.lang.Object
-
- de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimulationModel
-
- All Implemented Interfaces:
ISimulationModel
public abstract class AbstractSimulationModel extends Object implements ISimulationModel
-
-
Field Summary
Fields Modifier and Type Field Description protected ISimulationConfig
config
protected ISimEngineFactory
factory
-
Constructor Summary
Constructors Constructor Description AbstractSimulationModel(ISimulationConfig config, ISimEngineFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
setSimulationControl(ISimulationControl control)
void
setSimulationEngineFactory(ISimEngineFactory factory)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel
finalise, init
-
-
-
-
Field Detail
-
config
protected final ISimulationConfig config
-
factory
protected ISimEngineFactory factory
-
-
Constructor Detail
-
AbstractSimulationModel
public AbstractSimulationModel(ISimulationConfig config, ISimEngineFactory factory)
-
-
Method Detail
-
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.
-
setSimulationControl
public void setSimulationControl(ISimulationControl control)
- Specified by:
setSimulationControl
in interfaceISimulationModel
-
setSimulationEngineFactory
public void setSimulationEngineFactory(ISimEngineFactory factory)
- Specified by:
setSimulationEngineFactory
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.
-
getConfiguration
public ISimulationConfig getConfiguration()
Description copied from interface:ISimulationModel
Returns the configuration of the simulation run. Each running simulation model has a configuration.- Specified by:
getConfiguration
in interfaceISimulationModel
-
-