package jcgp.parameters; import javafx.beans.property.SimpleDoubleProperty; public class DoubleParameter extends Parameter { public DoubleParameter(double value, String name) { super(name); this.value = new SimpleDoubleProperty(value); } public DoubleParameter(double value, String name, boolean managed, boolean hidden) { super(name, managed, hidden); this.value = new SimpleDoubleProperty(value); } @Override public Double getValue() { return ((SimpleDoubleProperty) value).get(); } @Override public SimpleDoubleProperty valueProperty() { return (SimpleDoubleProperty) value; } @Override public void setValue(Object value) { ((SimpleDoubleProperty) this.value).set((double) value); } }