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

COVERAGE SUMMARY FOR SOURCE FILE [AbstractExperimentRun.java]

nameclass, %method, %block, %line, %
AbstractExperimentRun.java100% (1/1)80%  (8/10)74%  (61/82)75%  (24/32)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractExperimentRun100% (1/1)80%  (8/10)74%  (61/82)75%  (24/32)
addMeasurement (Measurement): void 0%   (0/1)0%   (0/6)0%   (0/2)
addScalabilityMeasurement (ScalabilitySensor, Double [], double): Scalability... 0%   (0/1)0%   (0/15)0%   (0/6)
AbstractExperimentRun (IDAOFactory): void 100% (1/1)100% (14/14)100% (5/5)
addStateMeasurement (StateSensor, State, double): StateMeasurement 100% (1/1)100% (15/15)100% (6/6)
addTimeSpanMeasurement (TimeSpanSensor, double, double): TimeSpanMeasurement 100% (1/1)100% (15/15)100% (6/6)
getExperimentDateTime (): String 100% (1/1)100% (3/3)100% (1/1)
getExperimentRunID (): long 100% (1/1)100% (3/3)100% (1/1)
getMeasurements (): Collection 100% (1/1)100% (3/3)100% (1/1)
setExperimentDateTime (String): void 100% (1/1)100% (4/4)100% (2/2)
setExperimentRunID (long): void 100% (1/1)100% (4/4)100% (2/2)

1package de.uka.ipd.sdq.sensorframework.entities.base;
2 
3@javax.persistence.Entity
4@javax.persistence.Table(name = "EXPERIMENTRUN")
5public abstract class AbstractExperimentRun
6 
7implements de.uka.ipd.sdq.sensorframework.entities.ExperimentRun
8 
9{
10 
11        protected transient de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myDAOFactory = null;
12 
13        public AbstractExperimentRun(
14                        de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myFactory) {
15                this.myDAOFactory = myFactory;
16        }
17 
18        /*
19         * Getter and Setter for Properties with cardinality 0..1 or 1 which are not
20         * a composition
21         */
22 
23        @javax.persistence.Column(name = "EXPERIMENTDATETIME")
24        private String m_experimentDateTime;
25 
26        public String getExperimentDateTime() {
27                return m_experimentDateTime;
28        }
29 
30        public void setExperimentDateTime(String value) {
31                this.m_experimentDateTime = value;
32        };
33 
34        @javax.persistence.Id
35        @javax.persistence.Column(name = "EXPERIMENTRUNID")
36        @javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY)
37        private long m_experimentRunID;
38 
39        public long getExperimentRunID() {
40                return m_experimentRunID;
41        }
42 
43        public void setExperimentRunID(long value) {
44                this.m_experimentRunID = value;
45        }
46 
47        /*
48         * Getter and Setter for Properties with cardinality 0..1 or 1 which are a
49         * composition
50         */
51 
52        /*
53         * Getter and Setter for Properties with cardinality 0..* which are not a
54         * composition
55         */
56 
57        /*
58         * Getter and Setter for Properties with cardinality 0..* which are a
59         * composition
60         */
61 
62        @javax.persistence.OneToMany(cascade = javax.persistence.CascadeType.ALL)
63        @javax.persistence.JoinTable(name = "ExperimentRun_measurements", joinColumns = { @javax.persistence.JoinColumn(name = "EXPERIMENTRUN_ID") }, inverseJoinColumns = { @javax.persistence.JoinColumn(name = "MEASUREMENT_ID") })
64        private java.util.Collection<de.uka.ipd.sdq.sensorframework.entities.Measurement> m_measurements = new java.util.ArrayList<de.uka.ipd.sdq.sensorframework.entities.Measurement>();
65 
66        public de.uka.ipd.sdq.sensorframework.entities.StateMeasurement addStateMeasurement(
67 
68        de.uka.ipd.sdq.sensorframework.entities.StateSensor p_sensor,
69 
70        de.uka.ipd.sdq.sensorframework.entities.State p_sensorstate
71 
72        ,
73 
74        double p_eventtime) {
75 
76                de.uka.ipd.sdq.sensorframework.entities.StateMeasurement result = myDAOFactory
77                                .createMeasurementDAO().addStateMeasurement(
78 
79                                p_sensor, p_sensorstate
80 
81                                ,
82 
83                                p_eventtime);
84 
85                m_measurements.add(result);
86                return result;
87        }
88 
89        public de.uka.ipd.sdq.sensorframework.entities.TimeSpanMeasurement addTimeSpanMeasurement(
90 
91        de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor p_sensor
92 
93        ,
94 
95        double p_eventtime,
96 
97        double p_timespan) {
98 
99                de.uka.ipd.sdq.sensorframework.entities.TimeSpanMeasurement result = myDAOFactory
100                                .createMeasurementDAO().addTimeSpanMeasurement(
101 
102                                p_sensor
103 
104                                ,
105 
106                                p_eventtime, p_timespan);
107 
108                m_measurements.add(result);
109                return result;
110        }
111        
112        public de.uka.ipd.sdq.sensorframework.entities.ScalabilityMeasurement addScalabilityMeasurement(
113 
114                        de.uka.ipd.sdq.sensorframework.entities.ScalabilitySensor p_sensor
115 
116                        ,
117                        Double[] p_parameters,
118                        
119                        double p_result
120 
121                        ) {
122 
123                                de.uka.ipd.sdq.sensorframework.entities.ScalabilityMeasurement result = myDAOFactory
124                                                .createMeasurementDAO().addScalabilityMeasurement(
125 
126                                                p_sensor
127 
128                                                ,
129 
130                                                p_parameters, p_result);
131 
132                                m_measurements.add(result);
133                                return result;
134                        }
135 
136        public void addMeasurement(
137                        de.uka.ipd.sdq.sensorframework.entities.Measurement value) {
138                this.m_measurements.add(value);
139        }
140 
141        public java.util.Collection<de.uka.ipd.sdq.sensorframework.entities.Measurement> getMeasurements() {
142                return this.m_measurements;
143        }
144 
145        /* Abstract Operations */
146 
147        public abstract de.uka.ipd.sdq.sensorframework.entities.SensorAndMeasurements
148 
149        getMeasurementsOfSensor(
150 
151        de.uka.ipd.sdq.sensorframework.entities.Sensor sensor
152 
153        );
154 
155}

[all classes][de.uka.ipd.sdq.sensorframework.entities.base]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov