ac.essex.ooechs.ecj.ecj2java.example.data
Class DoubleData

java.lang.Object
  extended by ec.gp.GPData
      extended by ac.essex.ooechs.ecj.ecj2java.example.data.DoubleData
All Implemented Interfaces:
ec.Prototype, ec.Setup, java.io.Serializable, java.lang.Cloneable

public class DoubleData
extends ec.gp.GPData

Allows a double data type to be passed up and down the tree.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version, provided that any use properly credits the author. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org

Version:
1.0
Author:
Olly Oechsle, University of Essex, Date: 06-Dec-2006
See Also:
Serialized Form

Field Summary
 double x
           
 
Fields inherited from class ec.gp.GPData
P_GPDATA
 
Constructor Summary
DoubleData()
           
 
Method Summary
 ec.gp.GPData copyTo(ec.gp.GPData gpd)
           
 boolean getBoolean()
          Allows the DoubleData to handle boolean data by assuming a value of either 0 or 1.
 void setBoolean(boolean b)
          Sets the double data as a boolean value:
If the boolean is true, the value is set to 1
If the boolean is false, the value is set to 0
 
Methods inherited from class ec.gp.GPData
defaultBase, protoClone, protoCloneSimple, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x
Constructor Detail

DoubleData

public DoubleData()
Method Detail

copyTo

public ec.gp.GPData copyTo(ec.gp.GPData gpd)
Specified by:
copyTo in class ec.gp.GPData

getBoolean

public boolean getBoolean()
Allows the DoubleData to handle boolean data by assuming a value of either 0 or 1.


setBoolean

public void setBoolean(boolean b)
Sets the double data as a boolean value:
If the boolean is true, the value is set to 1
If the boolean is false, the value is set to 0