public interface ISimulationModel
Its init()
method is the entry point of each simulation run in that it schedules
initial events that put the simulation into operation. For this, the simulation model relies on a
simulation library (which is also referred to as simulation engine), which offers means to create
and schedule events (or processes, respectively), which are then executed at the intended
simulation time.
The methods getSimEngineFactory()
and getSimulationControl()
both provide
access to simulation library services.
Notice, that the term model refers to the circumstance that the simulation model is an abstraction of a real-world system in that it imitates the system's behaviour.
Modifier and Type | Method and 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) |
ISimulationControl getSimulationControl()
void setSimulationControl(ISimulationControl control)
void setSimulationEngineFactory(ISimEngineFactory factory)
ISimEngineFactory getSimEngineFactory()
void init()
This method is called directly before the simulation starts.
void finalise()
This method is called directly after the simulation have stopped.
ISimulationConfig getConfiguration()