org.drools.reteoo
Class ReteooDotDumpVisitor

java.lang.Object
  extended by org.drools.reteoo.ReflectiveVisitor
      extended by org.drools.reteoo.ReteooDotDumpVisitor
All Implemented Interfaces:
Visitor

public class ReteooDotDumpVisitor
extends ReflectiveVisitor

Produces a graph in GraphViz DOT format.

See Also:
http://www.research.att.com/sw/tools/graphviz/, http://www.pixelglow.com/graphviz/

Constructor Summary
ReteooDotDumpVisitor(java.io.PrintStream outPrintStream)
          Constructor.
 
Method Summary
 void visitConditionNode(org.drools.reteoo.ConditionNode node)
          ConditionNode displays its condition and tuple Declarations and then visits its TupleSink.
 void visitJoinNode(org.drools.reteoo.JoinNode node)
          JoinNode displays its common Declarations and tuple Declarations and then visits its TupleSink.
 void visitJoinNodeInput(org.drools.reteoo.JoinNodeInput node)
          JoinNodeInput displays its side (LEFT/RIGHT) and then visits its JoinNode.
 void visitNull()
          Null visitor if a NULL object gets visited.
 void visitObject(java.lang.Object object)
          Default visitor if an unknown object is visited.
 void visitObjectTypeNode(org.drools.reteoo.ObjectTypeNode node)
          ObjectTypeNode displays its objectType and then visits each of its ParameterNodes.
 void visitParameterNode(org.drools.reteoo.ParameterNode node)
          ParameterNode displays its declaration and then visits its TupleSink.
 void visitRete(org.drools.reteoo.Rete rete)
          Rete visits each of its ObjectTypeNodes.
 void visitRuleBaseImpl(org.drools.reteoo.RuleBaseImpl ruleBase)
          RuleBaseImpl visits its Rete.
 void visitTerminalNode(org.drools.reteoo.TerminalNode node)
          TerminalNode displays its rule.
 
Methods inherited from class org.drools.reteoo.ReflectiveVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReteooDotDumpVisitor

public ReteooDotDumpVisitor(java.io.PrintStream outPrintStream)
Constructor.

Method Detail

visitObject

public void visitObject(java.lang.Object object)
Default visitor if an unknown object is visited.

Overrides:
visitObject in class ReflectiveVisitor

visitNull

public void visitNull()
Null visitor if a NULL object gets visited. Unique String objects are generated to ensure every NULL object is distinct.


visitRuleBaseImpl

public void visitRuleBaseImpl(org.drools.reteoo.RuleBaseImpl ruleBase)
RuleBaseImpl visits its Rete.


visitRete

public void visitRete(org.drools.reteoo.Rete rete)
Rete visits each of its ObjectTypeNodes.


visitObjectTypeNode

public void visitObjectTypeNode(org.drools.reteoo.ObjectTypeNode node)
ObjectTypeNode displays its objectType and then visits each of its ParameterNodes.


visitParameterNode

public void visitParameterNode(org.drools.reteoo.ParameterNode node)
ParameterNode displays its declaration and then visits its TupleSink.


visitConditionNode

public void visitConditionNode(org.drools.reteoo.ConditionNode node)
ConditionNode displays its condition and tuple Declarations and then visits its TupleSink.


visitJoinNodeInput

public void visitJoinNodeInput(org.drools.reteoo.JoinNodeInput node)
JoinNodeInput displays its side (LEFT/RIGHT) and then visits its JoinNode.


visitJoinNode

public void visitJoinNode(org.drools.reteoo.JoinNode node)
JoinNode displays its common Declarations and tuple Declarations and then visits its TupleSink.


visitTerminalNode

public void visitTerminalNode(org.drools.reteoo.TerminalNode node)
TerminalNode displays its rule.