| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.sensorframework.dao.file.entities; |
| 5 | |
| 6 | import de.uka.ipd.sdq.sensorframework.dao.file.FileDAOFactory; |
| 7 | import de.uka.ipd.sdq.sensorframework.entities.TimeSpanSensor; |
| 8 | |
| 9 | /** |
| 10 | * @author Ihssane El-Oudghiri |
| 11 | * |
| 12 | */ |
| 13 | public class TimeSpanSensorImpl extends SensorImpl implements TimeSpanSensor { |
| 14 | |
| 15 | private static final long serialVersionUID = 7666935671159276065L; |
| 16 | |
| 17 | public TimeSpanSensorImpl(FileDAOFactory factory) { |
| 18 | super(factory); |
| 19 | } |
| 20 | |
| 21 | @Override |
| 22 | public boolean equals(Object obj) { |
| 23 | if (!(obj instanceof TimeSpanSensorImpl)) |
| 24 | return false; |
| 25 | TimeSpanSensorImpl s = (TimeSpanSensorImpl) obj; |
| 26 | if (!(sensorID == s.getSensorID() && sensorName.equals(s |
| 27 | .getSensorName()))) |
| 28 | return false; |
| 29 | return true; |
| 30 | } |
| 31 | |
| 32 | public void serializeChildren() { |
| 33 | // Nothing to serialize here |
| 34 | } |
| 35 | } |