Class AudioAnnotationsStatistic

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, adams.data.spreadsheet.SpreadSheetSupporter, adams.data.statistics.InformativeStatistic, Serializable

    public class AudioAnnotationsStatistic
    extends adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
    Statistical information specific to a audio annotations.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AudioAnnotationsStatistic

        public AudioAnnotationsStatistic()
        Initializes the statistic.
      • AudioAnnotationsStatistic

        public AudioAnnotationsStatistic​(AudioAnnotations data)
        Initializes the statistic.
        Parameters:
        data - the trail to generate the statistics for
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in class adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
        Returns:
        a description suitable for displaying in the gui
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface adams.core.CleanUpHandler
        Overrides:
        cleanUp in class adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
      • setData

        public void setData​(AudioAnnotations value)
        Sets the data to use as basis for the calculations.
        Overrides:
        setData in class adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
        Parameters:
        value - the trail to use, can be null
      • getData

        public AudioAnnotations getData()
        Returns the currently stored trail.
        Overrides:
        getData in class adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
        Returns:
        the trail, can be null
      • getStatisticDescription

        public String getStatisticDescription()
        Returns a description for this statistic, i.e., trail ID.
        Returns:
        the description
      • calculate

        protected void calculate()
        calculates the statistics.
        Overrides:
        calculate in class adams.data.statistics.AbstractDataStatistic<AudioAnnotations>