Package net.solarnetwork.domain.datum
Class DatumPropertiesStatistics
java.lang.Object
net.solarnetwork.domain.datum.DatumPropertiesStatistics
- All Implemented Interfaces:
Serializable
Statistic information associated with datum properties.
- Since:
- 2.7
- Version:
- 1.0
- Author:
- matt
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAccumulating statistic enumeration.static enumInstantaneous statistic enumeration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBigDecimal[][]Get the accumulating statistics.getAccumulatingEnd(int propertyIndex) Get the end statistic for an accumulating property.intGet the accumulating values array length (first dimension).getAccumulatingStart(int propertyIndex) Get the start statistic for an accumulating property.BigDecimal[][]Get the instantaneous statistics.getInstantaneousCount(int propertyIndex) Get the count statistic for an instantaneous property.intGet the instantaneous values array length (first dimension).getInstantaneousMaximum(int propertyIndex) Get the maximum statistic for an instantaneous property.getInstantaneousMinimum(int propertyIndex) Get the minimum statistic for an instantaneous property.intGet the overall number of array property values (first dimension).inthashCode()voidsetAccumulating(BigDecimal[][] accumulating) Set the accumulating statistics.voidsetInstantaneous(BigDecimal[][] instantaneous) Set the instantaneous statistics.static DatumPropertiesStatisticsstatisticsOf(BigDecimal[][] instantaneous, BigDecimal[][] accumulating) Create a datum statistics instance.toString()
-
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 valuesaccumulating- the accumulating statistic values- Returns:
- the new instance, never null
-
toString
-
hashCode
public int hashCode() -
equals
-
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
Get the instantaneous statistics.- Returns:
- the instantaneous statistics
-
setInstantaneous
Set the instantaneous statistics.- Parameters:
instantaneous- the instantaneous statistics to set
-
getInstantaneousCount
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
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
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
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
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
Get the accumulating statistics.- Returns:
- the accumulating statistics
-
setAccumulating
Set the accumulating statistics.- Parameters:
accumulating- the accumulating statistics to set
-