EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.simulation.abstractsimengine.ssj]

COVERAGE SUMMARY FOR SOURCE FILE [SSJExperiment.java]

nameclass, %method, %block, %line, %
SSJExperiment.java0%   (0/2)0%   (0/8)0%   (0/59)0%   (0/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SSJExperiment0%   (0/1)0%   (0/6)0%   (0/45)0%   (0/14)
SSJExperiment (SSJModel): void 0%   (0/1)0%   (0/20)0%   (0/5)
getCurrentSimulationTime (): double 0%   (0/1)0%   (0/4)0%   (0/1)
getSimulator (): Simulator 0%   (0/1)0%   (0/3)0%   (0/1)
scheduleEvent (AbstractExperiment$IEvent, double): void 0%   (0/1)0%   (0/10)0%   (0/3)
startSimulator (): void 0%   (0/1)0%   (0/4)0%   (0/2)
stopSimulator (): void 0%   (0/1)0%   (0/4)0%   (0/2)
     
class SSJExperiment$10%   (0/1)0%   (0/2)0%   (0/14)0%   (0/4)
SSJExperiment$1 (SSJExperiment, Simulator, AbstractExperiment$IEvent): void 0%   (0/1)0%   (0/10)0%   (0/2)
actions (): void 0%   (0/1)0%   (0/4)0%   (0/2)

1package de.uka.ipd.sdq.simulation.abstractsimengine.ssj;
2 
3import umontreal.iro.lecuyer.simevents.Event;
4import umontreal.iro.lecuyer.simevents.Simulator;
5import umontreal.iro.lecuyer.simevents.eventlist.SplayTree;
6import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractExperiment;
7 
8/**
9 * @author Steffen Becker
10 * @author Philipp Merkle
11 */
12public class SSJExperiment extends AbstractExperiment {
13 
14    private final Simulator simulator;
15 
16    public SSJExperiment(final SSJModel model) {
17        super(model);
18 
19        this.simulator = new Simulator();
20        this.simulator.init(new SplayTree());
21 
22        this.scheduleEvent(this.CHECK_EVENT, 1);
23    }
24 
25    public double getCurrentSimulationTime() {
26        return this.simulator.time();
27    }
28 
29    public Simulator getSimulator() {
30        return this.simulator;
31    }
32 
33    @Override
34    public void scheduleEvent(final IEvent event, final double delay) {
35        new Event(this.simulator) {
36            @Override
37            public void actions() {
38                event.run();
39            }
40        }.schedule(delay);
41    }
42 
43    @Override
44    public void startSimulator() {
45        this.simulator.start();
46    }
47 
48    @Override
49    public void stopSimulator() {
50        this.simulator.stop();
51    }
52 
53}

[all classes][de.uka.ipd.sdq.simulation.abstractsimengine.ssj]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov