EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pipesandfilters.framework.recorder.sensorframework.strategies]

COVERAGE SUMMARY FOR SOURCE FILE [WaitingTimeWriteDataStrategy.java]

nameclass, %method, %block, %line, %
WaitingTimeWriteDataStrategy.java0%   (0/1)0%   (0/2)0%   (0/32)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class WaitingTimeWriteDataStrategy0%   (0/1)0%   (0/2)0%   (0/32)0%   (0/10)
WaitingTimeWriteDataStrategy (IDAOFactory, Experiment, ExperimentRun): void 0%   (0/1)0%   (0/6)0%   (0/2)
writeData (PipeData): void 0%   (0/1)0%   (0/26)0%   (0/8)

1package de.uka.ipd.sdq.pipesandfilters.framework.recorder.sensorframework.strategies;
2 
3import javax.measure.Measure;
4import javax.measure.quantity.Duration;
5import javax.measure.unit.SI;
6 
7import de.uka.ipd.sdq.pipesandfilters.framework.PipeData;
8import de.uka.ipd.sdq.sensorframework.entities.Experiment;
9import de.uka.ipd.sdq.sensorframework.entities.ExperimentRun;
10import de.uka.ipd.sdq.sensorframework.entities.Sensor;
11import de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor;
12import de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory;
13 
14public class WaitingTimeWriteDataStrategy extends AbstractWriteDataStrategy {
15 
16        public WaitingTimeWriteDataStrategy(IDAOFactory daoFactory,
17                        Experiment experiment, ExperimentRun run) {
18                super(daoFactory, experiment, run);
19        }
20 
21        @SuppressWarnings("unchecked")
22        @Override
23        public void writeData(PipeData data) {
24                Measure<Double, Duration> timeSpanMeasure = (Measure<Double, Duration>) data
25                                .getTupleElement(0);
26                double timeSpan = timeSpanMeasure.doubleValue(SI.SECOND);
27                Measure<Double, Duration> eventTimeMeasure = (Measure<Double, Duration>) data
28                                .getTupleElement(1);
29                double eventTime = eventTimeMeasure.doubleValue(SI.SECOND);
30                run.addTimeSpanMeasurement((TimeSpanSensor)sensor, eventTime, timeSpan);
31        }
32 
33}

[all classes][de.uka.ipd.sdq.pipesandfilters.framework.recorder.sensorframework.strategies]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov