|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectincognito.LatticeManager
public class LatticeManager
Constructed from a super root and the depth of quasi-identifier attributes, this class manages the generalization lattice entries.
Field Summary | |
---|---|
private int[] |
dghDepths
Depths of qi-attributes |
private LatticeEntry |
lastReturned
Value of the last entry that was returned |
private int |
nextEntryIndex
Index of the next root to be visited |
private LatticeEntry[] |
roots
List of currently unvisited roots |
private java.util.LinkedList<LatticeEntry> |
successfulEntries
List of successfully anonymized lattice entries |
Constructor Summary | |
---|---|
LatticeManager(LatticeEntry superRoot,
int[] dghDepths)
Class constructor |
Method Summary | |
---|---|
java.util.LinkedList<LatticeEntry> |
getSuccessfulEntries()
Getter for successful entries |
boolean |
hasNext()
Checks if there are more lattice entries that need visiting |
LatticeEntry |
next()
Get the next entry from the generalization lattice |
void |
setResult(boolean successFlag,
AnonRecordTable anonTable,
EquivalenceTable eqTable)
Set the anonymization result for the last lattice entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int[] dghDepths
private LatticeEntry[] roots
private int nextEntryIndex
private LatticeEntry lastReturned
private java.util.LinkedList<LatticeEntry> successfulEntries
Constructor Detail |
---|
public LatticeManager(LatticeEntry superRoot, int[] dghDepths)
superRoot
- Lattice entry whose children will be visiteddghDepths
- Maximum depth of domain generalization hierarchies of the qi-attributesMethod Detail |
---|
public boolean hasNext()
public java.util.LinkedList<LatticeEntry> getSuccessfulEntries()
public LatticeEntry next()
public void setResult(boolean successFlag, AnonRecordTable anonTable, EquivalenceTable eqTable)
successFlag
- true if the last returned entry satisfied
the privacy/anonymity requirement, false otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |