|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.mff.ksi.jinfer.functionalDependencies.RXMLTree
public class RXMLTree
Class representing R-XML tree.
| Constructor Summary | |
|---|---|
RXMLTree(Document document)
Constructor of RXMLtree. |
|
| Method Summary | |
|---|---|
void |
addRepairGroup(RepairGroup repairGroup)
Associate repair group with this tree. |
void |
applyRepair(Repair repair)
Apply provided repair to this tree. |
void |
clearRepairs(RepairCandidate repair,
boolean clearRG)
Invalidate tuples which are no longer tuples, because of application of repairs. |
Document |
getDocument()
Get DOM representation of this tree. |
RepairGroup |
getMinimalRepairGroup()
Get repair group with the lowest cost. |
int |
getNewTupleID()
Get new unique tuple ID. |
Map<Node,NodeAttribute> |
getNodesMap()
Get map of nodes of this tree and its attributes. |
PathAnswer |
getPathAnswer(Path path)
Get path answer for provided path. |
PathAnswer |
getPathAnswerForCreatingTuple(Path path,
Tuple tuple)
Get path answer for provided tuple. |
PathAnswer |
getPathAnswerForTuple(Path path,
Tuple tuple,
boolean isThesis)
Get path answer for provided tuple. |
List<Path> |
getPaths()
Get list of paths defined for this tree. |
List<RepairGroup> |
getRepairGroups()
Get list of all repair groups associated with this tree. |
List<UserNodeSelection> |
getSavedUserSelections()
Get list of all saved repair candidates by the user. |
double |
getThresholdT()
Get threshold t associated with this tree. |
List<Pair<Tuple,Tuple>> |
getTuplePairs()
Get list of all pairs created from all tuples associated with this tree. |
List<Tuple> |
getTuples()
Get list of tuples associated with this tree. |
void |
invalidateSidePathAnswers(Tuple tuple)
Invalidate side answers for provided tuple. |
boolean |
isFDDefinedForTree(List<FD> functionalDependencies)
Check if provided functional dependencies can be used with this tree. |
boolean |
isInconsistent(List<FD> functionalDependencies)
Check if this tree is inconsistent agains provided functional dependencies. |
boolean |
isRGEmpty()
Check if there is any repair group associated with this tree. |
boolean |
isSatisfyingFD(FD fd)
Check if tree satisfies provided functional dependency. |
boolean |
isSatisfyingFDThesis(FD fd)
Check if tree satisfies provided functional dependency. |
boolean |
isTuplePairSatisfyingFD(Pair<Tuple,Tuple> tuplePair,
FD fd)
Check if tuple pair satisfies functional dependency. |
boolean |
isTuplePairSatisfyingFDThesis(Pair<Tuple,Tuple> tuplePair,
FD fd)
Check if tuple pair satisfies functional dependency. |
String |
pathsToString()
Get string representation of paths defined for this tree. |
void |
removeRG(RepairGroup repairGroup)
Remove provided repair group from all repair groups associated with this tree. |
void |
removeTuple(Tuple tuple)
Invalidate tuple of this tree. |
void |
saveUserSelection(RepairCandidate pickedRepair)
Save previous user selected repair candidate. |
void |
setPaths(List<Path> paths)
Set paths defined for this tree. |
void |
setThresholdT(double thresholdT)
Set threshold t to be associated with this tree. |
void |
setWeights(List<Tweight> weights)
Set weights of nodes of this tree. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RXMLTree(Document document)
document - DOM representation of XML data.| Method Detail |
|---|
public boolean isSatisfyingFD(FD fd)
throws InterruptedException
fd - Functional dependency to be check against.
InterruptedException - if user interrupts repairing.
public boolean isSatisfyingFDThesis(FD fd)
throws InterruptedException
fd - Functional dependency to be check against.
InterruptedException - if user interrupts repairing.
public boolean isTuplePairSatisfyingFDThesis(Pair<Tuple,Tuple> tuplePair,
FD fd)
tuplePair - Tuple pair to be checked.fd - Functional dependency to be ckeck against.
public boolean isTuplePairSatisfyingFD(Pair<Tuple,Tuple> tuplePair,
FD fd)
tuplePair - Tuple pair to be checked.fd - Functional dependency to be ckeck against.
public Document getDocument()
public String toString()
toString in class Objectpublic List<Path> getPaths()
public void setPaths(List<Path> paths)
paths - Paths defined for this tree.public String pathsToString()
public PathAnswer getPathAnswer(Path path)
path - Path to be the answer returned.
public PathAnswer getPathAnswerForCreatingTuple(Path path,
Tuple tuple)
path - Path to be answer returned.tuple - Tuple for which is returned the answer.
public PathAnswer getPathAnswerForTuple(Path path,
Tuple tuple,
boolean isThesis)
path - Path to be answer returned.tuple - Tuple for which is returned the answer.
public List<Tuple> getTuples()
public int getNewTupleID()
public Map<Node,NodeAttribute> getNodesMap()
public void applyRepair(Repair repair)
repair - Repair to be applied.public boolean isFDDefinedForTree(List<FD> functionalDependencies)
functionalDependencies - List of functional dependencies to be checked.
public void addRepairGroup(RepairGroup repairGroup)
repairGroup - Repair group to be associated with this tree.public List<RepairGroup> getRepairGroups()
public boolean isInconsistent(List<FD> functionalDependencies)
throws InterruptedException
functionalDependencies - List of functional dependencies to be check inconsistency.
InterruptedException - if user interrupt repairing.public RepairGroup getMinimalRepairGroup()
public void clearRepairs(RepairCandidate repair,
boolean clearRG)
repair - Repair for which are tuples checked.clearRG - flag defining if repair groups will be cleared.public void removeTuple(Tuple tuple)
public void setWeights(List<Tweight> weights)
weights - List of Tweight to be set.public void saveUserSelection(RepairCandidate pickedRepair)
pickedRepair - Repair candidate to be saved.public List<UserNodeSelection> getSavedUserSelections()
public double getThresholdT()
public void setThresholdT(double thresholdT)
thresholdT - Threshold t to be associated with this tree.
public List<Pair<Tuple,Tuple>> getTuplePairs()
throws InterruptedException
InterruptedException - if user interrupted repairing.public void invalidateSidePathAnswers(Tuple tuple)
tuple - Tuple for which side paths will be invalidated.public void removeRG(RepairGroup repairGroup)
repairGroup - Repair group to be removed.public boolean isRGEmpty()
|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||