com.anji.integration
Class Generation

java.lang.Object
  extended bycom.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

Field Summary
static java.lang.String GENERATION_TAG
          XML base tag
 
Constructor Summary
Generation(Genotype aGenotype, long anId)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getXmld()
           
 java.lang.String getXmlRootTag()
           
 int hashCode()
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATION_TAG

public static final java.lang.String GENERATION_TAG
XML base tag

See Also:
Constant Field Values
Constructor Detail

Generation

public Generation(Genotype aGenotype,
                  long anId)
Parameters:
aGenotype - chromosomes from this object make up generation.
anId - of generation
Method Detail

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()