public class NodeStatsParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
NodeStats object to or from XML.
This stores some stats for a balanced tree node, for example.| Constructor and Description |
|---|
NodeStatsParser()
Create a new instance of NodeStatsParser
|
| Modifier and Type | Method and Description |
|---|---|
org.ai_heuristic.tree.NodeStats |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into a NodeStats object.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize the object into an XML element.
|
public NodeStatsParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize)
throws java.lang.Exception
serialize in interface org.ai_heuristic.def.ParserDeftoSerialize - the object to serialize. Of type NodeStats.java.lang.Exception - any error.public org.ai_heuristic.tree.NodeStats parse(org.licas_xml.abs.Element toParse)
throws java.lang.Exception
parse in interface org.ai_heuristic.def.ParserDeftoParse - the element to parse.java.lang.Exception - any error.