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

COVERAGE SUMMARY FOR SOURCE FILE [DesmoJSimEngineFactory.java]

nameclass, %method, %block, %line, %
DesmoJSimEngineFactory.java0%   (0/1)0%   (0/6)0%   (0/51)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DesmoJSimEngineFactory0%   (0/1)0%   (0/6)0%   (0/51)0%   (0/10)
DesmoJSimEngineFactory (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createEntity (AbstractSimEntityDelegator, String): IEntity 0%   (0/1)0%   (0/8)0%   (0/1)
createSimEvent (AbstractSimEventDelegator, String): ISimEvent 0%   (0/1)0%   (0/8)0%   (0/1)
createSimProcess (AbstractSimProcessDelegator, String): ISimProcess 0%   (0/1)0%   (0/8)0%   (0/1)
createSimulationControl (): ISimulationControl 0%   (0/1)0%   (0/12)0%   (0/3)
setModel (ISimulationModel): void 0%   (0/1)0%   (0/12)0%   (0/3)

1package de.uka.ipd.sdq.simulation.abstractsimengine.desmoj;
2 
3import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator;
4import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEventDelegator;
5import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator;
6import de.uka.ipd.sdq.simulation.abstractsimengine.IEntity;
7import de.uka.ipd.sdq.simulation.abstractsimengine.ISimEngineFactory;
8import de.uka.ipd.sdq.simulation.abstractsimengine.ISimEvent;
9import de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess;
10import de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationControl;
11import de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationModel;
12 
13/**
14 * @author Steffen Becker
15 * @author Philipp Merkle
16 */
17public class DesmoJSimEngineFactory implements ISimEngineFactory {
18 
19    private DesmoJModel model;
20 
21    @Override
22    public void setModel(final ISimulationModel model) {
23        final String modelName = model.getConfiguration().getNameExperimentRun();
24        this.model = new DesmoJModel(model, modelName);
25    }
26 
27    @Override
28    public ISimulationControl createSimulationControl() {
29        final ISimulationControl delegate = new DesmoJExperiment(this.model);
30        this.model.setSimulationControl(delegate);
31        return delegate;
32    }
33 
34    @Override
35    public IEntity createEntity(final AbstractSimEntityDelegator e, final String name) {
36        return new DesmoJEntity(e, this.model, name);
37    }
38 
39    @Override
40    public <E extends IEntity> ISimEvent<E> createSimEvent(final AbstractSimEventDelegator<E> myEvent, final String name) {
41        return new DesmoJSimEvent<E>(myEvent, this.model, name);
42    }
43 
44    @Override
45    public ISimProcess createSimProcess(final AbstractSimProcessDelegator myProcess, final String name) {
46        return new DesmoJSimProcess(myProcess, this.model, name);
47    }
48 
49}

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