com.anji.integration
Class Generation
java.lang.Object
com.anji.integration.Generation
- All Implemented Interfaces:
- XmlPersistable
- public class Generation
- extends java.lang.Object
- implements XmlPersistable
Converts generation data between Genotype
and XML.
- Author:
- Philip Tucker
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
GENERATION_TAG
public static final java.lang.String GENERATION_TAG
- XML base tag
- See Also:
- Constant Field Values
Generation
public Generation(Genotype aGenotype,
long anId)
- Parameters:
aGenotype
- chromosomes from this object make up generation.anId
- of generation
hashCode
public int hashCode()
- See Also:
Object.hashCode()
equals
public boolean equals(java.lang.Object o)
- See Also:
Object.equals(java.lang.Object)
toXml
public java.lang.String toXml()
- Specified by:
toXml
in interface XmlPersistable
- Returns:
- XML String representation of this object
- See Also:
XmlPersistable.toXml()
getXmlRootTag
public java.lang.String getXmlRootTag()
- Specified by:
getXmlRootTag
in interface XmlPersistable
- Returns:
- root tag
- See Also:
XmlPersistable.getXmlRootTag()
getXmld
public java.lang.String getXmld()
- Specified by:
getXmld
in interface XmlPersistable
- Returns:
- id
- See Also:
XmlPersistable.getXmld()