1 package org.simantics.history;
\r
3 import org.simantics.databoard.annotations.Identifier;
\r
4 import org.simantics.databoard.type.Datatype;
\r
5 import org.simantics.databoard.util.Bean;
\r
8 * (Utility Class) Item format for HistoryItem.
\r
10 * @author toni.kalajainen@semantum.fi
\r
12 public class HistoryItem extends Bean.Id {
\r
15 * Unique identifier of the item.
\r
17 public @Identifier String id;
\r
20 * Describes the format of the packed sample. The sample must be a record.
\r
21 * The record must have any combination of the following named fields.
\r
22 * The field types must one of: byte, integer, long, float, double.
\r
24 * time, endTime, value - are mandatory fields.
\r
26 * time - Region start time, the time of the 1st sample included into the band
\r
27 * endTime - Region end time, the time of the last sample included into the band
\r
29 * value - First value in the band
\r
30 * lastValue - Last value in the band
\r
31 * avg - Average value of all included samples
\r
32 * median - Median value of all samples in the band
\r
33 * min - Lowest value in the band
\r
34 * max - Highest value in the band
\r
36 * quality - 0 = Good, -1 = No value
\r
37 * count - The number of included samples in the band
\r
39 public Datatype format;
\r
41 public HistoryItem(String id, Datatype format) {
\r
44 this.format = format;
\r