Class AnonymizationMetrics


  • public class AnonymizationMetrics
    extends Object
    Model class for displaying metrics from the arxaas process
    • Field Detail

      • processTimeMillisecounds

        private Long processTimeMillisecounds
      • privacyModels

        private 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​(List<AttributeGeneralizationRow> attributeGeneralization,
                                     Long processTimeMillisecounds,
                                     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 arxaas
        privacyModels - Set containing PrivacyModels and their configurations used during arxaas
    • Method Detail

      • gatherProcessTime

        private static long gatherProcessTime​(org.deidentifier.arx.ARXResult result)
        Gathers the elapsed time the arxaas process took in milliseconds
        Parameters:
        result - Source ARXResult which the data is gathered from
        Returns:
        Time the arxaas process have taken in milliseconds
      • gatherPrivacyModels

        private static 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 arxaas process
      • getProcessTimeMillisecounds

        public Long getProcessTimeMillisecounds()
      • getPrivacyModels

        public Set getPrivacyModels()