public class KD_TreeParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
KD_Tree
tree structure, starting from the root tree node.Constructor and Description |
---|
KD_TreeParser()
Create a new instance of KD_TreeParser
|
Modifier and Type | Method and Description |
---|---|
org.ai_heuristic.tree.KD_Tree |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into a KD_Tree object.
|
org.licas_xml.abs.Element |
serialize(org.ai_heuristic.tree.KD_Tree tree)
Serialize the object into an XML element.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize the object into an XML element.
|
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
serialize
in interface org.ai_heuristic.def.ParserDef
toSerialize
- the object to serialize. Of type KD_Tree
.java.lang.Exception
- any error.public org.licas_xml.abs.Element serialize(org.ai_heuristic.tree.KD_Tree tree) throws java.lang.Exception
tree
- the Tree to serialize.java.lang.Exception
- any error.public org.ai_heuristic.tree.KD_Tree parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
parse
in interface org.ai_heuristic.def.ParserDef
toParse
- the element to parse.java.lang.Exception
- any error.