1 | package de.uka.ipd.sdq.sensorframework.entities.impl; |
2 | |
3 | import java.util.Collection; |
4 | |
5 | import de.uka.ipd.sdq.sensorframework.entities.Measurement; |
6 | import de.uka.ipd.sdq.sensorframework.entities.Sensor; |
7 | |
8 | public class SensorAndMeasurements {//TODO why dow it not implement AbstractSensorAndMeasurements? |
9 | private Sensor mySensor; |
10 | private Collection<Measurement> myMeasurements; |
11 | |
12 | public SensorAndMeasurements(Sensor s, Collection<Measurement> m){//TODO checks for null-ness? |
13 | this.mySensor = s; |
14 | this.myMeasurements = m; |
15 | } |
16 | |
17 | public Sensor getSensor() { |
18 | return mySensor; |
19 | } |
20 | |
21 | public Collection<Measurement> getMeasurements() { |
22 | return myMeasurements; |
23 | } |
24 | } |