com.anji.integration
Class XmlPersistableAllele

java.lang.Object
  extended bycom.anji.integration.XmlPersistableAllele
All Implemented Interfaces:
XmlPersistable

public class XmlPersistableAllele
extends java.lang.Object
implements XmlPersistable

Author:
Philip Tucker

Field Summary
static java.lang.String CONN_XML_TAG
          connection XML tag
static java.lang.String NEURON_XML_TAG
          neuron XML tag
 
Constructor Summary
XmlPersistableAllele(Allele aAllele)
          ctor
 
Method Summary
static ConnectionAllele connectionFromXml(org.w3c.dom.Node node)
          Convert from XML to ConnectionGene object
 java.lang.String getXmld()
           
 java.lang.String getXmlRootTag()
           
static NeuronAllele neuronFromXml(org.w3c.dom.Node node)
          Convert from XML to NeuronGene object
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEURON_XML_TAG

public static final java.lang.String NEURON_XML_TAG
neuron XML tag

See Also:
Constant Field Values

CONN_XML_TAG

public static final java.lang.String CONN_XML_TAG
connection XML tag

See Also:
Constant Field Values
Constructor Detail

XmlPersistableAllele

public XmlPersistableAllele(Allele aAllele)
ctor

Parameters:
aAllele -
Method Detail

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

neuronFromXml

public static NeuronAllele neuronFromXml(org.w3c.dom.Node node)
                                  throws java.lang.IllegalArgumentException
Convert from XML to NeuronGene object

Parameters:
node -
Returns:
NeuronAllele constructed from XML node
Throws:
java.lang.IllegalArgumentException

connectionFromXml

public static ConnectionAllele connectionFromXml(org.w3c.dom.Node node)
                                          throws java.lang.IllegalArgumentException
Convert from XML to ConnectionGene object

Parameters:
node -
Returns:
ConnectionAllele constructed from XML node
Throws:
java.lang.IllegalArgumentException