public class ARXResult
extends java.lang.Object
Constructor and Description |
---|
ARXResult(DataHandle handle,
DataDefinition definition,
ARXLattice lattice,
int historySize,
double snapshotSizeSnapshot,
double snapshotSizeDataset,
Metric<?> metric,
ARXConfiguration config,
ARXLattice.ARXNode optimum,
long time,
SolutionSpace<?> solutionSpace,
ARXProcessStatistics statistics)
Internal constructor for deserialization.
|
Modifier and Type | Method and Description |
---|---|
ARXConfiguration |
getConfiguration()
Returns the configuration used.
|
DataDefinition |
getDataDefinition()
Returns the data definition
|
ARXLattice.ARXNode |
getGlobalOptimum()
Gets the global optimum.
|
DataHandle |
getInput()
Returns the associated input handle
|
ARXLattice |
getLattice()
Returns the lattice.
|
boolean |
getOptimumFound()
Returns whether the global optimum has been found
|
DataHandle |
getOutput()
Returns a handle to the data obtained by applying the optimal transformation.
|
DataHandle |
getOutput(ARXLattice.ARXNode node)
Returns a handle to data obtained by applying the given transformation.
|
DataHandle |
getOutput(ARXLattice.ARXNode node,
boolean fork)
Returns a handle to data obtained by applying the given transformation.
|
DataHandle |
getOutput(boolean fork)
Returns a handle to the data obtained by applying the optimal transformation.
|
DataHandle |
getOutput(java.io.InputStream stream,
ARXLattice.ARXNode transformation)
Internal method, not for external use
|
ARXProcessStatistics |
getProcessStatistics()
Returns statistics for the anonymization process
|
long |
getTime()
Returns the execution time (wall clock).
|
boolean |
isOptimizable(DataHandle handle)
Returns whether local recoding can be applied to the given handle
|
boolean |
isResultAvailable()
Indicates if a result is available.
|
ARXProcessStatistics |
optimize(DataHandle handle)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimize(DataHandle handle,
double gsFactor)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimize(DataHandle handle,
double gsFactor,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeFast(DataHandle handle,
double records)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeFast(DataHandle handle,
double records,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeFast(DataHandle handle,
double records,
double gsFactor,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeIterative(DataHandle handle,
double gsFactor,
int maxIterations,
double adaptionFactor)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeIterative(DataHandle handle,
double gsFactor,
int maxIterations,
double adaptionFactor,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeIterativeFast(DataHandle handle,
double records)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeIterativeFast(DataHandle handle,
double records,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
ARXProcessStatistics |
optimizeIterativeFast(DataHandle handle,
double records,
double gsFactor,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
public ARXResult(DataHandle handle, DataDefinition definition, ARXLattice lattice, int historySize, double snapshotSizeSnapshot, double snapshotSizeDataset, Metric<?> metric, ARXConfiguration config, ARXLattice.ARXNode optimum, long time, SolutionSpace<?> solutionSpace, ARXProcessStatistics statistics)
handle
- definition
- lattice
- historySize
- snapshotSizeSnapshot
- snapshotSizeDataset
- metric
- config
- optimum
- solutionSpace
- statistics
- public ARXConfiguration getConfiguration()
public DataDefinition getDataDefinition()
public ARXLattice.ARXNode getGlobalOptimum()
public ARXLattice getLattice()
public DataHandle getInput()
public boolean getOptimumFound()
public DataHandle getOutput()
public DataHandle getOutput(ARXLattice.ARXNode node)
node
- the transformationpublic DataHandle getOutput(ARXLattice.ARXNode node, boolean fork)
node
- the transformationfork
- Set this flag to false, only if you know exactly what you are doing.public DataHandle getOutput(boolean fork)
fork
- Set this flag to false, only if you know exactly what you are doing.public DataHandle getOutput(java.io.InputStream stream, ARXLattice.ARXNode transformation) throws java.lang.ClassNotFoundException, java.io.IOException
stream
- transformation
- java.io.IOException
java.lang.ClassNotFoundException
public ARXProcessStatistics getProcessStatistics()
public long getTime()
public boolean isOptimizable(DataHandle handle)
handle
- public boolean isResultAvailable()
public ARXProcessStatistics optimize(DataHandle handle) throws RollbackRequiredException
handle
- RollbackRequiredException
public ARXProcessStatistics optimize(DataHandle handle, double gsFactor) throws RollbackRequiredException
handle
- gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.RollbackRequiredException
public ARXProcessStatistics optimize(DataHandle handle, double gsFactor, ARXListener listener) throws RollbackRequiredException
handle
- gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.listener
- RollbackRequiredException
public ARXProcessStatistics optimizeFast(DataHandle handle, double records) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized.RollbackRequiredException
public ARXProcessStatistics optimizeFast(DataHandle handle, double records, ARXListener listener) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized.listener
- RollbackRequiredException
public ARXProcessStatistics optimizeFast(DataHandle handle, double records, double gsFactor, ARXListener listener) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized.gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.listener
- RollbackRequiredException
public ARXProcessStatistics optimizeIterative(DataHandle handle, double gsFactor, int maxIterations, double adaptionFactor) throws RollbackRequiredException
handle
- gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.maxIterations
- The maximal number of iterations to performadaptionFactor
- Is added to the gsFactor when reaching a fixpointRollbackRequiredException
public ARXProcessStatistics optimizeIterative(DataHandle handle, double gsFactor, int maxIterations, double adaptionFactor, ARXListener listener) throws RollbackRequiredException
handle
- gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.maxIterations
- The maximal number of iterations to performadaptionFactor
- Is added to the gsFactor when reaching a fixpointlistener
- RollbackRequiredException
public ARXProcessStatistics optimizeIterativeFast(DataHandle handle, double records) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized in each step.RollbackRequiredException
public ARXProcessStatistics optimizeIterativeFast(DataHandle handle, double records, ARXListener listener) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized in each step.listener
- RollbackRequiredException
public ARXProcessStatistics optimizeIterativeFast(DataHandle handle, double records, double gsFactor, ARXListener listener) throws RollbackRequiredException
handle
- records
- A fraction [0,1] of records that need to be optimized in each step.gsFactor
- A factor [0,1] weighting generalization and suppression.
The default value is 0.5, which means that generalization
and suppression will be treated equally. A factor of 0
will favor suppression, and a factor of 1 will favor
generalization. The values in between can be used for
balancing both methods.listener
- RollbackRequiredException