JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class EvolvableDoubleList

java.lang.Object
  extended bygov.nasa.javaGenes.core.Evolvable
      extended bygov.nasa.javaGenes.evolvableDoubleList.EvolvableDoubleList
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class EvolvableDoubleList
extends Evolvable

See Also:
Serialized Form

Field Summary
protected  ExtendedVector list
           
 
Fields inherited from class gov.nasa.javaGenes.core.Evolvable
childMakersUsed
 
Constructor Summary
EvolvableDoubleList()
           
EvolvableDoubleList(double[] array)
           
EvolvableDoubleList(double[] array, double divideArrayBy)
          used for testing
EvolvableDoubleList(int length)
           
EvolvableDoubleList(int length, double value)
          used for testing
 
Method Summary
 void addDouble(EvolvableDouble d)
           
 void addDoubleValue(double d)
           
 Evolvable copyForEvolution()
          should be implemented by all subclasses, but isn't for all of the older code.
 EvolvableDoubleList copyForEvolution(EvolvableDoubleList empty)
           
 EvolvableDouble getDouble(int index)
           
 EvolvableDouble getDoubleModulo(int index)
           
 double getDoubleValue(int index)
           
 double getDoubleValueModulo(int index)
           
 int getLastIndex()
           
 int getSize()
           
 void insertAfter(int index, EvolvableDouble[] toInsert)
           
 void insertBefore(int index, EvolvableDouble[] toInsert)
           
 double interpolateInto(int index, DoubleInterval interval)
           
 boolean isEqual(EvolvableDoubleList other)
           
 void remove(EvolvableDouble d)
           
 void remove(int index)
           
 void removeAll()
           
 void setDoubleValue(int index, double value)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.core.Evolvable
addChildMakers, distanceFrom, getChildMakersUsed, getSmallest, prepareForEvaluator, stateSave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected ExtendedVector list
Constructor Detail

EvolvableDoubleList

public EvolvableDoubleList()

EvolvableDoubleList

public EvolvableDoubleList(int length)

EvolvableDoubleList

public EvolvableDoubleList(int length,
                           double value)
used for testing


EvolvableDoubleList

public EvolvableDoubleList(double[] array)

EvolvableDoubleList

public EvolvableDoubleList(double[] array,
                           double divideArrayBy)
used for testing

Method Detail

removeAll

public void removeAll()

remove

public void remove(int index)

remove

public void remove(EvolvableDouble d)

insertBefore

public void insertBefore(int index,
                         EvolvableDouble[] toInsert)

insertAfter

public void insertAfter(int index,
                        EvolvableDouble[] toInsert)

addDoubleValue

public void addDoubleValue(double d)

setDoubleValue

public void setDoubleValue(int index,
                           double value)

addDouble

public void addDouble(EvolvableDouble d)

getDouble

public EvolvableDouble getDouble(int index)

getDoubleValue

public double getDoubleValue(int index)

getDoubleModulo

public EvolvableDouble getDoubleModulo(int index)

interpolateInto

public double interpolateInto(int index,
                              DoubleInterval interval)

getDoubleValueModulo

public double getDoubleValueModulo(int index)

getSize

public int getSize()
Overrides:
getSize in class Evolvable
Returns:
the size of the object

getLastIndex

public int getLastIndex()

copyForEvolution

public Evolvable copyForEvolution()
Description copied from class: Evolvable
should be implemented by all subclasses, but isn't for all of the older code. The functionality is there but the naming is different.

Overrides:
copyForEvolution in class Evolvable

copyForEvolution

public EvolvableDoubleList copyForEvolution(EvolvableDoubleList empty)

isEqual

public boolean isEqual(EvolvableDoubleList other)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus