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 Summary
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
-
Field Details
-
name
-
totalrecords
-
datapoints
-
data
-
-
Constructor Details
-
ItemHistoryDTO
public ItemHistoryDTO()
-
-
Method Details
-
addData
Add 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 recordstate
- the state at this time
-