Class AnonymizationMetrics


  • public class AnonymizationMetrics
    extends java.lang.Object
    Model class for displaying metrics from the anonymization process
    • Field Detail

      • 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 a ARXResult object
        Parameters:
        result - Incoming ARXResult containing 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 - ListAttributeGeneralizationRow containing Generalization metrics for dataset attributes
        processTimeMillisecounds - Long containg the elapsed time during anonymization
        privacyModels - 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 a AttributeGeneralizationRow
        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 - Source ARXResult which 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 - Source ARXResult which the data is gathered from
        Returns:
        Set with data from the privacy model settings currently being applied to the anonymization process
      • getProcessTimeMillisecounds

        public java.lang.Long getProcessTimeMillisecounds()
      • getPrivacyModels

        public java.util.Set getPrivacyModels()