edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils
Class BasicGraphModelMaker

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.BasicGraphModelMaker

public class BasicGraphModelMaker
extends java.lang.Object

The BasicGraphModelMaker class makes the diva.graph.basic.BasicGraphModel for the given XATTree tree. It constructs additional nodes and edges to represent the input and output streams of the query plan. All of the tree's operators and queues are stored in TreeStorage.

Author:
Maylene Waltz

Constructor Summary
BasicGraphModelMaker(GUI gui)
          Constructor associates the given gui with this model maker.
 
Method Summary
 diva.graph.basic.BasicGraphModel makeModel(XATTree tree)
          Constructs the diva.graph.basic.BasicGraphModel for the given tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphModelMaker

public BasicGraphModelMaker(GUI gui)
Constructor associates the given gui with this model maker.

Method Detail

makeModel

public diva.graph.basic.BasicGraphModel makeModel(XATTree tree)
Constructs the diva.graph.basic.BasicGraphModel for the given tree. All of the tree operators and queues are stored in TreeStorage. If the GUI is a "DISTRIBUTED" GUI, then labels are added to the nodes to display which machine the node is running on.

Parameters:
tree - edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.XATTree
Returns:
the graph model of the given tree