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