Package org.deidentifier.arx.gui.model
Klasse ModelNodeFilter
java.lang.Object
org.deidentifier.arx.gui.model.ModelNodeFilter
- Alle implementierten Schnittstellen:
Serializable
This class implements a filter for a generalization lattice.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungModelNodeFilter(int[] maxLevels, int maxNumNodesInitial) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAllows transformations with any score to pass the filter.voidAllows anonymous transformations to pass the filter.voidallowGeneralization(int dimension, int level) Allows transformations with certain generalization level to pass the filter.voidallowInformationLoss(double min, double max) Allows transformations with certain score to pass the filter.voidAllows non-anonymous transformations to pass the filter.voidAllows unknown transformations to pass the filter.clone()Clones the ModelNodeFilter instance.voidAllows no transformaions to pass the filter.voidFilters out anonymous transformations.voiddisallowGeneralization(int dimension, int level) Filters out transformations with certain generalization level.voidFilters out non-anonymous transformations.voidFilters out unknown transformations.getAllowedGeneralizations(int dimension) doubledoublevoidinitialize(ARXResult result, boolean localTransformation) Creates a node filter for the given result.booleanisAllowed(ARXLattice lattice, ARXLattice.ARXNode node) Returns whether the given node is allowed to pass this filter.booleanReturns setting.booleanReturns setting.booleanReturns setting.voidreset(DataHandle handle, DataDefinition definition) Resets the filter to display everything
-
Konstruktordetails
-
ModelNodeFilter
public ModelNodeFilter(int[] maxLevels, int maxNumNodesInitial) Creates a new instance.- Parameter:
maxLevels-maxNumNodesInitial-
-
-
Methodendetails
-
allowAllInformationLoss
public void allowAllInformationLoss()Allows transformations with any score to pass the filter. -
allowAnonymous
public void allowAnonymous()Allows anonymous transformations to pass the filter. -
allowGeneralization
public void allowGeneralization(int dimension, int level) Allows transformations with certain generalization level to pass the filter.- Parameter:
dimension-level-
-
allowInformationLoss
public void allowInformationLoss(double min, double max) Allows transformations with certain score to pass the filter.- Parameter:
min-max-
-
allowNonAnonymous
public void allowNonAnonymous()Allows non-anonymous transformations to pass the filter. -
allowUnknown
public void allowUnknown()Allows unknown transformations to pass the filter. -
clone
Clones the ModelNodeFilter instance. -
disallowAll
public void disallowAll()Allows no transformaions to pass the filter. -
disallowAnonymous
public void disallowAnonymous()Filters out anonymous transformations. -
disallowGeneralization
public void disallowGeneralization(int dimension, int level) Filters out transformations with certain generalization level.- Parameter:
dimension-level-
-
disallowNonAnonymous
public void disallowNonAnonymous()Filters out non-anonymous transformations. -
disallowUnknown
public void disallowUnknown()Filters out unknown transformations. -
getAllowedAnonymity
- Gibt zurück:
- the anonymity
-
getAllowedGeneralizations
- Parameter:
dimension-- Gibt zurück:
- the generalizations
-
getAllowedMaxInformationLoss
public double getAllowedMaxInformationLoss()- Gibt zurück:
- the maxInformationLoss
-
getAllowedMinInformationLoss
public double getAllowedMinInformationLoss()- Gibt zurück:
- the minInformationLoss
-
initialize
Creates a node filter for the given result.- Parameter:
result-localTransformation-
-
isAllowed
Returns whether the given node is allowed to pass this filter.- Parameter:
lattice-node-- Gibt zurück:
-
isAllowedAnonymous
public boolean isAllowedAnonymous()Returns setting.- Gibt zurück:
-
isAllowedNonAnonymous
public boolean isAllowedNonAnonymous()Returns setting.- Gibt zurück:
-
isAllowedUnknown
public boolean isAllowedUnknown()Returns setting.- Gibt zurück:
-
reset
Resets the filter to display everything- Parameter:
handle-definition-
-