| 1 | package de.uka.ipd.sdq.sensorframework.entities.impl; |
| 2 | |
| 3 | import de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory; |
| 4 | |
| 5 | @javax.persistence.Entity |
| 6 | public class ScalabilityMeasurementImpl extends de.uka.ipd.sdq.sensorframework.entities.base.AbstractScalabilityMeasurement { |
| 7 | |
| 8 | /** Difference up to which two values are considered as equal. |
| 9 | */ |
| 10 | public static final double EPSILON_ERROR = 1e-5; |
| 11 | |
| 12 | public ScalabilityMeasurementImpl(IDAOFactory myFactory) { |
| 13 | super(myFactory); |
| 14 | } |
| 15 | |
| 16 | /** {@inheritDoc} |
| 17 | */ |
| 18 | public void setParameters(Double[] value) { |
| 19 | //if (value < -EPSILON_ERROR) |
| 20 | // throw new RuntimeException("TimeSpan Measurements are not allowed to be smaller than 0."); |
| 21 | //if (value < 0) |
| 22 | // value = 0; |
| 23 | |
| 24 | super.setParameters(value); |
| 25 | } |
| 26 | } |