Class DatumPropertiesStatistics

java.lang.Object
net.solarnetwork.domain.datum.DatumPropertiesStatistics
All Implemented Interfaces:
Serializable

public class DatumPropertiesStatistics extends Object implements Serializable
Statistic information associated with datum properties.
Since:
2.7
Version:
1.0
Author:
matt
See Also:
  • Constructor Details

    • DatumPropertiesStatistics

      public DatumPropertiesStatistics()
  • Method Details

    • statisticsOf

      public static DatumPropertiesStatistics statisticsOf(BigDecimal[][] instantaneous, BigDecimal[][] accumulating)
      Create a datum statistics instance.
      Parameters:
      instantaneous - the instantaneous statistic values
      accumulating - the accumulating statistic values
      Returns:
      the new instance, never null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getLength

      public int getLength()
      Get the overall number of array property values (first dimension).

      This returns the sum of the length (first dimension) all the array fields of this class.

      Returns:
      the number of values (including null values)
    • getInstantaneousLength

      public int getInstantaneousLength()
      Get the instantaneous values array length (first dimension).
      Returns:
      the number of instantaneous values (including null values)
    • getInstantaneous

      public BigDecimal[][] getInstantaneous()
      Get the instantaneous statistics.
      Returns:
      the instantaneous statistics
    • setInstantaneous

      public void setInstantaneous(BigDecimal[][] instantaneous)
      Set the instantaneous statistics.
      Parameters:
      instantaneous - the instantaneous statistics to set
    • getInstantaneousCount

      public BigDecimal getInstantaneousCount(int propertyIndex)
      Get the count statistic for an instantaneous property.
      Parameters:
      propertyIndex - the index of the property to get the statistic for
      Returns:
      the statistic value, or null if not available
    • getInstantaneousMinimum

      public BigDecimal getInstantaneousMinimum(int propertyIndex)
      Get the minimum statistic for an instantaneous property.
      Parameters:
      propertyIndex - the index of the property to get the statistic for
      Returns:
      the statistic value, or null if not available
    • getInstantaneousMaximum

      public BigDecimal getInstantaneousMaximum(int propertyIndex)
      Get the maximum statistic for an instantaneous property.
      Parameters:
      propertyIndex - the index of the property to get the statistic for
      Returns:
      the statistic value, or null if not available
    • getAccumulatingStart

      public BigDecimal getAccumulatingStart(int propertyIndex)
      Get the start statistic for an accumulating property.
      Parameters:
      propertyIndex - the index of the property to get the statistic for
      Returns:
      the statistic value, or null if not available
    • getAccumulatingEnd

      public BigDecimal getAccumulatingEnd(int propertyIndex)
      Get the end statistic for an accumulating property.
      Parameters:
      propertyIndex - the index of the property to get the statistic for
      Returns:
      the statistic value, or null if not available
    • getAccumulatingLength

      public int getAccumulatingLength()
      Get the accumulating values array length (first dimension).
      Returns:
      the number of accumulating values (including null values)
    • getAccumulating

      public BigDecimal[][] getAccumulating()
      Get the accumulating statistics.
      Returns:
      the accumulating statistics
    • setAccumulating

      public void setAccumulating(BigDecimal[][] accumulating)
      Set the accumulating statistics.
      Parameters:
      accumulating - the accumulating statistics to set