diff options
Diffstat (limited to 'src/jcgp/backend/parameters/IntegerParameter.java')
-rw-r--r-- | src/jcgp/backend/parameters/IntegerParameter.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/jcgp/backend/parameters/IntegerParameter.java b/src/jcgp/backend/parameters/IntegerParameter.java deleted file mode 100644 index 68095d9..0000000 --- a/src/jcgp/backend/parameters/IntegerParameter.java +++ /dev/null @@ -1,36 +0,0 @@ -package jcgp.backend.parameters; - -import javafx.beans.property.SimpleIntegerProperty; - -public abstract class IntegerParameter extends Parameter { - - private SimpleIntegerProperty value; - - public IntegerParameter(int value, String name, boolean monitor, boolean critical) { - super(name, monitor, critical); - this.value = new SimpleIntegerProperty(value); - } - - public IntegerParameter(int value, String name) { - super(name, false, false); - this.value = new SimpleIntegerProperty(value); - } - - public int get() { - return value.get(); - } - - public void set(int newValue) { - if (!value.isBound()) { - validate(newValue); - value.set(newValue); - } - } - - public SimpleIntegerProperty valueProperty() { - return value; - } - - public abstract void validate(int newValue); - -} |