71 lines
1.1 KiB
Java
71 lines
1.1 KiB
Java
package flintstones.valuation.numeric;
|
|
|
|
import flintstones.helper.validator.Validator;
|
|
|
|
public abstract class NumericIntervalarValuation extends NumericValuation {
|
|
|
|
/** The min value. */
|
|
public double _min;
|
|
|
|
/** The max value. */
|
|
public double _max;
|
|
|
|
/**
|
|
* Sets the min.
|
|
*
|
|
* @param min the new min
|
|
*/
|
|
public void setMin(double min) {
|
|
this._min = min;
|
|
}
|
|
|
|
/**
|
|
* Gets the min.
|
|
*
|
|
* @return the min
|
|
*/
|
|
public double getMin() {
|
|
return this._min;
|
|
}
|
|
|
|
/**
|
|
* Sets the max.
|
|
*
|
|
* @param max the new max
|
|
*/
|
|
public void setMax(double max) {
|
|
this._max = max;
|
|
}
|
|
|
|
/**
|
|
* Gets the max.
|
|
*
|
|
* @return the max
|
|
*/
|
|
public double getMax() {
|
|
return this._max;
|
|
}
|
|
|
|
/**
|
|
* Sets the min max.
|
|
*
|
|
* @param min the min
|
|
* @param max the max
|
|
*/
|
|
public void setMinMax(Double min, Double max) {
|
|
Validator.notNull(this.domain);
|
|
Validator.notDisorder(new double[] { min, max }, false);
|
|
|
|
this._min = min;
|
|
this._max = max;
|
|
}
|
|
|
|
|
|
@Override
|
|
public NumericValuation cloneToNormalize() {
|
|
throw new Error("Interval valuation is not normalized");
|
|
}
|
|
|
|
|
|
}
|