edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite
Class CancelOutTraversal

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
        |
        +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
              |
              +--edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite.ReWriteTraversal
                    |
                    +--edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite.CancelOutTraversal

public class CancelOutTraversal
extends ReWriteTraversal

This Class is used to cancel out the reduncent operators by traversing the XAT.

Since:
1.0
See Also:
Serialized Form

Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite.ReWriteTraversal
DOWN, reWriteList, reWriteOrder, reWriteTree, rules, stepThrough, stepTrees, UP
 
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
stats, statsPresent
 
Constructor Summary
CancelOutTraversal(XATTree tree, ReWriteRules p1, java.util.Vector order)
          CancelOutTraversal consttructor.
CancelOutTraversal(XATTree tree, ReWriteRules p1, java.util.Vector order, boolean step)
          CancelOutTraversal consttructor.
 
Method Summary
 XATTree doCancelOut()
          CancelOut redundent operators.
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.xatrewrite.ReWriteTraversal
doPushdown, doRewrite, findNextNode, findNextNode, getAllSourceNodes, getChildren, getStepTrees, isDebug, isIsChanged, isPushedDown, isStepThrough, setDebug, setDefaultProperties, setIsChanged, setPushedDown, setStepTrees
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
addStatistic, compareTo, getStatistics, isValidStatistic, setDefaultStatistics
 
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
addProperty, getProperties, getProperty, isValidPropertyName, setNewPropertyValue, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelOutTraversal

public CancelOutTraversal(XATTree tree,
                          ReWriteRules p1,
                          java.util.Vector order)
CancelOutTraversal consttructor. Constructs a CancelOutTraversal object using XAT and Rewrite Rules and order.
Parameters:
tree - The XML Algebra Tree (XAT) going to be rewrited.
p1 - The rewrite rule categories.
order - The order of operator being considered in the rewrite rule categories.
Since:
1.0
See Also:
XATTree, ReWriteRules

CancelOutTraversal

public CancelOutTraversal(XATTree tree,
                          ReWriteRules p1,
                          java.util.Vector order,
                          boolean step)
CancelOutTraversal consttructor. Constructs a CancelOutTraversal object using XAT and Rewrite Rules and order.
Parameters:
tree - The XML Algebra Tree (XAT) going to be rewrited.
p1 - The rewrite rule categories.
order - The order of operator being considered in the rewrite rule categories.
Since:
1.0
See Also:
XATTree, ReWriteRules
Method Detail

doCancelOut

public XATTree doCancelOut()
CancelOut redundent operators.
Returns:
edu.wpi.cs.dsrg.xmldb.xat.common.treestructure.XATTree
Since:
1.0
See Also:
XATTree