|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.environment.Phenome_
public abstract class Phenome_
Abstract class defining base methods and fields for implementations of
Phenome
interface.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
The logger for this class. |
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 | |
---|---|
protected |
Phenome_(FitnessEngine fitnessFunction)
This constructs a new (empty) Phenome belonging to a Taxon. |
Method Summary | |
---|---|
int |
addCharacter(Pharacter character)
Add a character to this phenome. |
boolean |
equals(java.lang.Object obj)
|
Pharacter |
getCharacter(java.lang.String id)
Get the character whose identifier matches id . |
java.util.Collection<java.lang.String> |
getCharacterKeys()
|
java.util.Collection<Pharacter> |
getCharacters()
|
java.lang.Object |
getData()
XXX |
FitnessEngine |
getFitnessEngine()
XXX |
int |
hashCode()
|
void |
setCharacters(java.util.Collection<? extends Pharacter> characters)
Set the phenotypic characters, usually by reflection/dependeny injection. |
void |
setData(java.lang.Object data)
XXX |
int |
size()
|
Methods inherited from class net.sf.tostring0.AToString |
---|
toString, toString, toStringBrief, toStringId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
protected Phenome_(FitnessEngine fitnessFunction)
fitnessFunction
- the implementer of FitnessEngine which evaluates the fintness
of a phenome for an environemnt.Method Detail |
---|
public int addCharacter(Pharacter character)
Phenome
addCharacter
in interface Phenome
Phenome.addCharacter(com.rubecula.darwin.domain.helper.Pharacter)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public Pharacter getCharacter(java.lang.String id)
id
.
getCharacter
in interface Phenome
Phenome.getCharacter(java.lang.String)
public java.util.Collection<java.lang.String> getCharacterKeys()
getCharacterKeys
in interface Phenome
public java.util.Collection<Pharacter> getCharacters()
getCharacters
in interface Phenome
public java.lang.Object getData()
getData
in interface Phenome
Phenome.getData()
public FitnessEngine getFitnessEngine()
getFitnessEngine
in interface Phenome
Phenome.getFitnessEngine()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setCharacters(java.util.Collection<? extends Pharacter> characters)
characters
- public void setData(java.lang.Object data)
setData
in interface Phenome
data
- application-specific data.Phenome.setData(java.lang.Object)
public int size()
size
in interface Phenome
Phenome.size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |