public class MetricDatasetParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
MetricDataset
object to or from XML.
Any stored value is cast only to a String, so complex objects are not included.Constructor and Description |
---|
MetricDatasetParser()
Create a new instance of MetricDatasetParser
|
Modifier and Type | Method and Description |
---|---|
org.ai_heuristic.eval.metric.MetricDataset |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into a MetricValue object.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize the object into an XML element.
|
public MetricDatasetParser()
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 MetricDataset
.java.lang.Exception
- any error.public org.ai_heuristic.eval.metric.MetricDataset 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.