com.rubecula.darwin.domain.world
Class Registry_

java.lang.Object
  extended by com.rubecula.darwin.domain.world.Registry_
All Implemented Interfaces:
Registry
Direct Known Subclasses:
Registry_None, Registry_PepperedMoth, Registry_TS

public abstract class Registry_
extends java.lang.Object
implements Registry

Author:
Robin Hillyard

Constructor Summary
protected Registry_()
          Protected constructor
 
Method Summary
protected  java.util.Map<java.lang.Object,java.lang.Integer> getOrganismFrequencyMap(java.util.Collection<Organism> organisms)
          TODO consider using FrequencyMap instead
 void registerBirths(Colony colony, java.util.Collection<Organism> neonates)
          Do nothing
 void registerDeaths(Colony colony, java.util.Collection<Organism> deaths)
          Do nothing
 void registerMarriages(Colony colony, java.util.Collection<Mating> marriages)
          Do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry_

protected Registry_()
Protected constructor

Method Detail

registerBirths

public void registerBirths(Colony colony,
                           java.util.Collection<Organism> neonates)
Do nothing

Specified by:
registerBirths in interface Registry
See Also:
Registry.registerBirths(Colony, java.util.Collection)

registerDeaths

public void registerDeaths(Colony colony,
                           java.util.Collection<Organism> deaths)
Do nothing

Specified by:
registerDeaths in interface Registry
See Also:
Registry.registerDeaths(Colony, java.util.Collection)

registerMarriages

public void registerMarriages(Colony colony,
                              java.util.Collection<Mating> marriages)
Do nothing.

Specified by:
registerMarriages in interface Registry
See Also:
Registry.registerMarriages(Colony, java.util.Collection)

getOrganismFrequencyMap

protected java.util.Map<java.lang.Object,java.lang.Integer> getOrganismFrequencyMap(java.util.Collection<Organism> organisms)
TODO consider using FrequencyMap instead

Parameters:
organisms -
Returns:
the frequency map for the Organism's phenotypes


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