com.rubecula.darwin.domain.world
Class Best_Organism

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.foundation.Best_<Organism>
          extended by com.rubecula.darwin.domain.world.Best_Organism
All Implemented Interfaces:
Best<Organism>, Valuable, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public class Best_Organism
extends Best_<Organism>

This class keeps track of the best organism, where best is defined as having the greatest fitness.

Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.foundation.Best_
LOG
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
Best_Organism(java.lang.String identifier, int generation)
           
Best_Organism(java.lang.String identifier, int generation, java.util.Collection<Organism> candidates, ProcessBest<Organism> processor)
           
Best_Organism(java.lang.String identifier, int generation, int convergence)
           
Best_Organism(java.lang.String identifier, int generation, ProcessBest<Organism> processor, int convergence)
           
Best_Organism(java.lang.String identifier, Organism best, int generation, int convergence)
           
Best_Organism(java.lang.String identifier, Organism best, int generation, ProcessBest<Organism> processor, int convergence)
           
 
Method Summary
protected  boolean isUnique(Organism candidate)
           
 void setConvergence(int convergence)
           
 
Methods inherited from class com.rubecula.darwin.foundation.Best_
getConvergence, getIdentifier, getObject, getProcessor, getValue, reset, setObject, update, update
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Best_Organism

public Best_Organism(java.lang.String identifier,
                     int generation)
Parameters:
identifier - the id of the group which "owns" the best organism.
generation - XXX

Best_Organism

public Best_Organism(java.lang.String identifier,
                     int generation,
                     java.util.Collection<Organism> candidates,
                     ProcessBest<Organism> processor)
              throws ValueException
Parameters:
identifier - the id of the group which "owns" the best organism.
generation - the current generation (ignored if less than 0)
candidates -
processor -
Throws:
ValueException

Best_Organism

public Best_Organism(java.lang.String identifier,
                     int generation,
                     int convergence)
Parameters:
identifier - the id of the group which "owns" the best organism.
generation - XXX
convergence - XXX

Best_Organism

public Best_Organism(java.lang.String identifier,
                     int generation,
                     ProcessBest<Organism> processor,
                     int convergence)
Parameters:
identifier - the id of the group which "owns" the best organism.
generation - the current generation (ignored if less than 0)
processor -
convergence - XXX

Best_Organism

public Best_Organism(java.lang.String identifier,
                     Organism best,
                     int generation,
                     int convergence)
Parameters:
identifier - the id of the group which "owns" the best organism.
best -
generation - the current generation (ignored if less than 0)
convergence - XXX

Best_Organism

public Best_Organism(java.lang.String identifier,
                     Organism best,
                     int generation,
                     ProcessBest<Organism> processor,
                     int convergence)
Parameters:
identifier - the id of the group which "owns" the best organism.
best -
generation - the current generation (ignored if less than 0)
processor -
convergence - XXX
Method Detail

setConvergence

public void setConvergence(int convergence)
Overrides:
setConvergence in class Best_<Organism>
Parameters:
convergence - the convergence to set
See Also:
Best_.setConvergence(int)

isUnique

protected boolean isUnique(Organism candidate)
Specified by:
isUnique in class Best_<Organism>
Returns:
the complement of the equals method applied to the genome of the candidate with parameter: the genome of the best object.
See Also:
Best_.isUnique(com.rubecula.darwin.foundation.ComparableValue)


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.