Klasse SolutionSpace<T>
java.lang.Object
org.deidentifier.arx.framework.lattice.SolutionSpace<T>
- Bekannte direkte Unterklassen:
SolutionSpaceIntArray,SolutionSpaceLong
A class representing the solution space
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungInformation lossThe backing JHPL latticeprotected com.carrotsearch.hppc.ObjectObjectOpenHashMap<Object, InformationLoss<?>> Information lossprotected com.carrotsearch.hppc.ObjectObjectOpenHashMap<Object, InformationLoss<?>> Information loss -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedSolutionSpace(int[] minLevels, int[] maxLevels) Creates a new instanceprotectedSolutionSpace(ARXLattice lattice, ARXConfiguration config) For de-serialization -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic SolutionSpace<?> create(int[] hierarchiesMinLevels, int[] hierarchiesMaxLevels) Creates a new solution spacestatic SolutionSpace<?> create(ARXLattice lattice, ARXConfiguration config) Creates a new solution spaceprotected intfromJHPL(int level) Internal method that adds the offsetprotected int[]fromJHPL(int[] transformation) Internal method that adds the offsetsabstract Transformation<T> Returns the bottom transformationprotected abstract ObjectReturns dataprotected abstract InformationLoss<?> getInformationLoss(T identifier) Returns the information lossintgetLevel(int[] transformation) Returns the level of the given transformationprotected abstract InformationLoss<?> getLowerBound(T identifier) Returns the lower boundabstract ObjectIterator<T> Returns all materialized transformationsde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyProperty for expanded transformationde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyde.linearbits.jhpl.PredictivePropertyReturns a propertyabstract BigIntegergetSize()Returns the overall number of transformations in the solution spaceabstract Transformation<T> getTop()Returns the top-transformationabstract Transformation<T> getTransformation(int[] transformation) Returns a wrapper object with access to all properties about the transformationabstract Transformation<T> getTransformation(Object _identifier) Returns the transformation with the given identifierabstract InformationLoss<?> getUtility(Object _identifier) Returns the utility of the transformation with the given identifierabstract booleanhasProperty(int[] transformation, de.linearbits.jhpl.PredictiveProperty property) Returns whether a node has a given propertybooleanisDirectParentChild(int[] parent, int[] child) Determines whether a direct parent-child relationship exists.booleanisParentChildOrEqual(int[] parent, int[] child) Determines whether a parent-child relationship exists, or both are equalprotected int[]reverse(int[] input) Reverses the given arrayvoidsetAnonymityPropertyPredictable(boolean predictable) Makes the anonymity property predictableprotected abstract voidSets dataprotected abstract voidsetInformationLoss(int[] transformation, InformationLoss<?> loss) Sets the information lossprotected abstract voidsetInformationLoss(T identifier, InformationLoss<?> loss) Sets the information lossprotected abstract voidsetLowerBound(T identifier, InformationLoss<?> loss) Sets the lower boundprotected voidsetMonotonicity(ARXConfiguration config) Sets the monotonicity of the anonymity propertyprotected inttoJHPL(int level) Internal method that subtracts the offsetprotected int[]toJHPL(int[] transformation) Internal method that subtracts the offsetsabstract ObjectIterator<T> Returns all transformations in the solution spaceabstract ObjectIterator<T> unsafeGetLevel(int level) Returns *all* nodes on the given level.
-
Felddetails
-
lattice
The backing JHPL lattice -
data
Information loss -
lowerBound
Information loss -
utility
Information loss
-
-
Konstruktordetails
-
SolutionSpace
For de-serialization- Parameter:
lattice-config-
-
SolutionSpace
protected SolutionSpace(int[] minLevels, int[] maxLevels) Creates a new instance- Parameter:
minLevels-maxLevels-
-
-
Methodendetails
-
create
Creates a new solution space- Parameter:
lattice-config-
-
create
Creates a new solution space- Parameter:
hierarchiesMinLevels-hierarchiesMaxLevels-- Gibt zurück:
-
getBottom
Returns the bottom transformation- Gibt zurück:
-
getLevel
public int getLevel(int[] transformation) Returns the level of the given transformation- Parameter:
transformation-- Gibt zurück:
-
getMaterializedTransformations
Returns all materialized transformations- Gibt zurück:
-
getPropertyAnonymous
public de.linearbits.jhpl.PredictiveProperty getPropertyAnonymous()Returns a property- Gibt zurück:
-
getPropertyChecked
public de.linearbits.jhpl.PredictiveProperty getPropertyChecked()Returns a property- Gibt zurück:
-
getPropertyExpanded
public de.linearbits.jhpl.PredictiveProperty getPropertyExpanded()Property for expanded transformation- Gibt zurück:
-
getPropertyForceSnapshot
public de.linearbits.jhpl.PredictiveProperty getPropertyForceSnapshot()Returns a property- Gibt zurück:
-
getPropertyInsufficientUtility
public de.linearbits.jhpl.PredictiveProperty getPropertyInsufficientUtility()Returns a property- Gibt zurück:
-
getPropertyKAnonymous
public de.linearbits.jhpl.PredictiveProperty getPropertyKAnonymous()Returns a property- Gibt zurück:
-
getPropertyNotAnonymous
public de.linearbits.jhpl.PredictiveProperty getPropertyNotAnonymous()Returns a property- Gibt zurück:
-
getPropertyNotKAnonymous
public de.linearbits.jhpl.PredictiveProperty getPropertyNotKAnonymous()Returns a property- Gibt zurück:
-
getPropertySuccessorsPruned
public de.linearbits.jhpl.PredictiveProperty getPropertySuccessorsPruned()Returns a property- Gibt zurück:
-
getPropertyVisited
public de.linearbits.jhpl.PredictiveProperty getPropertyVisited()Returns a property- Gibt zurück:
-
getSize
Returns the overall number of transformations in the solution space- Gibt zurück:
-
getTop
Returns the top-transformation- Gibt zurück:
-
getTransformation
Returns a wrapper object with access to all properties about the transformation- Parameter:
transformation-- Gibt zurück:
-
getTransformation
Returns the transformation with the given identifier- Parameter:
_identifier-- Gibt zurück:
-
getUtility
Returns the utility of the transformation with the given identifier- Parameter:
identifier-- Gibt zurück:
-
hasProperty
public abstract boolean hasProperty(int[] transformation, de.linearbits.jhpl.PredictiveProperty property) Returns whether a node has a given property- Parameter:
transformation-property-- Gibt zurück:
-
isDirectParentChild
public boolean isDirectParentChild(int[] parent, int[] child) Determines whether a direct parent-child relationship exists.- Parameter:
parent-child-- Gibt zurück:
-
isParentChildOrEqual
public boolean isParentChildOrEqual(int[] parent, int[] child) Determines whether a parent-child relationship exists, or both are equal- Parameter:
parent-child-- Gibt zurück:
-
setAnonymityPropertyPredictable
public void setAnonymityPropertyPredictable(boolean predictable) Makes the anonymity property predictable- Parameter:
predictable-
-
unsafeGetAllTransformations
Returns all transformations in the solution space- Gibt zurück:
-
unsafeGetLevel
Returns *all* nodes on the given level. This is an unsafe operation that only performs well for "small" spaces.- Parameter:
level-- Gibt zurück:
-
fromJHPL
protected int fromJHPL(int level) Internal method that adds the offset- Parameter:
level-- Gibt zurück:
-
fromJHPL
protected int[] fromJHPL(int[] transformation) Internal method that adds the offsets- Parameter:
transformation-- Gibt zurück:
-
getData
Returns data- Parameter:
id-- Gibt zurück:
-
getInformationLoss
Returns the information loss- Parameter:
identifier-- Gibt zurück:
-
getLowerBound
Returns the lower bound- Parameter:
identifier-- Gibt zurück:
-
reverse
protected int[] reverse(int[] input) Reverses the given array- Parameter:
input-- Gibt zurück:
-
setData
Sets data- Parameter:
id-object-
-
setInformationLoss
Sets the information loss- Parameter:
transformation-loss-
-
setInformationLoss
Sets the information loss- Parameter:
identifier-loss-
-
setLowerBound
Sets the lower bound- Parameter:
identifier-loss-
-
setMonotonicity
Sets the monotonicity of the anonymity property- Parameter:
config-
-
toJHPL
protected int toJHPL(int level) Internal method that subtracts the offset- Parameter:
level-- Gibt zurück:
-
toJHPL
protected int[] toJHPL(int[] transformation) Internal method that subtracts the offsets- Parameter:
transformation-- Gibt zurück:
-