public class FunctionalDependency extends java.lang.Object implements java.lang.Comparable<FunctionalDependency>
Constructor and Description |
---|
FunctionalDependency() |
Modifier and Type | Method and Description |
---|---|
void |
addX(ComparableSet<java.lang.String> attribute)
Adds an attribue set to the left-hand-side
|
void |
addX(java.lang.String attribute)
Adds a new attribue to the left-hand-side
|
void |
addY(ComparableSet<java.lang.String> attribute)
Adds an attribue set to the right-hand-side
|
void |
addY(java.lang.String attribute)
Adds an attribue to the right-hand-side
|
void |
clear()
Clears the attribues of the RHS and LHS candidates
|
int |
compareTo(FunctionalDependency o) |
ComparableSet<java.lang.String> |
getX()
Returns the left-hand-side of a functional dependency
|
ComparableSet<java.lang.String> |
getY()
Returns the right-hand-side of a functional dependency
|
java.lang.String |
toString()
Prints a functional dependency.
|
public ComparableSet<java.lang.String> getX()
public ComparableSet<java.lang.String> getY()
public void addX(java.lang.String attribute)
attribute
- - the left-hand-side atttibutepublic void addX(ComparableSet<java.lang.String> attribute)
attribute
- - the left-hand-side atttibutespublic void addY(java.lang.String attribute)
attribute
- - the right-hand-side atttibutepublic void addY(ComparableSet<java.lang.String> attribute)
attribute
- - the right-hand-side atttibutespublic int compareTo(FunctionalDependency o)
compareTo
in interface java.lang.Comparable<FunctionalDependency>
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()