|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.AbstractDBItem
de.fesenmeyer.dbnormalizer.core.FD
public class FD
This class represents a Functional Dependency (FD). A FD
consists of a LHS (left hand side) and RHS (right hand side) of
attributes. Furthermore it has a state, which specifies, if the FD has
been checked, and if it has been checked, if the associated table satisfies
the FD. This state can be get and set by means of the getFdCheckState()
and setFdCheckState(FDCheckState)
methods.
Field Summary | |
---|---|
private FDCheckState |
fdCheckState
The check state of this FD. |
private AttributeStringSet |
LHS
The LHS of this FD. |
private AttributeStringSet |
RHS
The RHS of this FD. |
Constructor Summary | |
---|---|
FD()
|
Method Summary | |
---|---|
int |
compareTo(FD fd)
Compares this FD to another FD, based on the toString() method. |
FD |
copy()
Makes a deep copy of this FD. |
FDCheckState |
getFdCheckState()
Gets the check state of this FD. |
AttributeStringSet |
getLHS()
Gets the LHS. |
AttributeStringSet |
getRHS()
Gets the RHS. |
void |
setFdCheckState(FDCheckState fdCheckState)
Sets the check state of this FD |
void |
setLHS(AttributeStringSet lhs)
Sets the LHS. |
void |
setRHS(AttributeStringSet rhs)
Sets the RHS. |
String |
toString()
Overridden method, mainly for debugging purposes. |
Methods inherited from class de.fesenmeyer.dbnormalizer.core.AbstractDBItem |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private FDCheckState fdCheckState
private AttributeStringSet LHS
private AttributeStringSet RHS
Constructor Detail |
---|
public FD()
Method Detail |
---|
public AttributeStringSet getLHS()
public void setLHS(AttributeStringSet lhs)
lhs
- the LHSpublic AttributeStringSet getRHS()
public void setRHS(AttributeStringSet rhs)
rhs
- the RHSpublic String toString()
[A,B] -> [C]
.
toString
in class AbstractDBItem
public int compareTo(FD fd)
toString()
method.
compareTo
in interface Comparable<FD>
fd
- the FD to which this FD should be comparedpublic FD copy()
public FDCheckState getFdCheckState()
public void setFdCheckState(FDCheckState fdCheckState)
fdCheckState
- the check state of this FD
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |