aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/parameters
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-04-01 23:00:53 +0100
committerEduardo Pedroni <ep625@york.ac.uk>2014-04-01 23:00:53 +0100
commit02fd2bc7059da416937beb1abe67e5ca60379030 (patch)
tree609341fe10aaa0f2dc45a1e72eba20bd24fb1281 /src/jcgp/parameters
parenta757deacded0d7357a9f68462d3f2051e16004ee (diff)
Settings pane now actually controls the parameters, not much left to do.
Diffstat (limited to 'src/jcgp/parameters')
-rw-r--r--src/jcgp/parameters/BooleanParameter.java32
-rw-r--r--src/jcgp/parameters/DoubleParameter.java33
-rw-r--r--src/jcgp/parameters/IntegerParameter.java33
-rw-r--r--src/jcgp/parameters/Parameter.java30
4 files changed, 0 insertions, 128 deletions
diff --git a/src/jcgp/parameters/BooleanParameter.java b/src/jcgp/parameters/BooleanParameter.java
deleted file mode 100644
index 63e9c73..0000000
--- a/src/jcgp/parameters/BooleanParameter.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package jcgp.parameters;
-
-import javafx.beans.property.SimpleBooleanProperty;
-
-public class BooleanParameter extends Parameter {
-
- private SimpleBooleanProperty value;
-
- public BooleanParameter(boolean value, String name, boolean editable, boolean hidden) {
- super(name, editable, hidden);
- this.value = new SimpleBooleanProperty(value);
- }
-
- public BooleanParameter(boolean value, String name) {
- super(name, true, false);
- this.value = new SimpleBooleanProperty(value);
- }
-
- public boolean get() {
- return value.get();
- }
-
- public void set(boolean newValue) {
- if (!value.isBound()) {
- value.set(newValue);
- }
- }
-
- public SimpleBooleanProperty valueProperty() {
- return value;
- }
-}
diff --git a/src/jcgp/parameters/DoubleParameter.java b/src/jcgp/parameters/DoubleParameter.java
deleted file mode 100644
index d555452..0000000
--- a/src/jcgp/parameters/DoubleParameter.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package jcgp.parameters;
-
-import javafx.beans.property.SimpleDoubleProperty;
-
-public class DoubleParameter extends Parameter {
-
- protected SimpleDoubleProperty value;
-
- public DoubleParameter(double value, String name, boolean editable, boolean hidden) {
- super(name, editable, hidden);
- this.value = new SimpleDoubleProperty(value);
- }
-
- public DoubleParameter(double value, String name) {
- super(name, true, false);
- this.value = new SimpleDoubleProperty(value);
- }
-
- public double get() {
- return value.get();
- }
-
- public void set(double newValue) {
- if (!value.isBound()) {
- value.set(newValue);
- }
- }
-
- public SimpleDoubleProperty valueProperty() {
- return value;
- }
-
-}
diff --git a/src/jcgp/parameters/IntegerParameter.java b/src/jcgp/parameters/IntegerParameter.java
deleted file mode 100644
index c743e97..0000000
--- a/src/jcgp/parameters/IntegerParameter.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package jcgp.parameters;
-
-import javafx.beans.property.SimpleIntegerProperty;
-
-public class IntegerParameter extends Parameter {
-
- protected SimpleIntegerProperty value;
-
- public IntegerParameter(int value, String name, boolean editable, boolean hidden) {
- super(name, editable, hidden);
- this.value = new SimpleIntegerProperty(value);
- }
-
- public IntegerParameter(int value, String name) {
- super(name, true, false);
- this.value = new SimpleIntegerProperty(value);
- }
-
- public int get() {
- return value.get();
- }
-
- public void set(int newValue) {
- if (!value.isBound()) {
- value.set(newValue);
- }
- }
-
- public SimpleIntegerProperty valueProperty() {
- return value;
- }
-
-}
diff --git a/src/jcgp/parameters/Parameter.java b/src/jcgp/parameters/Parameter.java
deleted file mode 100644
index a5ecf9e..0000000
--- a/src/jcgp/parameters/Parameter.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package jcgp.parameters;
-
-import javafx.beans.property.Property;
-
-public abstract class Parameter {
-
- protected boolean hidden = false, editable = true;
-
- protected String name;
-
- public Parameter(String name, boolean editable, boolean hidden) {
- this.name = name;
- this.hidden = hidden;
- this.editable = editable;
- }
-
- public boolean isHidden() {
- return hidden;
- }
-
- public boolean isEditable() {
- return editable;
- }
-
- public String getName() {
- return name;
- }
-
- public abstract Property<?> valueProperty();
-}