com.rubecula.darwin.domain.genetics
Class NuclearFactory
java.lang.Object
com.rubecula.darwin.domain.genetics.NuclearFactory
public final class NuclearFactory
- extends java.lang.Object
Factory Class to create Nuclear objects.
Applications can't change this class (it is final) but they can override the
methods which call these methods.
- Author:
- Robin Hillyard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
makeClone
public static Nuclear makeClone(Genome genome,
java.lang.String colonyId)
- Parameters:
genome
- colonyId
-
- Returns:
- a new
Nuclear_Clone
constructed from the genome and the
appropriate population identifier
makeNuclear
public static Nuclear makeNuclear(java.lang.Class<? extends Nuclear> clazz,
Genome genome,
java.lang.String popId)
- Parameters:
clazz
- the class of Nuclear to instantiate, which must have a
constructor of form Nuclear(EcoFactor,Object).genome
- the genomepopId
- the population identifier
- Returns:
- a newly constructed object of class
clazz
and based
on the genome and population id.
TEST
makeZygote
public static Nuclear makeZygote(Genome genome,
java.lang.String colonyId)
- Parameters:
genome
- colonyId
-
- Returns:
- a new
Nuclear_Zygote
constructed from the genome and
colonyId
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.