physis.core.nursing
Class MaxAgePerMeritNurse

java.lang.Object
  |
  +--physis.core.nursing.MaxAgePerMeritNurse
All Implemented Interfaces:
Nurse

public class MaxAgePerMeritNurse
extends java.lang.Object
implements Nurse

A Nurse which favors organisms with high merit and they're not too old.


Constructor Summary
MaxAgePerMeritNurse()
           
 
Method Summary
 void placeNewBorn(GeneticCodeTape newborn, DigitalOrganismIterator oldorgs, int inherited_length)
          A new organism should be placed somewhere in the parent's neighbourhood.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

MaxAgePerMeritNurse

public MaxAgePerMeritNurse()
Method Detail

placeNewBorn

public void placeNewBorn(GeneticCodeTape newborn,
                         DigitalOrganismIterator oldorgs,
                         int inherited_length)
A new organism should be placed somewhere in the parent's neighbourhood. The one with the max age/merit will be killed if there is no empty cell.
Specified by:
placeNewBorn in interface Nurse
Parameters:
newborn - The newly created organism.
oldorgs - The neighbourhood of the parent organism.