public class ARXResult
extends java.lang.Object
Modifier | 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)
Internal constructor for deserialization.
|
protected |
ARXResult(org.deidentifier.arx.DataRegistry registry,
DataManager manager,
NodeChecker checker,
DataDefinition definition,
ARXConfiguration config,
ARXLattice lattice,
long duration,
SolutionSpace solutionSpace)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ARXConfiguration |
getConfiguration()
Returns the configuration used.
|
ARXLattice.ARXNode |
getGlobalOptimum()
Gets the global optimum.
|
DataHandle |
getHandle()
Deprecated.
|
DataHandle |
getHandle(ARXLattice.ARXNode node)
Deprecated.
|
ARXLattice |
getLattice()
Returns the lattice.
|
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.
|
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.
|
int |
optimize(DataHandle handle)
This method optimizes the given data output with local recoding to improve its utility
|
int |
optimize(DataHandle handle,
double gsFactor)
This method optimizes the given data output with local recoding to improve its utility
|
int |
optimize(DataHandle handle,
double gsFactor,
ARXListener listener)
This method optimizes the given data output with local recoding to improve its utility
|
void |
optimizeIterative(DataHandle handle,
double gsFactor,
int maxIterations,
double adaptionFactor)
This method optimizes the given data output with local recoding to improve its utility
|
void |
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
|
protected void |
releaseBuffer(DataHandleOutput handle)
Releases the buffer.
|
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)
handle
- definition
- lattice
- historySize
- snapshotSizeSnapshot
- snapshotSizeDataset
- metric
- config
- optimum
- time
- solutionSpace
- protected ARXResult(org.deidentifier.arx.DataRegistry registry, DataManager manager, NodeChecker checker, DataDefinition definition, ARXConfiguration config, ARXLattice lattice, long duration, SolutionSpace solutionSpace)
registry
- manager
- checker
- definition
- config
- lattice
- duration
- solutionSpace
- public ARXConfiguration getConfiguration()
public ARXLattice.ARXNode getGlobalOptimum()
@Deprecated public DataHandle getHandle()
@Deprecated public DataHandle getHandle(ARXLattice.ARXNode node)
node
- the transformationpublic ARXLattice getLattice()
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 long getTime()
public boolean isOptimizable(DataHandle handle)
handle
- public boolean isResultAvailable()
public int optimize(DataHandle handle) throws RollbackRequiredException
handle
- RollbackRequiredException
public int 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 int 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 void 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 fixpointlistener
- RollbackRequiredException
public void 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
protected void releaseBuffer(DataHandleOutput handle)
handle
-