Package org.openhab.core.persistence.dto
Class ItemHistoryDTO
java.lang.Object
org.openhab.core.persistence.dto.ItemHistoryDTO
This is a java bean that is used to serialize items to JSON.
- Author:
- Chris Jackson - Initial contribution
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
name
- 
totalrecords
- 
datapoints
- 
data
 
- 
- 
Constructor Details- 
ItemHistoryDTOpublic ItemHistoryDTO()
 
- 
- 
Method Details- 
addDataAdd a new record to the data history. This method returns a double value equal to the state. This may be used for comparison by the caller.- Parameters:
- time- the time of the record
- state- the state at this time
 
- 
sortDatapublic void sortData()Sort the data history by time.
 
-