Package no.oslomet.aaas.model
Class AnonymizationMetrics
- java.lang.Object
-
- no.oslomet.aaas.model.AnonymizationMetrics
-
public class AnonymizationMetrics extends java.lang.ObjectModel class for displaying metrics from the anonymization process
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AttributeGeneralizationRow>attributeGeneralizationprivate java.util.SetprivacyModelsprivate java.lang.LongprocessTimeMillisecounds
-
Constructor Summary
Constructors Modifier Constructor Description privateAnonymizationMetrics(java.util.List<AttributeGeneralizationRow> attributeGeneralization, java.lang.Long processTimeMillisecounds, java.util.Set privacyModels)Constructor for populating the class from Jackson SerializingAnonymizationMetrics(org.deidentifier.arx.ARXResult result)Constructor for populating the class with data from aARXResultobject
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.List<AttributeGeneralizationRow>gatherGeneralizationAttributes(org.deidentifier.arx.ARXResult result)Gathers the name, types and generalization level for each attribute and returns them in the form of aAttributeGeneralizationRowprivate static java.util.SetgatherPrivacyModels(org.deidentifier.arx.ARXResult result)Gathers set of privacymodel data from result objectprivate static longgatherProcessTime(org.deidentifier.arx.ARXResult result)Gathers the elapsed time the anonymization process took in millisecondsjava.util.List<AttributeGeneralizationRow>getAttributeGeneralization()java.util.SetgetPrivacyModels()java.lang.LonggetProcessTimeMillisecounds()
-
-
-
Field Detail
-
attributeGeneralization
private java.util.List<AttributeGeneralizationRow> attributeGeneralization
-
processTimeMillisecounds
private java.lang.Long processTimeMillisecounds
-
privacyModels
private java.util.Set privacyModels
-
-
Constructor Detail
-
AnonymizationMetrics
public AnonymizationMetrics(org.deidentifier.arx.ARXResult result)
Constructor for populating the class with data from aARXResultobject- Parameters:
result- IncomingARXResultcontaining the data from a completed anonymizaton
-
AnonymizationMetrics
private AnonymizationMetrics(java.util.List<AttributeGeneralizationRow> attributeGeneralization, java.lang.Long processTimeMillisecounds, java.util.Set privacyModels)
Constructor for populating the class from Jackson Serializing- Parameters:
attributeGeneralization- ListAttributeGeneralizationRowcontaining Generalization metrics for dataset attributesprocessTimeMillisecounds- Long containg the elapsed time during anonymizationprivacyModels- Set containing PrivacyModels and their configurations used during anonymization
-
-
Method Detail
-
gatherGeneralizationAttributes
private static java.util.List<AttributeGeneralizationRow> gatherGeneralizationAttributes(org.deidentifier.arx.ARXResult result)
Gathers the name, types and generalization level for each attribute and returns them in the form of aAttributeGeneralizationRow- Parameters:
result- source where the data is gathered from- Returns:
- List of
AttributeGeneralizationRow's
-
gatherProcessTime
private static long gatherProcessTime(org.deidentifier.arx.ARXResult result)
Gathers the elapsed time the anonymization process took in milliseconds- Parameters:
result- SourceARXResultwhich the data is gathered from- Returns:
- Time the anonymization process have taken in milliseconds
-
gatherPrivacyModels
private static java.util.Set gatherPrivacyModels(org.deidentifier.arx.ARXResult result)
Gathers set of privacymodel data from result object- Parameters:
result- SourceARXResultwhich the data is gathered from- Returns:
- Set with data from the privacy model settings currently being applied to the anonymization process
-
getAttributeGeneralization
public java.util.List<AttributeGeneralizationRow> getAttributeGeneralization()
-
getProcessTimeMillisecounds
public java.lang.Long getProcessTimeMillisecounds()
-
getPrivacyModels
public java.util.Set getPrivacyModels()
-
-