Klasse Model

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

public class Model extends Object implements Serializable
This class implements a large portion of the model used by the GUI.
Siehe auch:
  • Konstruktordetails

    • Model

      public Model(String name, String description, Locale locale)
      Creates a new instance.
      Parameter:
      name -
      description -
      locale -
  • Methodendetails

    • addAuditTrailEntry

      public void addAuditTrailEntry(ModelAuditTrailEntry entry)
      Adds an entry to the audit trail
      Parameter:
      entry -
    • createAnonymizer

      public ARXAnonymizer createAnonymizer()
      Creates an anonymizer for the current config.
      Gibt zurück:
    • createClonedConfig

      public void createClonedConfig()
      Replaces the output config with a clone of the input config.
    • createConfig

      public void createConfig()
      Creates an ARXConfiguration.
    • getAnonymizationConfiguration

      public ModelAnonymizationConfiguration getAnonymizationConfiguration()
      Returns the current anonymization configuration
      Gibt zurück:
    • getAnonymizer

      public ARXAnonymizer getAnonymizer()
      Returns the current anonymizer.
      Gibt zurück:
    • getAttributePair

      public String[] getAttributePair()
      Returns the last two selected attributes.
      Gibt zurück:
    • getAuditTrail

      public List<ModelAuditTrailEntry> getAuditTrail()
      Returns the audit trail
      Gibt zurück:
    • getBLikenessModel

      public Map<String,ModelBLikenessCriterion> getBLikenessModel()
      Returns the b-Likeness privacy model.
      Gibt zurück:
    • getCharset

      public String getCharset()
      Return charset. Returns null for projects with unknown charset, "UTF-8" else.
      Gibt zurück:
    • getClassificationModel

      public ModelClassification getClassificationModel()
      Returns the classification model
      Gibt zurück:
    • getClipboard

      public ModelClipboard getClipboard()
      Returns the clipboard.
      Gibt zurück:
    • getCSVSyntax

      public CSVSyntax getCSVSyntax()
      Gets the csv config model.
      Gibt zurück:
    • getDDisclosurePrivacyModel

      public Map<String,ModelDDisclosurePrivacyCriterion> getDDisclosurePrivacyModel()
      Returns the d-disclosure privacy model.
      Gibt zurück:
    • getDescription

      public String getDescription()
      Returns the project description.
      Gibt zurück:
    • getDifferentialPrivacyModel

      public ModelDifferentialPrivacyCriterion getDifferentialPrivacyModel()
      Returns the (e,d)-DP model.
      Gibt zurück:
    • getDPresenceModel

      public ModelDPresenceCriterion getDPresenceModel()
      Returns the d-presence model.
      Gibt zurück:
    • getGroups

      public int[] getGroups()
      Returns a list of indices of all equivalence classes.
      Gibt zurück:
    • getHeuristicSearchStepLimit

      public Integer getHeuristicSearchStepLimit()
      Gibt zurück:
      the heuristicSearchStepLimit
    • getHeuristicSearchThreshold

      public Integer getHeuristicSearchThreshold()
      Gibt zurück:
      the heuristicSearchThreshold
    • getHeuristicSearchTimeLimit

      public Integer getHeuristicSearchTimeLimit()
      Gibt zurück:
      the heuristicSearchTimeLimit
    • getHistorySize

      public int getHistorySize()
      Returns the according parameter.
      Gibt zurück:
    • getInitialNodesInViewer

      public int getInitialNodesInViewer()
      Returns an upper bound on the number of nodes that will initially be displayed in the lattice viewer.
      Gibt zurück:
    • getInputBytes

      public long getInputBytes()
      Returns the size in bytes of the input file.
      Gibt zurück:
    • getInputConfig

      public ModelConfiguration getInputConfig()
      Returns the input configuration.
      Gibt zurück:
    • getInputDefinition

      public DataDefinition getInputDefinition()
      Returns the input definition.
      Gibt zurück:
    • getInputPopulationModel

      public ARXPopulationModel getInputPopulationModel()
      Returns the input population model
      Gibt zurück:
    • getKAnonymityModel

      public ModelKAnonymityCriterion getKAnonymityModel()
      Returns the k-anonymity model.
      Gibt zurück:
    • getKMapModel

      public ModelKMapCriterion getKMapModel()
      Returns the k-map model.
      Gibt zurück:
    • getLDiversityModel

      public Map<String,ModelLDiversityCriterion> getLDiversityModel()
      Returns the l-diversity model.
      Gibt zurück:
    • getLocale

      public Locale getLocale()
      Returns the project locale.
      Gibt zurück:
    • getLocalRecodingModel

      public ModelLocalRecoding getLocalRecodingModel()
      Returns the model for local recoding
      Gibt zurück:
    • getMaximalSizeForComplexOperations

      public int getMaximalSizeForComplexOperations()
      When a dataset has more records than this threshold, visualization of statistics will be disabled.
      Gibt zurück:
    • getMaxNodesInViewer

      public int getMaxNodesInViewer()
      Returns the maximal size of a sub-lattice that will be displayed by the viewer.
      Gibt zurück:
    • getMetricConfiguration

      public MetricConfiguration getMetricConfiguration()
      Returns the configuration of the metric.
      Gibt zurück:
    • getMetricDescription

      public MetricDescription getMetricDescription()
      Returns a description of the metric.
      Gibt zurück:
    • getName

      public String getName()
      Returns the name of this project.
      Gibt zurück:
    • getNodeFilter

      public ModelNodeFilter getNodeFilter()
      Returns the current filter.
      Gibt zurück:
    • getOptimalNodeAsString

      public String getOptimalNodeAsString()
      Returns a string representation of the current optimum.
      Gibt zurück:
    • getOutput

      public DataHandle getOutput()
      Gibt zurück:
      the output
    • getOutputConfig

      public ModelConfiguration getOutputConfig()
      Returns the output config.
      Gibt zurück:
    • getOutputDefinition

      public DataDefinition getOutputDefinition()
      Returns the output definition.
      Gibt zurück:
    • getOutputNodeAsString

      public String getOutputNodeAsString()
      Returns a string representation of the currently applied transformation.
      Gibt zurück:
    • getOutputPopulationModel

      public ARXPopulationModel getOutputPopulationModel()
      Returns the output population model, if any. Null otherwise.
      Gibt zurück:
    • getOutputTransformation

      public ARXLattice.ARXNode getOutputTransformation()
      Returns the currently applied transformation.
      Gibt zurück:
    • getPath

      public String getPath()
      Returns the path of the project.
      Gibt zurück:
    • getPerspective

      public Model.Perspective getPerspective()
      Gibt zurück:
      the perspective
    • getProcessStatistics

      public ARXProcessStatistics getProcessStatistics()
      Gibt zurück:
      the optimizationStatistics
    • getQuery

      public String getQuery()
      Returns the current query.
      Gibt zurück:
    • getResult

      public ARXResult getResult()
      Returns the current result.
      Gibt zurück:
      the result
    • getRiskBasedModel

      public Set<ModelRiskBasedCriterion> getRiskBasedModel()
      Returns the risk-based model.
      Gibt zurück:
    • getRiskModel

      public ModelRisk getRiskModel()
      Returns the risk model
      Gibt zurück:
      the risk model
    • getSelectedAttribute

      public String getSelectedAttribute()
      Returns the currently selected attribute.
      Gibt zurück:
    • getSelectedClasses

      public Set<String> getSelectedClasses()
      Returns the selected classes
      Gibt zurück:
    • getSelectedClassesAsArray

      public String[] getSelectedClassesAsArray()
      Returns the selected classes, ordered by occurrence in the dataset
      Gibt zurück:
    • getSelectedClassValue

      public String getSelectedClassValue()
      Returns the currently selected class value.
      Gibt zurück:
    • getSelectedFeatures

      public Set<String> getSelectedFeatures()
      Returns the selected features
      Gibt zurück:
    • getSelectedFeaturesAsArray

      public String[] getSelectedFeaturesAsArray()
      Returns the selected features, ordered by occurrence in the dataset
      Gibt zurück:
    • getSelectedNode

      public ARXLattice.ARXNode getSelectedNode()
      Returns the selected transformation.
      Gibt zurück:
    • getSelectedQuasiIdentifiers

      public Set<String> getSelectedQuasiIdentifiers()
      Returns a set of quasi identifiers selected for risk analysis
      Gibt zurück:
    • getSeparator

      public char getSeparator()
      Returns the separator.
      Gibt zurück:
    • getSnapshotSizeDataset

      public double getSnapshotSizeDataset()
      Returns the according parameter.
      Gibt zurück:
    • getSnapshotSizeSnapshot

      public double getSnapshotSizeSnapshot()
      Returns the according parameter.
      Gibt zurück:
    • getSolutionSpaceSize

      public double getSolutionSpaceSize()
      Returns the size of the solution space for the current input parameters
      Gibt zurück:
    • getStackelbergModel

      public ModelProfitabilityCriterion getStackelbergModel()
      Returns the configuration object for the stackelberg privacy model
      Gibt zurück:
    • getSubsetOrigin

      public String getSubsetOrigin()
      Returns the origin of the subset.
      Gibt zurück:
    • getTClosenessModel

      public Map<String,ModelTClosenessCriterion> getTClosenessModel()
      Returns the t-closeness model.
      Gibt zurück:
    • getTime

      public long getTime()
      Returns the execution time of the last anonymization process.
      Gibt zurück:
    • getUseFunctionalHierarchies

      public Boolean getUseFunctionalHierarchies()
      Returns whether functional hierarchies should be used
      Gibt zurück:
    • getUseListwiseDeletion

      public Boolean getUseListwiseDeletion()
      Returns whether list-wise deletion is used for summary statistics
      Gibt zurück:
    • getViewConfig

      public ModelViewConfig getViewConfig()
      Returns the view configuration.
      Gibt zurück:
    • isDebugEnabled

      public boolean isDebugEnabled()
      Returns whether debugging is enabled.
      Gibt zurück:
    • isHelpDialogModal

      public boolean isHelpDialogModal()
      Returns whether the help dialog is modal
      Gibt zurück:
    • isModified

      public boolean isModified()
      Returns whether this project is modified.
      Gibt zurück:
    • isQuasiIdentifierSelected

      public boolean isQuasiIdentifierSelected()
      Returns whether a quasi-identifier is selected.
      Gibt zurück:
    • isSensitiveAttributeSelected

      public boolean isSensitiveAttributeSelected()
      Returns whether a sensitive attribute is selected.
      Gibt zurück:
    • isVisualizationEnabled

      public boolean isVisualizationEnabled()
      Returns whether visualization is enabled.
      Gibt zurück:
    • reset

      public void reset()
      Resets the model.
    • resetAttributePair

      public void resetAttributePair()
      Returns the last two selected attributes.
    • resetCriteria

      public void resetCriteria()
      Resets the configuration of the privacy criteria.
    • setAnonymizer

      public void setAnonymizer(ARXAnonymizer anonymizer)
      Sets the anonymizer.
      Parameter:
      anonymizer -
    • setCharset

      public void setCharset(String charset)
      Sets the charset
      Parameter:
      charset -
    • setDebugEnabled

      public void setDebugEnabled(boolean value)
      Enables debugging.
      Parameter:
      value -
    • setDescription

      public void setDescription(String description)
      Sets the project description.
      Parameter:
      description -
    • setFeaturesAndClasses

      public boolean setFeaturesAndClasses(DataDefinition definition)
      Updates features and classes to reflect the definition provided
      Parameter:
      definition -
      Gibt zurück:
      Whether an update has been performed
    • setGroups

      public void setGroups(int[] groups)
      Sets the indices of equivalence classes.
      Parameter:
      groups -
    • setHelpDialogModal

      public void setHelpDialogModal(boolean modal)
      Set whether the help dialog is modal
      Parameter:
      modal -
    • setHeuristicSearchStepLimit

      public void setHeuristicSearchStepLimit(Integer heuristicSearchStepLimit)
      Parameter:
      heuristicSearchStepLimit - the heuristicSearchStepLimit to set
    • setHeuristicSearchThreshold

      public void setHeuristicSearchThreshold(Integer heuristicSearchThreshold)
      Parameter:
      heuristicSearchThreshold - the heuristicSearchThreshold to set
    • setHeuristicSearchTimeLimit

      public void setHeuristicSearchTimeLimit(Integer heuristicSearchTimeLimit)
      Parameter:
      heuristicSearchTimeLimit - the heuristicSearchTimeLimit to set
    • setHistorySize

      public void setHistorySize(int historySize)
      Sets the according parameter.
      Parameter:
      historySize -
    • setInitialNodesInViewer

      public void setInitialNodesInViewer(int val)
      Sets the according parameter.
      Parameter:
      val -
    • setInputBytes

      public void setInputBytes(long inputBytes)
      Sets the size of the input in bytes.
      Parameter:
      inputBytes -
    • setInputConfig

      public void setInputConfig(ModelConfiguration config)
      Sets the input config.
      Parameter:
      config -
    • setLocale

      public void setLocale(Locale locale)
      Sets the project locale.
      Parameter:
      locale - Null for default locale
    • setMaximalSizeForComplexOperations

      public void setMaximalSizeForComplexOperations(int numberOfRows)
      Sets the according parameter.
      Parameter:
      numberOfRows -
    • setMaxNodesInViewer

      public void setMaxNodesInViewer(int maxNodesInViewer)
      Sets the according parameter.
      Parameter:
      maxNodesInViewer -
    • setMetricDescription

      public void setMetricDescription(MetricDescription description)
      Sets the description of the metric.
      Parameter:
      description -
    • setModified

      public void setModified()
      Marks this project as modified.
    • setName

      public void setName(String name)
      Sets the project name.
      Parameter:
      name -
    • setNodeFilter

      public void setNodeFilter(ModelNodeFilter filter)
      Sets a filter.
      Parameter:
      filter -
    • setOutput

      public void setOutput(DataHandle output, ARXLattice.ARXNode node)
      Sets the current output.
      Parameter:
      output -
      node -
    • setOutput

      public void setOutput(InputStream stream) throws ClassNotFoundException, IOException
      Sets the current output, deserialized from a project
      Parameter:
      stream -
      node -
      Löst aus:
      IOException
      ClassNotFoundException
    • setOutputConfig

      public void setOutputConfig(ModelConfiguration config)
      Sets the output config.
      Parameter:
      config -
    • setPath

      public void setPath(String path)
      Sets the project path.
      Parameter:
      path -
    • setPerspective

      public void setPerspective(Model.Perspective perspective)
      Parameter:
      perspective - the perspective to set
    • setProcessStatistics

      public void setProcessStatistics(ARXProcessStatistics optimizationStatistics)
      Parameter:
      optimizationStatistics - the optimizationStatistics to set
    • setQuery

      public void setQuery(String query)
      Sets the query.
      Parameter:
      query -
    • setResult

      public void setResult(ARXResult result)
      Sets the result.
      Parameter:
      result -
    • setSelectedAttribute

      public void setSelectedAttribute(String attribute)
      Sets the selected attribute.
      Parameter:
      attribute -
    • setSelectedClasses

      public void setSelectedClasses(Set<String> set)
      Sets a set of selected attributes
      Parameter:
      set -
    • setSelectedClassValue

      public void setSelectedClassValue(String classValue)
      Sets the selected class value.
      Parameter:
      classValue -
    • setSelectedFeatures

      public void setSelectedFeatures(Set<String> set)
      Sets a set of selected attributes
      Parameter:
      set -
    • setSelectedNode

      public void setSelectedNode(ARXLattice.ARXNode node)
      Sets the selected node.
      Parameter:
      node -
    • setSelectedQuasiIdentifiers

      public void setSelectedQuasiIdentifiers(Set<String> set)
      Sets a set of quasi identifiers selected for risk analysis
      Parameter:
      set -
    • setSnapshotSizeDataset

      public void setSnapshotSizeDataset(double snapshotSize)
      Parameter:
      snapshotSize -
    • setSnapshotSizeSnapshot

      public void setSnapshotSizeSnapshot(double snapshotSize)
      Sets the according parameter.
      Parameter:
      snapshotSize -
    • setSubsetManual

      public void setSubsetManual()
      Sets how the subset was defined.
    • setSubsetOrigin

      public void setSubsetOrigin(String origin)
      Sets how the subset was defined.
      Parameter:
      origin -
    • setTime

      public void setTime(long time)
      Sets the execution time of the last anonymization process.
      Parameter:
      time -
    • setUnmodified

      public void setUnmodified()
      Marks this model as unmodified.
    • setUseFunctionalHierarchies

      public void setUseFunctionalHierarchies(boolean useFunctionalHierarchies)
      Sets whether functional hierarchies should be used during anonymization to estimate utility
      Parameter:
      useFunctionalHierarchies -
    • setUseListwiseDeletion

      public void setUseListwiseDeletion(boolean useListwiseDeletion)
      Sets whether list-wise deletion should be used for summary statistics
      Parameter:
      useListwiseDeletion -
    • setViewConfig

      public void setViewConfig(ModelViewConfig viewConfig)
      Sets the view configuration.
      Parameter:
      viewConfig -
    • setVisualizationEnabled

      public void setVisualizationEnabled(boolean value)
      Sets visualization as enabled/disabled.
      Parameter:
      value -