toxTree.tree
Class Tree2PrefuseGraph

java.lang.Object
  extended by toxTree.tree.Tree2PrefuseGraph
All Implemented Interfaces:
IProcessRule

public class Tree2PrefuseGraph
extends java.lang.Object
implements IProcessRule


Field Summary
static java.lang.String FIELD_ANSWER
           
static java.lang.String FIELD_CATEGORY
           
static java.lang.String FIELD_EXPLANATION
           
static java.lang.String FIELD_ID
           
static java.lang.String FIELD_NAME
           
static java.lang.String FIELD_NODETYPE
           
static java.lang.String FIELD_RULE
           
static java.lang.String FIELD_SHORT_NAME
           
protected  prefuse.data.Graph graph
           
 
Constructor Summary
Tree2PrefuseGraph(prefuse.data.Graph graph)
           
 
Method Summary
 void done()
           
 prefuse.data.Graph getGraph()
           
 void init(IDecisionMethod method)
           
 java.lang.Object process(IDecisionMethod method, IDecisionRule rule)
           
 void setGraph(prefuse.data.Graph graph)
           
 prefuse.data.Node walkRules(IDecisionMethod tree)
           
protected  prefuse.data.Node walkRules(IDecisionMethod tree, IDecisionRule rule, java.util.ArrayList<java.lang.Integer> visited)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected prefuse.data.Graph graph

FIELD_ID

public static final java.lang.String FIELD_ID
See Also:
Constant Field Values

FIELD_SHORT_NAME

public static final java.lang.String FIELD_SHORT_NAME
See Also:
Constant Field Values

FIELD_NAME

public static final java.lang.String FIELD_NAME
See Also:
Constant Field Values

FIELD_EXPLANATION

public static final java.lang.String FIELD_EXPLANATION
See Also:
Constant Field Values

FIELD_NODETYPE

public static final java.lang.String FIELD_NODETYPE
See Also:
Constant Field Values

FIELD_CATEGORY

public static final java.lang.String FIELD_CATEGORY
See Also:
Constant Field Values

FIELD_ANSWER

public static final java.lang.String FIELD_ANSWER
See Also:
Constant Field Values

FIELD_RULE

public static final java.lang.String FIELD_RULE
See Also:
Constant Field Values
Constructor Detail

Tree2PrefuseGraph

public Tree2PrefuseGraph(prefuse.data.Graph graph)
Method Detail

done

public void done()
          throws DecisionMethodIOException
Specified by:
done in interface IProcessRule
Throws:
DecisionMethodIOException

init

public void init(IDecisionMethod method)
          throws DecisionMethodIOException
Specified by:
init in interface IProcessRule
Throws:
DecisionMethodIOException

process

public java.lang.Object process(IDecisionMethod method,
                                IDecisionRule rule)
                         throws DecisionMethodIOException
Specified by:
process in interface IProcessRule
Throws:
DecisionMethodIOException

getGraph

public prefuse.data.Graph getGraph()

setGraph

public void setGraph(prefuse.data.Graph graph)

walkRules

public prefuse.data.Node walkRules(IDecisionMethod tree)
                            throws DecisionMethodException
Throws:
DecisionMethodException

walkRules

protected prefuse.data.Node walkRules(IDecisionMethod tree,
                                      IDecisionRule rule,
                                      java.util.ArrayList<java.lang.Integer> visited)
                               throws DecisionMethodException
Throws:
DecisionMethodException


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.