Interface Statistic
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidCompendium, OsidObject, Subjugateable
A Statistic represents a reading of a Meter for a
reference metered object over a period of time.
-
Method Summary
Modifier and TypeMethodDescriptiongetAverageRate(DateTimeResolution units) Gets the average rate of change.getDelta()Gets the difference between the end and start values.getMean()Gets the mean.Gets the median.getMeter()Gets theMeterassociated with this reading.Gets the metered object associated with this reading.Gets theIdof theMeterassociated with this reading.getMode()Gets the mode.Gets the percent change between the end and start values (e.g.getRMS()Gets the root mean square.Gets the standard deviation.getStatisticRecord(Type statisticRecordType) Gets the statistic record corresponding to the givenStatisticrecordType.getSum()Gets the total.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidCompendium
getEndDate, getStartDate, isExtrapolated, isInterpolatedModifier and TypeMethodDescriptionGets the end date used in the evaluation of the transactional data on which this report is based.Gets the start date used in the evaluation of the transactional data on which this report is based.booleanTests if this report is extrapolated outside measured data or known transactions.booleanTests if this report is interpolated within measured data or known transactions.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getMeterId
Id getMeterId()Gets theIdof theMeterassociated with this reading.- Returns:
- the
Idof theMeter - Compliance:
mandatory- This method must be implemented.
-
getMeter
Gets theMeterassociated with this reading.- Returns:
- the
Meter - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getMeteredObjectId
Id getMeteredObjectId()Gets the metered object associated with this reading.- Returns:
- the metered object
Id - Compliance:
mandatory- This method must be implemented.
-
getSum
BigDecimal getSum()Gets the total.- Returns:
- the sum
- Compliance:
mandatory- This method must be implemented.
-
getMean
BigDecimal getMean()Gets the mean.- Returns:
- the mean
- Compliance:
mandatory- This method must be implemented.
-
getMedian
BigDecimal getMedian()Gets the median.- Returns:
- the mean
- Compliance:
mandatory- This method must be implemented.
-
getMode
BigDecimal getMode()Gets the mode.- Returns:
- the mode
- Compliance:
mandatory- This method must be implemented.
-
getStandardDeviation
BigDecimal getStandardDeviation()Gets the standard deviation.- Returns:
- the standard deviation
- Compliance:
mandatory- This method must be implemented.
-
getRMS
BigDecimal getRMS()Gets the root mean square.- Returns:
- the rms
- Compliance:
mandatory- This method must be implemented.
-
getDelta
BigDecimal getDelta()Gets the difference between the end and start values.- Returns:
- the delta
- Compliance:
mandatory- This method must be implemented.
-
getPercentChange
BigDecimal getPercentChange()Gets the percent change between the end and start values (e.g. 50.25%).- Returns:
- the delta
- Compliance:
mandatory- This method must be implemented.
-
getAverageRate
Gets the average rate of change.- Parameters:
units- the time units- Returns:
- the average rate
- Throws:
NullArgumentException-unitsisnull- Compliance:
mandatory- This method must be implemented.
-
getStatisticRecord
Gets the statistic record corresponding to the givenStatisticrecordType. This method is used to retrieve an object implementing the requested record. ThestatisticRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(statisticRecordType)istrue.- Parameters:
statisticRecordType- the statistic record type- Returns:
- the statistic record
- Throws:
NullArgumentException-statisticRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(statisticRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-