1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.sensorframework.dao.file.entities; |
5 | |
6 | import de.uka.ipd.sdq.sensorframework.entities.TimeSpanMeasurement; |
7 | import de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor; |
8 | |
9 | /** |
10 | * @author Ihssane El-Oudghiri |
11 | * |
12 | * TODO Kommentare TODO Warum wird hier nicht TimeSpanSensorAndMeasurement |
13 | * referenziert?? |
14 | * TODO add toString method... |
15 | */ |
16 | public class TimeSpanMeasurementImpl |
17 | extends MeasurementImpl |
18 | implements TimeSpanMeasurement { |
19 | |
20 | private double timeSpan; |
21 | |
22 | public TimeSpanMeasurementImpl(long id, double eventTime, double timeSpan) { |
23 | super(id, eventTime); |
24 | this.timeSpan = timeSpan; |
25 | } |
26 | |
27 | public TimeSpanSensor getSensor() { |
28 | throw new UnsupportedOperationException(); |
29 | } |
30 | |
31 | public double getTimeSpan() { |
32 | return timeSpan; |
33 | } |
34 | |
35 | public void setSensor(TimeSpanSensor value) { |
36 | throw new UnsupportedOperationException(); |
37 | } |
38 | |
39 | public void setTimeSpan(double value) { |
40 | this.timeSpan = value; |
41 | } |
42 | |
43 | /* (non-Javadoc) |
44 | * @see java.lang.Object#toString() |
45 | */ |
46 | public String toString(){ |
47 | return "TimeSpanMeasurementImpl: ID="+this.getMeasurementID()+", " + |
48 | "eventTime="+this.eventTime+", "+ |
49 | "timeSpan="+this.timeSpan; |
50 | } |
51 | } |