Klasse Transformation<T>
java.lang.Object
org.deidentifier.arx.framework.lattice.Transformation<T>
- Bekannte direkte Unterklassen:
TransformationIntArray,TransformationLong
The interface Transformation.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected TThe id.The latticeprotected intThe levelprotected intThe levelprotected final SolutionSpace<T> The solution spaceprotected int[]Transformation in ARX's spaceprotected final int[]Transformation in JHPL's space -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedTransformation(int[] transformationARX, de.linearbits.jhpl.Lattice<Integer, Integer> lattice, SolutionSpace<T> solutionSpace) Instantiates a new transformation. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetData()Returns associated dataint[]Returns the generalizationReturns the idReturns the information lossintgetLevel()Return levelprotected intgetLevel(int[] transformation) Returns the sum of all transformation levels;Returns the lower bound on information lossabstract TransformationList<T> Returns all predeccessors of the transformation with the given identifierabstract TransformationList<T> Returns all successorsbooleanhasProperty(de.linearbits.jhpl.PredictiveProperty property) Returns whether this transformation has a given propertyvoidsetChecked(TransformationResult result) Sets the properties to the given node.voidSets a datavoidsetInformationLoss(InformationLoss<?> informationLoss) Sets the information lossvoidsetLowerBound(InformationLoss<?> lowerBound) Sets the lower boundvoidsetProperty(de.linearbits.jhpl.PredictiveProperty property) Sets a propertyabstract voidsetPropertyToNeighbours(de.linearbits.jhpl.PredictiveProperty property) Sets the property to all neighborstoString()Returns a string representation
-
Felddetails
-
identifier
The id. -
lattice
The lattice -
solutionSpace
The solution space -
levelARX
protected int levelARXThe level -
levelJHPL
protected int levelJHPLThe level -
transformationARX
protected int[] transformationARXTransformation in ARX's space -
transformationJHPL
protected final int[] transformationJHPLTransformation in JHPL's space
-
-
Konstruktordetails
-
Transformation
protected Transformation(int[] transformationARX, de.linearbits.jhpl.Lattice<Integer, Integer> lattice, SolutionSpace<T> solutionSpace) Instantiates a new transformation.- Parameter:
transformationARX- In ARX spacelattice-solutionSpace-
-
-
Methodendetails
-
getData
Returns associated data- Gibt zurück:
-
getGeneralization
public int[] getGeneralization()Returns the generalization- Gibt zurück:
-
getIdentifier
Returns the id- Gibt zurück:
-
getInformationLoss
Returns the information loss- Gibt zurück:
-
getLevel
public int getLevel()Return level- Gibt zurück:
-
getLowerBound
Returns the lower bound on information loss- Gibt zurück:
-
getPredecessors
Returns all predeccessors of the transformation with the given identifier- Parameter:
transformation-- Gibt zurück:
-
getSuccessors
Returns all successors- Gibt zurück:
-
hasProperty
public boolean hasProperty(de.linearbits.jhpl.PredictiveProperty property) Returns whether this transformation has a given property- Parameter:
property-- Gibt zurück:
-
setChecked
Sets the properties to the given node.- Parameter:
result- the resultnode- the node
-
setData
Sets a data- Parameter:
object-
-
setInformationLoss
Sets the information loss- Parameter:
informationLoss-
-
setLowerBound
Sets the lower bound- Parameter:
lowerBound-
-
setProperty
public void setProperty(de.linearbits.jhpl.PredictiveProperty property) Sets a property- Parameter:
property-
-
setPropertyToNeighbours
public abstract void setPropertyToNeighbours(de.linearbits.jhpl.PredictiveProperty property) Sets the property to all neighbors- Parameter:
property-
-
toString
Returns a string representation -
getLevel
protected int getLevel(int[] transformation) Returns the sum of all transformation levels;- Parameter:
transformation-- Gibt zurück:
-