|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectincognito.LatticeEntry
public class LatticeEntry
This class represent a node of the generalization lattice. These nodes are represented by the amount of generalization from the original table. Original table corresponds to the root entry that has no parent, and has the root value of all 0s. All other entries will be assigned a parent, from which, based on the increment index (index of the quasi-identifier that is being generalized), the node will derive the number of generalization for each attribute. For example, the entry built by the parent 0_1_0, incremented on index 1 is 0_2_0. Similarly, 0_2_0 incremented on 2 returns the entry 0_2_1.
Field Summary | |
---|---|
AnonRecordTable |
anonTable
Anonoymized records table that corresponds to this entry (filled in if successful) |
EquivalenceTable |
eqTable
Equivalence table that corresponds to this entry (filled in if successful) |
int |
incIndex
Index of the qi-attribute that is to be generalized |
private int[] |
root
Number of generalizations for each qi-attribute (size = number of qi-attributes |
Constructor Summary | |
---|---|
LatticeEntry(int[] root)
Class constructor for the superroot (i.e., entry of the original table). |
|
LatticeEntry(LatticeEntry parent,
int incIndex)
Class constructor for intermediate nodes of the generalization lattice |
Method Summary | |
---|---|
boolean |
generalizesTo(LatticeEntry that)
Checks if this lattice entry generalizes to that lattice entry. |
int |
heightAt(int index)
Get the number of generalizations on the quasi-identifier at index |
java.lang.String |
parentsName()
Get the string representation of this entry's parent |
void |
setTables(AnonRecordTable anonTable,
EquivalenceTable eqTable)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int incIndex
private int[] root
public AnonRecordTable anonTable
public EquivalenceTable eqTable
Constructor Detail |
---|
public LatticeEntry(int[] root)
root
- Integer array of all 0s (size = number of qi-attributes)public LatticeEntry(LatticeEntry parent, int incIndex)
parent
- The entry from which this entry is to be derivedincIndex
- Index of the qi-attribute that is to be generalizedMethod Detail |
---|
public boolean generalizesTo(LatticeEntry that)
that
- Another lattice entry
public int heightAt(int index)
index
- The index of a quasi-identifier (larger than 0,
less than the number of quasi-identifiers)
public java.lang.String parentsName()
public void setTables(AnonRecordTable anonTable, EquivalenceTable eqTable)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |