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