public class Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
id
The id.
|
static int |
PROPERTY_ANONYMOUS
All privacy criteria are fulfilled.
|
static int |
PROPERTY_CHECKED
The transformation has been checked explicitly.
|
static int |
PROPERTY_EVENT_FIRED
We have already fired an event for this node.
|
static int |
PROPERTY_FORCE_SNAPSHOT
A snapshot for this transformation must be created if it fits the size limits, regardless of whether it triggers the storage condition.
|
static int |
PROPERTY_INSUFFICIENT_UTILITY
The transformation results in insufficient utility.
|
static int |
PROPERTY_K_ANONYMOUS
A k-anonymity sub-criterion is fulfilled.
|
static int |
PROPERTY_NOT_ANONYMOUS
Not all privacy criteria are fulfilled.
|
static int |
PROPERTY_NOT_K_ANONYMOUS
A k-anonymity sub-criterion is not fulfilled.
|
static int |
PROPERTY_SUCCESSORS_PRUNED
Marks nodes for which the search algorithm guarantees to never check any of its successors.
|
static int |
PROPERTY_VISITED
This node has already been visited during the second phase.
|
Constructor and Description |
---|
Node(int id)
Instantiates a new node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getData()
Associated data.
|
InformationLoss<?> |
getInformationLoss()
Returns the information loss.
|
int |
getLevel()
Returns the level.
|
InformationLoss<?> |
getLowerBound() |
Node[] |
getPredecessors()
Returns the predecessors.
|
Node[] |
getSuccessors()
Returns the successors.
|
int[] |
getTransformation()
Returns the transformation.
|
int |
hashCode() |
boolean |
hasProperty(int property)
Returns whether the node has the given property.
|
void |
setData(java.lang.Object data)
Associated data.
|
protected void |
setInformationLoss(InformationLoss<?> informationLoss)
Sets the information loss.
|
protected void |
setLowerBound(InformationLoss<?> lowerBound)
Sets the information loss.
|
protected void |
setPredecessors(Node[] nodes)
Sets the predecessors.
|
protected void |
setProperty(int property)
Sets the given property.
|
protected void |
setSuccessors(Node[] nodes)
Sets the successors.
|
void |
setTransformation(int[] transformation,
int level)
Sets the transformation.
|
public static final int PROPERTY_ANONYMOUS
public static final int PROPERTY_NOT_ANONYMOUS
public static final int PROPERTY_K_ANONYMOUS
public static final int PROPERTY_NOT_K_ANONYMOUS
public static final int PROPERTY_INSUFFICIENT_UTILITY
public static final int PROPERTY_CHECKED
public static final int PROPERTY_FORCE_SNAPSHOT
public static final int PROPERTY_VISITED
public static final int PROPERTY_SUCCESSORS_PRUNED
public static final int PROPERTY_EVENT_FIRED
public final int id
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object getData()
public InformationLoss<?> getInformationLoss()
public int getLevel()
public InformationLoss<?> getLowerBound()
public Node[] getPredecessors()
public Node[] getSuccessors()
public int[] getTransformation()
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasProperty(int property)
property
- public void setData(java.lang.Object data)
data
- public void setTransformation(int[] transformation, int level)
transformation
- level
- protected void setInformationLoss(InformationLoss<?> informationLoss)
informationLoss
- protected void setLowerBound(InformationLoss<?> lowerBound)
lowerBound
- protected void setPredecessors(Node[] nodes)
nodes
- protected void setProperty(int property)
property
- protected void setSuccessors(Node[] nodes)
nodes
-