public class NewDottyToTree
extends java.lang.Object
| Constructor and Description |
|---|
NewDottyToTree() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
checkTime(int nrDecimals,
PredictionType classType,
java.lang.String label)
Check is value is in highest possible time format
|
java.lang.String |
convert(java.lang.String dotty,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
Parses the incoming data and writes the generated output.
|
protected java.lang.String |
convertTime(java.lang.String time,
int nrDecimals,
PredictionType classType) |
protected java.lang.String |
sanitize(java.lang.String s)
Replaces certain characters with their character entities.
|
protected void |
writeEdge(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Edge edge,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
Writes the edge as GraphML.
|
protected void |
writeFooter(java.io.BufferedWriter writer)
Writes the footer of the GraphML file.
|
protected void |
writeHeader(java.io.BufferedWriter writer)
Writes the header of the GraphML file.
|
protected void |
writeNode(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Node node,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
Writes the node as GraphML.
|
protected java.lang.String sanitize(java.lang.String s)
s - the string to processprotected java.lang.String convertTime(java.lang.String time,
int nrDecimals,
PredictionType classType)
protected java.lang.String checkTime(int nrDecimals,
PredictionType classType,
java.lang.String label)
b - nrDecimals - classType - s - the string to processprotected void writeHeader(java.io.BufferedWriter writer)
throws java.lang.Exception
writer - the writer to usejava.lang.Exception - if an error occursprotected void writeNode(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Node node,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
throws java.lang.Exception
writer - the writer to usenode - the node to write as GraphMLclassType - predictionTypes - config - nrDecimals - nullLeaves - java.lang.Exception - if an error occursprotected void writeEdge(java.io.BufferedWriter writer,
weka.gui.treevisualizer.Edge edge,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
throws java.lang.Exception
writer - the writer to useedge - the edge to writeclassType - predictionTypes - config - java.lang.Exception - if an error occursprotected void writeFooter(java.io.BufferedWriter writer)
throws java.lang.Exception
writer - the writer to usejava.lang.Exception - if an error occurspublic java.lang.String convert(java.lang.String dotty,
PredictionType classType,
java.util.HashMap<java.lang.String,PredictionType> predictionTypes,
VisConfigurables config)
throws java.lang.Exception
dotty - the graph in dotty formatclassType - predictionTypes - config - java.lang.Exception - if parsing or writing fails