jInfer

cz.cuni.mff.ksi.jinfer.functionalDependencies.newRepairer
Class UserNodeSelection

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.functionalDependencies.newRepairer.UserNodeSelection

public class UserNodeSelection
extends Object

Class representing the previous repair candidate selected by the user.


Constructor Summary
UserNodeSelection(RepairCandidate pickedRepair)
          Constructor creating previous selection.
 
Method Summary
 boolean existSubset(RepairCandidate repair, double thresholdT)
          Check if this selection contains subset of paths modifying the same nodes as provided candidate.
 Collection<String> getNodePaths()
          Get paths of all nodes modified by this selection.
 int getNodeSize()
          Get number of nodes this selection modifies.
 boolean isUsingSameOperation(RepairCandidate repair)
          Check if the canidate pick by this selection use the same repair operation as provided candidate.
 boolean repairsSameFD(RepairCandidate repair)
          Check if the canidate pick by this selection repairs the same functional dependency as provided candidate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserNodeSelection

public UserNodeSelection(RepairCandidate pickedRepair)
Constructor creating previous selection.

Parameters:
pickedRepair - Repair candidate that was picked by the user.
Method Detail

repairsSameFD

public boolean repairsSameFD(RepairCandidate repair)
Check if the canidate pick by this selection repairs the same functional dependency as provided candidate.

Parameters:
repair - Repair candidate to be checked.
Returns:
true if this selection repairs the same functional dependency as provided candidate.

isUsingSameOperation

public boolean isUsingSameOperation(RepairCandidate repair)
Check if the canidate pick by this selection use the same repair operation as provided candidate.

Parameters:
repair - Repair candidate to be checked.
Returns:
true if this selection repairs use the same repair operation as provided candidate.

getNodeSize

public int getNodeSize()
Get number of nodes this selection modifies.

Returns:
Number of nodes this selection modifies.

getNodePaths

public Collection<String> getNodePaths()
Get paths of all nodes modified by this selection.

Returns:
Collection of paths of all nodes modified by this selection.

existSubset

public boolean existSubset(RepairCandidate repair,
                           double thresholdT)
Check if this selection contains subset of paths modifying the same nodes as provided candidate.

Parameters:
repair - Repair candidate to be checked.
thresholdT - Threshold t modifying required amount of the size of subset.
Returns:
true if if this selection contains subset of paths modifying the same nodes as provided candidate.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011