physis.core.nursing
Class OldestNurse

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

public class OldestNurse
extends java.lang.Object
implements Nurse

A Nurse which kills the oldest organism in the neighbourhood if there's no empty cell.


Constructor Summary
OldestNurse()
           
 
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

OldestNurse

public OldestNurse()
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 oldest will be killed.
Specified by:
placeNewBorn in interface Nurse
Parameters:
newborn - The newly created organism.
oldorgs - The neighbourhood of the parent organism.