JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class Evolvable

java.lang.Object
  extended bygov.nasa.javaGenes.core.Evolvable
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
Chromosome, EvolvableDoubleList, Graph, PermutationEvolvable

public class Evolvable
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

objects that can evolve in a genetic software system.

See Also:
Serialized Form

Field Summary
protected  KeyCounter childMakersUsed
           
 
Constructor Summary
protected Evolvable()
          for testing only
 
Method Summary
 void addChildMakers(ChildMaker madeMe, Individual[] parents)
           
protected  Evolvable copyForEvolution()
          should be implemented by all subclasses, but isn't for all of the older code.
 double distanceFrom(Evolvable e)
          Subclasses will almost always override this.
 KeyCounter getChildMakersUsed()
           
 int getSize()
           
static Evolvable getSmallest(Evolvable[] array)
           
 void prepareForEvaluator(Parameters parameters)
          Used when special setup is needed to calculate the evaluation fitness Reporter.java does when each generation is complete.
 void stateSave(TokenizeOutput tokenizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

childMakersUsed

protected KeyCounter childMakersUsed
Constructor Detail

Evolvable

protected Evolvable()
for testing only

Method Detail

getChildMakersUsed

public KeyCounter getChildMakersUsed()

addChildMakers

public void addChildMakers(ChildMaker madeMe,
                           Individual[] parents)

stateSave

public void stateSave(TokenizeOutput tokenizer)

copyForEvolution

protected Evolvable copyForEvolution()
should be implemented by all subclasses, but isn't for all of the older code. The functionality is there but the naming is different.


getSize

public int getSize()
Returns:
the size of the object

distanceFrom

public double distanceFrom(Evolvable e)
Subclasses will almost always override this.

Returns:
the distance from Evolvable e.

prepareForEvaluator

public void prepareForEvaluator(Parameters parameters)
Used when special setup is needed to calculate the evaluation fitness Reporter.java does when each generation is complete. Originally implemented for EOSscheduling.HBSS since any rescheduling will generate a new permutation.


getSmallest

public static Evolvable getSmallest(Evolvable[] array)

JavaGenes, NASA Ames. Written largely by Al Globus