de.fesenmeyer.dbnormalizer.core.algorithms
Class NFDeterminationResult

java.lang.Object
  extended by de.fesenmeyer.dbnormalizer.core.algorithms.NFDeterminationResult

public class NFDeterminationResult
extends Object

Class holding the result of the normal form determination performed by the class NFDetermination.

Author:
DF
See Also:
NFDetermination

Field Summary
private  Set<AttributeStringSet> candidateKeys
          The candidate keys used for normal form determination.
private  Set<FD> fds
          The FDs used for normal form determination.
private  NormalForm nf
          The determined normal form.
private  Table table
          The table.
private  Map<NormalForm,Set<FD>> violatingFDs
          The determined violating FDs, grouped by normal form.
 
Constructor Summary
NFDeterminationResult(Set<AttributeStringSet> candidateKeys, Table table, Set<FD> fds, NormalForm nf, Map<NormalForm,Set<FD>> violatingFDs)
          Class constructor.
 
Method Summary
 Set<AttributeStringSet> getCandidateKeys()
          Gets the candidate keys used for normal form determination.
 Set<FD> getFds()
          Gets the FDs used for normal form determination.
 NormalForm getNf()
          Gets the determined normal form.
 Table getTable()
          Gets the table.
 Map<NormalForm,Set<FD>> getViolatingFDs()
          Gets the determined violating FDs, grouped by normal form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

candidateKeys

private Set<AttributeStringSet> candidateKeys
The candidate keys used for normal form determination.


table

private Table table
The table.


fds

private Set<FD> fds
The FDs used for normal form determination.


nf

private NormalForm nf
The determined normal form.


violatingFDs

private Map<NormalForm,Set<FD>> violatingFDs
The determined violating FDs, grouped by normal form.

Constructor Detail

NFDeterminationResult

public NFDeterminationResult(Set<AttributeStringSet> candidateKeys,
                             Table table,
                             Set<FD> fds,
                             NormalForm nf,
                             Map<NormalForm,Set<FD>> violatingFDs)
Class constructor.

Parameters:
candidateKeys - the candidate keys used for normal form determination
table - the table
fds - the FDs used
nf - the determined normal form
violatingFDs - the determined violating FDs, grouped by normal form
Method Detail

getCandidateKeys

public Set<AttributeStringSet> getCandidateKeys()
Gets the candidate keys used for normal form determination.

Returns:
the candidate keys

getFds

public Set<FD> getFds()
Gets the FDs used for normal form determination.

Returns:
the FDs

getNf

public NormalForm getNf()
Gets the determined normal form.

Returns:
the normal form

getTable

public Table getTable()
Gets the table.

Returns:
the table

getViolatingFDs

public Map<NormalForm,Set<FD>> getViolatingFDs()
Gets the determined violating FDs, grouped by normal form.

Returns:
the violating FDs.