public class ModelNodeFilter
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ModelNodeFilter(int[] maxLevels,
int maxNumNodesInitial)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
allowAllInformationLoss()
Allows transformations with any score to pass the filter.
|
void |
allowAnonymous()
Allows anonymous transformations to pass the filter.
|
void |
allowGeneralization(int dimension,
int level)
Allows transformations with certain generalization level to pass the filter.
|
void |
allowInformationLoss(double min,
double max)
Allows transformations with certain score to pass the filter.
|
void |
allowNonAnonymous()
Allows non-anonymous transformations to pass the filter.
|
void |
allowUnknown()
Allows unknown transformations to pass the filter.
|
ModelNodeFilter |
clone()
Clones the ModelNodeFilter instance.
|
void |
disallowAll()
Allows no transformaions to pass the filter.
|
void |
disallowAnonymous()
Filters out anonymous transformations.
|
void |
disallowGeneralization(int dimension,
int level)
Filters out transformations with certain generalization level.
|
void |
disallowNonAnonymous()
Filters out non-anonymous transformations.
|
void |
disallowUnknown()
Filters out unknown transformations.
|
java.util.Set<ARXLattice.Anonymity> |
getAllowedAnonymity() |
java.util.Set<java.lang.Integer> |
getAllowedGeneralizations(int dimension) |
double |
getAllowedMaxInformationLoss() |
double |
getAllowedMinInformationLoss() |
void |
initialize(ARXResult result,
boolean localTransformation)
Creates a node filter for the given result.
|
boolean |
isAllowed(ARXLattice lattice,
ARXLattice.ARXNode node)
Returns whether the given node is allowed to pass this filter.
|
boolean |
isAllowedAnonymous()
Returns setting.
|
boolean |
isAllowedNonAnonymous()
Returns setting.
|
boolean |
isAllowedUnknown()
Returns setting.
|
void |
reset(DataHandle handle,
DataDefinition definition)
Resets the filter to display everything
|
public ModelNodeFilter(int[] maxLevels, int maxNumNodesInitial)
maxLevels
- maxNumNodesInitial
- public void allowAllInformationLoss()
public void allowAnonymous()
public void allowGeneralization(int dimension, int level)
dimension
- level
- public void allowInformationLoss(double min, double max)
min
- max
- public void allowNonAnonymous()
public void allowUnknown()
public ModelNodeFilter clone()
clone
in class java.lang.Object
public void disallowAll()
public void disallowAnonymous()
public void disallowGeneralization(int dimension, int level)
dimension
- level
- public void disallowNonAnonymous()
public void disallowUnknown()
public java.util.Set<ARXLattice.Anonymity> getAllowedAnonymity()
public java.util.Set<java.lang.Integer> getAllowedGeneralizations(int dimension)
dimension
- public double getAllowedMaxInformationLoss()
public double getAllowedMinInformationLoss()
public void initialize(ARXResult result, boolean localTransformation)
result
- localTransformation
- public boolean isAllowed(ARXLattice lattice, ARXLattice.ARXNode node)
lattice
- node
- public boolean isAllowedAnonymous()
public boolean isAllowedNonAnonymous()
public boolean isAllowedUnknown()
public void reset(DataHandle handle, DataDefinition definition)
handle
- definition
-