Package org.deidentifier.arx.gui.model
Klasse Model
java.lang.Object
org.deidentifier.arx.gui.model.Model
- Alle implementierten Schnittstellen:
Serializable
This class implements a large portion of the model used by the GUI.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumThe currently selected perspective -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdds an entry to the audit trailCreates an anonymizer for the current config.voidReplaces the output config with a clone of the input config.voidCreates an ARXConfiguration.Returns the current anonymization configurationReturns the current anonymizer.String[]Returns the last two selected attributes.Returns the audit trailReturns the b-Likeness privacy model.Return charset.Returns the classification modelReturns the clipboard.Gets the csv config model.Returns the d-disclosure privacy model.Returns the project description.Returns the (e,d)-DP model.Returns the d-presence model.int[]Returns a list of indices of all equivalence classes.intReturns the according parameter.intReturns an upper bound on the number of nodes that will initially be displayed in the lattice viewer.longReturns the size in bytes of the input file.Returns the input configuration.Returns the input definition.Returns the input population modelReturns the k-anonymity model.Returns the k-map model.Returns the l-diversity model.Returns the project locale.Returns the model for local recodingintWhen a dataset has more records than this threshold, visualization of statistics will be disabled.intReturns the maximal size of a sub-lattice that will be displayed by the viewer.Returns the configuration of the metric.Returns a description of the metric.getName()Returns the name of this project.Returns the current filter.Returns a string representation of the current optimum.Returns the output config.Returns the output definition.Returns a string representation of the currently applied transformation.Returns the output population model, if any.Returns the currently applied transformation.getPath()Returns the path of the project.getQuery()Returns the current query.Returns the current result.Returns the risk-based model.Returns the risk modelReturns the currently selected attribute.Returns the selected classesString[]Returns the selected classes, ordered by occurrence in the datasetReturns the currently selected class value.Returns the selected featuresString[]Returns the selected features, ordered by occurrence in the datasetReturns the selected transformation.Returns a set of quasi identifiers selected for risk analysischarReturns the separator.doubleReturns the according parameter.doubleReturns the according parameter.doubleReturns the size of the solution space for the current input parametersReturns the configuration object for the stackelberg privacy modelReturns the origin of the subset.Returns the t-closeness model.longgetTime()Returns the execution time of the last anonymization process.Returns whether functional hierarchies should be usedReturns whether list-wise deletion is used for summary statisticsReturns the view configuration.booleanReturns whether debugging is enabled.booleanReturns whether the help dialog is modalbooleanReturns whether this project is modified.booleanReturns whether a quasi-identifier is selected.booleanReturns whether a sensitive attribute is selected.booleanReturns whether visualization is enabled.voidreset()Resets the model.voidReturns the last two selected attributes.voidResets the configuration of the privacy criteria.voidsetAnonymizer(ARXAnonymizer anonymizer) Sets the anonymizer.voidsetCharset(String charset) Sets the charsetvoidsetDebugEnabled(boolean value) Enables debugging.voidsetDescription(String description) Sets the project description.booleansetFeaturesAndClasses(DataDefinition definition) Updates features and classes to reflect the definition providedvoidsetGroups(int[] groups) Sets the indices of equivalence classes.voidsetHelpDialogModal(boolean modal) Set whether the help dialog is modalvoidsetHeuristicSearchStepLimit(Integer heuristicSearchStepLimit) voidsetHeuristicSearchThreshold(Integer heuristicSearchThreshold) voidsetHeuristicSearchTimeLimit(Integer heuristicSearchTimeLimit) voidsetHistorySize(int historySize) Sets the according parameter.voidsetInitialNodesInViewer(int val) Sets the according parameter.voidsetInputBytes(long inputBytes) Sets the size of the input in bytes.voidsetInputConfig(ModelConfiguration config) Sets the input config.voidSets the project locale.voidsetMaximalSizeForComplexOperations(int numberOfRows) Sets the according parameter.voidsetMaxNodesInViewer(int maxNodesInViewer) Sets the according parameter.voidsetMetricDescription(MetricDescription description) Sets the description of the metric.voidMarks this project as modified.voidSets the project name.voidsetNodeFilter(ModelNodeFilter filter) Sets a filter.voidsetOutput(InputStream stream) Sets the current output, deserialized from a projectvoidsetOutput(DataHandle output, ARXLattice.ARXNode node) Sets the current output.voidsetOutputConfig(ModelConfiguration config) Sets the output config.voidSets the project path.voidsetPerspective(Model.Perspective perspective) voidsetProcessStatistics(ARXProcessStatistics optimizationStatistics) voidSets the query.voidSets the result.voidsetSelectedAttribute(String attribute) Sets the selected attribute.voidsetSelectedClasses(Set<String> set) Sets a set of selected attributesvoidsetSelectedClassValue(String classValue) Sets the selected class value.voidsetSelectedFeatures(Set<String> set) Sets a set of selected attributesvoidSets the selected node.voidSets a set of quasi identifiers selected for risk analysisvoidsetSnapshotSizeDataset(double snapshotSize) voidsetSnapshotSizeSnapshot(double snapshotSize) Sets the according parameter.voidSets how the subset was defined.voidsetSubsetOrigin(String origin) Sets how the subset was defined.voidsetTime(long time) Sets the execution time of the last anonymization process.voidMarks this model as unmodified.voidsetUseFunctionalHierarchies(boolean useFunctionalHierarchies) Sets whether functional hierarchies should be used during anonymization to estimate utilityvoidsetUseListwiseDeletion(boolean useListwiseDeletion) Sets whether list-wise deletion should be used for summary statisticsvoidsetViewConfig(ModelViewConfig viewConfig) Sets the view configuration.voidsetVisualizationEnabled(boolean value) Sets visualization as enabled/disabled.
-
Konstruktordetails
-
Model
Creates a new instance.- Parameter:
name-description-locale-
-
-
Methodendetails
-
addAuditTrailEntry
Adds an entry to the audit trail- Parameter:
entry-
-
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
Returns the current anonymization configuration- Gibt zurück:
-
getAnonymizer
Returns the current anonymizer.- Gibt zurück:
-
getAttributePair
Returns the last two selected attributes.- Gibt zurück:
-
getAuditTrail
Returns the audit trail- Gibt zurück:
-
getBLikenessModel
Returns the b-Likeness privacy model.- Gibt zurück:
-
getCharset
Return charset. Returnsnullfor projects with unknown charset, "UTF-8" else.- Gibt zurück:
-
getClassificationModel
Returns the classification model- Gibt zurück:
-
getClipboard
Returns the clipboard.- Gibt zurück:
-
getCSVSyntax
Gets the csv config model.- Gibt zurück:
-
getDDisclosurePrivacyModel
Returns the d-disclosure privacy model.- Gibt zurück:
-
getDescription
Returns the project description.- Gibt zurück:
-
getDifferentialPrivacyModel
Returns the (e,d)-DP model.- Gibt zurück:
-
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
- Gibt zurück:
- the heuristicSearchStepLimit
-
getHeuristicSearchThreshold
- Gibt zurück:
- the heuristicSearchThreshold
-
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
Returns the input configuration.- Gibt zurück:
-
getInputDefinition
Returns the input definition.- Gibt zurück:
-
getInputPopulationModel
Returns the input population model- Gibt zurück:
-
getKAnonymityModel
Returns the k-anonymity model.- Gibt zurück:
-
getKMapModel
Returns the k-map model.- Gibt zurück:
-
getLDiversityModel
Returns the l-diversity model.- Gibt zurück:
-
getLocale
Returns the project locale.- Gibt zurück:
-
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
Returns the configuration of the metric.- Gibt zurück:
-
getMetricDescription
Returns a description of the metric.- Gibt zurück:
-
getName
Returns the name of this project.- Gibt zurück:
-
getNodeFilter
Returns the current filter.- Gibt zurück:
-
getOptimalNodeAsString
Returns a string representation of the current optimum.- Gibt zurück:
-
getOutput
- Gibt zurück:
- the output
-
getOutputConfig
Returns the output config.- Gibt zurück:
-
getOutputDefinition
Returns the output definition.- Gibt zurück:
-
getOutputNodeAsString
Returns a string representation of the currently applied transformation.- Gibt zurück:
-
getOutputPopulationModel
Returns the output population model, if any. Null otherwise.- Gibt zurück:
-
getOutputTransformation
Returns the currently applied transformation.- Gibt zurück:
-
getPath
Returns the path of the project.- Gibt zurück:
-
getPerspective
- Gibt zurück:
- the perspective
-
getProcessStatistics
- Gibt zurück:
- the optimizationStatistics
-
getQuery
Returns the current query.- Gibt zurück:
-
getResult
Returns the current result.- Gibt zurück:
- the result
-
getRiskBasedModel
Returns the risk-based model.- Gibt zurück:
-
getRiskModel
Returns the risk model- Gibt zurück:
- the risk model
-
getSelectedAttribute
Returns the currently selected attribute.- Gibt zurück:
-
getSelectedClasses
Returns the selected classes- Gibt zurück:
-
getSelectedClassesAsArray
Returns the selected classes, ordered by occurrence in the dataset- Gibt zurück:
-
getSelectedClassValue
Returns the currently selected class value.- Gibt zurück:
-
getSelectedFeatures
Returns the selected features- Gibt zurück:
-
getSelectedFeaturesAsArray
Returns the selected features, ordered by occurrence in the dataset- Gibt zurück:
-
getSelectedNode
Returns the selected transformation.- Gibt zurück:
-
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
Returns the configuration object for the stackelberg privacy model- Gibt zurück:
-
getSubsetOrigin
Returns the origin of the subset.- Gibt zurück:
-
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
Returns whether functional hierarchies should be used- Gibt zurück:
-
getUseListwiseDeletion
Returns whether list-wise deletion is used for summary statistics- Gibt zurück:
-
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
Sets the anonymizer.- Parameter:
anonymizer-
-
setCharset
Sets the charset- Parameter:
charset-
-
setDebugEnabled
public void setDebugEnabled(boolean value) Enables debugging.- Parameter:
value-
-
setDescription
Sets the project description.- Parameter:
description-
-
setFeaturesAndClasses
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
- Parameter:
heuristicSearchStepLimit- the heuristicSearchStepLimit to set
-
setHeuristicSearchThreshold
- Parameter:
heuristicSearchThreshold- the heuristicSearchThreshold to set
-
setHeuristicSearchTimeLimit
- 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
Sets the input config.- Parameter:
config-
-
setLocale
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
Sets the description of the metric.- Parameter:
description-
-
setModified
public void setModified()Marks this project as modified. -
setName
Sets the project name.- Parameter:
name-
-
setNodeFilter
Sets a filter.- Parameter:
filter-
-
setOutput
Sets the current output.- Parameter:
output-node-
-
setOutput
Sets the current output, deserialized from a project- Parameter:
stream-node-- Löst aus:
IOExceptionClassNotFoundException
-
setOutputConfig
Sets the output config.- Parameter:
config-
-
setPath
Sets the project path.- Parameter:
path-
-
setPerspective
- Parameter:
perspective- the perspective to set
-
setProcessStatistics
- Parameter:
optimizationStatistics- the optimizationStatistics to set
-
setQuery
Sets the query.- Parameter:
query-
-
setResult
Sets the result.- Parameter:
result-
-
setSelectedAttribute
Sets the selected attribute.- Parameter:
attribute-
-
setSelectedClasses
Sets a set of selected attributes- Parameter:
set-
-
setSelectedClassValue
Sets the selected class value.- Parameter:
classValue-
-
setSelectedFeatures
Sets a set of selected attributes- Parameter:
set-
-
setSelectedNode
Sets the selected node.- Parameter:
node-
-
setSelectedQuasiIdentifiers
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
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
Sets the view configuration.- Parameter:
viewConfig-
-
setVisualizationEnabled
public void setVisualizationEnabled(boolean value) Sets visualization as enabled/disabled.- Parameter:
value-
-