|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.umd.cs.db.xsq.BasicPDT
The BPDT class implements the Basic PDT component.
Constructor Summary | |
BasicPDT(edu.umd.cs.db.xsq.XPathNode node,
edu.umd.cs.db.xsq.PDTState start,
int parentID,
int parentResult)
Constructor. |
Method Summary | |
static int |
findLayerDifference(int lower,
int higher)
This function works only when BPDT lower is in the right tree of BPDT higher. |
static int |
findUnknownAncester(int bpdtid)
Return the unique ID of the ancestor that has the BPDT in its right subtree. |
static int |
getLayerOfBpdt(int bpdtId)
Return the layer of the BPDT that has unique ID bpdtid. |
edu.umd.cs.db.xsq.XPathNode |
getLocationStep()
Return the location step that the current BPDT is generated from. |
static java.lang.String |
getNameOfBpdt(int bpdtId)
Return a name of the BPDT in the form of "layer.seqnum". |
edu.umd.cs.db.xsq.PDTState |
getNaState()
Return the NA state of the current BPDT. |
static int |
getNumberInLayerOfBpdt(int bpdtId)
Get the seqeunce number of the bpdtid in the same layer. |
int |
getNumberOfStates()
Get number of states in the current BPDT. |
int |
getParentPDTID()
Get the unique ID of the parent BPDT. |
int |
getParentResult()
Return the result of the parent BPDT, i.e., which state the current BPDT is connected to the parent. |
int |
getPDTID()
Get the unique ID of the current BPDT. |
edu.umd.cs.db.xsq.PDTState |
getStartState()
Return the start state of the BPDT. |
java.util.Vector |
getStates()
Get all the states in the current BPDT. |
edu.umd.cs.db.xsq.PDTState |
getTrueState()
Return the TRUE state of the current BPDT. |
boolean |
isStateInBpdt(edu.umd.cs.db.xsq.PDTState state)
Determine if the state is in this BPDT. |
void |
printBpdt()
Print all the states in the BPDT. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicPDT(edu.umd.cs.db.xsq.XPathNode node, edu.umd.cs.db.xsq.PDTState start, int parentID, int parentResult)
Method Detail |
public edu.umd.cs.db.xsq.PDTState getStartState()
public int getParentResult()
public int getParentPDTID()
public int getPDTID()
public edu.umd.cs.db.xsq.XPathNode getLocationStep()
public edu.umd.cs.db.xsq.PDTState getTrueState()
public edu.umd.cs.db.xsq.PDTState getNaState()
public int getNumberOfStates()
public java.util.Vector getStates()
public boolean isStateInBpdt(edu.umd.cs.db.xsq.PDTState state)
public static int getLayerOfBpdt(int bpdtId)
public static int findUnknownAncester(int bpdtid)
public static int findLayerDifference(int lower, int higher)
public static int getNumberInLayerOfBpdt(int bpdtId)
public static java.lang.String getNameOfBpdt(int bpdtId)
public void printBpdt()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |