jInfer

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

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

public class RepairGroup
extends Object

Class representing repair group from the thesis algorithm.


Constructor Summary
RepairGroup(FD functionalDependency)
          Constructor of repair group.
 
Method Summary
 void addRepair(RepairCandidate repair)
          Add repair candidate to this group.
 void addRepairs(Collection<RepairCandidate> repairs)
          Add repair candidates to this group.
 FD getFunctionalDependency()
          Get functional dependency this repair groups is defined for.
 RepairCandidate getMinimalRepair()
          Get repair candidate with the lowest weight.
 List<RepairCandidate> getRepairs()
          Get list of all repair candidates contained in this group.
 double getWeight()
          Get weight of this repair group.
 void setWeight(double weight)
          Set weight of this repair group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepairGroup

public RepairGroup(FD functionalDependency)
Constructor of repair group. The parameter defines functional dependency for which is this group defines.

Parameters:
functionalDependency - Functional dependency for which is this group defined.
Method Detail

addRepair

public void addRepair(RepairCandidate repair)
Add repair candidate to this group.

Parameters:
repair - Repair candidates to this group.

addRepairs

public void addRepairs(Collection<RepairCandidate> repairs)
Add repair candidates to this group.

Parameters:
repairs - Collection of repair candidates to this group.

getRepairs

public List<RepairCandidate> getRepairs()
Get list of all repair candidates contained in this group.

Returns:
List of all repair candidates contained in this group.

setWeight

public void setWeight(double weight)
Set weight of this repair group.

Parameters:
weight - Weight to be set.

getWeight

public double getWeight()
Get weight of this repair group.

Returns:
Weight of this repair group

getMinimalRepair

public RepairCandidate getMinimalRepair()
Get repair candidate with the lowest weight.

Returns:
Repair candidate with the lowest weight.

getFunctionalDependency

public FD getFunctionalDependency()
Get functional dependency this repair groups is defined for.

Returns:
Functional dependency this repair groups is defined for.

jInfer

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