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