1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.simulation.abstractsimengine.ssj; |
5 | |
6 | import de.uka.ipd.sdq.simulation.abstractsimengine.ISimEngineFactory; |
7 | import de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationConfig; |
8 | import de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl; |
9 | import de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel; |
10 | |
11 | /** |
12 | * @author Steffen Becker |
13 | * @author Philipp Merkle |
14 | */ |
15 | public class SSJModel implements ISimulationModel { |
16 | |
17 | private final ISimulationModel model; |
18 | |
19 | public SSJModel(final ISimulationModel model) { |
20 | this.model = model; |
21 | } |
22 | |
23 | /** |
24 | * {@inheritDoc} |
25 | */ |
26 | @Override |
27 | public void finalise() { |
28 | this.model.finalise(); |
29 | } |
30 | |
31 | /** |
32 | * {@inheritDoc} |
33 | */ |
34 | @Override |
35 | public ISimulationConfig getConfiguration() { |
36 | return this.model.getConfiguration(); |
37 | } |
38 | |
39 | @Override |
40 | public ISimEngineFactory getSimEngineFactory() { |
41 | return this.model.getSimEngineFactory(); |
42 | } |
43 | |
44 | @Override |
45 | public ISimulationControl getSimulationControl() { |
46 | return this.model.getSimulationControl(); |
47 | } |
48 | |
49 | /** |
50 | * {@inheritDoc} |
51 | */ |
52 | @Override |
53 | public void init() { |
54 | this.model.init(); |
55 | } |
56 | |
57 | @Override |
58 | public void setSimulationControl(final ISimulationControl control) { |
59 | this.model.setSimulationControl(control); |
60 | } |
61 | |
62 | @Override |
63 | public void setSimulationEngineFactory(final ISimEngineFactory factory) { |
64 | this.model.setSimulationEngineFactory(factory); |
65 | } |
66 | |
67 | } |