blob: b109446174d1b18e2b240d97d127d0ff278cd1b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package jcgp.backend.resources.parameters;
import javafx.beans.property.SimpleDoubleProperty;
public abstract class DoubleParameter extends Parameter<Number> {
public DoubleParameter(double value, String name, boolean monitor, boolean critical) {
super(name, monitor, critical);
this.valueProperty = new SimpleDoubleProperty(value);
}
public DoubleParameter(double value, String name) {
super(name, false, false);
this.valueProperty = new SimpleDoubleProperty(value);
}
@Override
public Double get() {
return super.get().doubleValue();
}
}
|