incognito
Class LatticeManager

java.lang.Object
  extended by incognito.LatticeManager

public class LatticeManager
extends java.lang.Object

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

dghDepths

private int[] dghDepths
Depths of qi-attributes


roots

private LatticeEntry[] roots
List of currently unvisited roots


nextEntryIndex

private int nextEntryIndex
Index of the next root to be visited


lastReturned

private LatticeEntry lastReturned
Value of the last entry that was returned


successfulEntries

private java.util.LinkedList<LatticeEntry> successfulEntries
List of successfully anonymized lattice entries

Constructor Detail

LatticeManager

public LatticeManager(LatticeEntry superRoot,
                      int[] dghDepths)
Class constructor

Parameters:
superRoot - Lattice entry whose children will be visited
dghDepths - Maximum depth of domain generalization hierarchies of the qi-attributes
Method Detail

hasNext

public boolean hasNext()
Checks if there are more lattice entries that need visiting

Returns:
true if there are more, false otherwise

getSuccessfulEntries

public java.util.LinkedList<LatticeEntry> getSuccessfulEntries()
Getter for successful entries

Returns:
list of lattice entries that map to k-anonymous views

next

public LatticeEntry next()
Get the next entry from the generalization lattice

Returns:
The next unvisited lattice entry

setResult

public void setResult(boolean successFlag,
                      AnonRecordTable anonTable,
                      EquivalenceTable eqTable)
Set the anonymization result for the last lattice entry.

Parameters:
successFlag - true if the last returned entry satisfied the privacy/anonymity requirement, false otherwise