1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.sensorframework.dao.file.entities; |
5 | |
6 | import de.uka.ipd.sdq.sensorframework.entities.State; |
7 | import de.uka.ipd.sdq.sensorframework.entities.StateMeasurement; |
8 | import de.uka.ipd.sdq.sensorframework.entities.StateSensor; |
9 | |
10 | /** |
11 | * @author Ihssane El-Oudghiri |
12 | */ |
13 | public class StateMeasurementImpl extends MeasurementImpl implements |
14 | StateMeasurement { |
15 | |
16 | private StateSensor sensor; |
17 | private State state; |
18 | |
19 | public StateMeasurementImpl(long id, double eventTime, State state) { |
20 | super(id, eventTime); |
21 | this.state = state; |
22 | } |
23 | |
24 | public StateSensor getSensor() { |
25 | return sensor; |
26 | } |
27 | |
28 | public State getSensorState() { |
29 | return state; |
30 | } |
31 | |
32 | public void setSensor(StateSensor value) { |
33 | this.sensor = value; |
34 | } |
35 | |
36 | public void setSensorState(State value) { |
37 | this.state = value; |
38 | } |
39 | |
40 | } |