Class TreeBuild
- java.lang.Object
-
- org.processmining.prediction.NewTreeVisualizer.TreeBuild
-
public class TreeBuild extends java.lang.ObjectThis class will parse a dotty file and construct a tree structure from it with Edge's and Node's- Version:
- $Revision: 10222 $
- Author:
- Malcolm Ware (mfw4@cs.waikato.ac.nz)
-
-
Constructor Summary
Constructors Constructor Description TreeBuild(java.util.Map<java.lang.String,java.awt.Color> map, PredictionType classType)Upon construction this will only setup the color table for quick reference of a color.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodecreate(java.io.Reader t, java.util.Map<java.lang.String,PredictionType> variableType, java.lang.Character charDelimiter, float maxValue)This will build A node structure from the dotty format passed.
-
-
-
Constructor Detail
-
TreeBuild
public TreeBuild(java.util.Map<java.lang.String,java.awt.Color> map, PredictionType classType)Upon construction this will only setup the color table for quick reference of a color.- Parameters:
map-
-
-
Method Detail
-
create
public Node create(java.io.Reader t, java.util.Map<java.lang.String,PredictionType> variableType, java.lang.Character charDelimiter, float maxValue)
This will build A node structure from the dotty format passed. Don't send a dotty format with multiple parents per node, and ensure that there is 1 and only 1 node with no parent.- Parameters:
t- The reader with the dotty string to be read.variableType-maxValue-- Returns:
- The top node of the tree structure (the last node with no parent).
-
-