aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/parameters/BooleanParameter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/backend/parameters/BooleanParameter.java')
-rw-r--r--src/jcgp/backend/parameters/BooleanParameter.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/jcgp/backend/parameters/BooleanParameter.java b/src/jcgp/backend/parameters/BooleanParameter.java
deleted file mode 100644
index 43825be..0000000
--- a/src/jcgp/backend/parameters/BooleanParameter.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package jcgp.backend.parameters;
-
-import javafx.beans.property.SimpleBooleanProperty;
-
-public abstract class BooleanParameter extends Parameter {
-
- private SimpleBooleanProperty value;
-
- public BooleanParameter(boolean value, String name, boolean monitor, boolean critical) {
- super(name, monitor, critical);
- this.value = new SimpleBooleanProperty(value);
- }
-
- /**
- * Simple BooleanParameter constructor,
- *
- *
- * @param value
- * @param name
- */
- public BooleanParameter(boolean value, String name) {
- super(name, false, false);
- this.value = new SimpleBooleanProperty(value);
- }
-
- public boolean get() {
- return value.get();
- }
-
- public void set(boolean newValue) {
- if (!value.isBound()) {
- value.set(newValue);
- }
- }
-
- public abstract void validate(boolean newValue);
-
- public SimpleBooleanProperty valueProperty() {
- return value;
- }
-}