Klasse ModelNodeFilter

java.lang.Object
org.deidentifier.arx.gui.model.ModelNodeFilter
Alle implementierten Schnittstellen:
Serializable

public class ModelNodeFilter extends Object implements Serializable
This class implements a filter for a generalization lattice.
Siehe auch:
  • 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

      public ModelNodeFilter clone()
      Clones the ModelNodeFilter instance.
      Setzt außer Kraft:
      clone in Klasse Object
    • 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

      public Set<ARXLattice.Anonymity> getAllowedAnonymity()
      Gibt zurück:
      the anonymity
    • getAllowedGeneralizations

      public Set<Integer> getAllowedGeneralizations(int dimension)
      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

      public void initialize(ARXResult result, boolean localTransformation)
      Creates a node filter for the given result.
      Parameter:
      result -
      localTransformation -
    • isAllowed

      public boolean isAllowed(ARXLattice lattice, ARXLattice.ARXNode node)
      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

      public void reset(DataHandle handle, DataDefinition definition)
      Resets the filter to display everything
      Parameter:
      handle -
      definition -