-package org.simantics.history;\r
-\r
-import org.simantics.databoard.annotations.Identifier;\r
-import org.simantics.databoard.type.Datatype;\r
-import org.simantics.databoard.util.Bean;\r
-\r
-/**\r
- * (Utility Class) Item format for HistoryItem.\r
- *\r
- * @author toni.kalajainen@semantum.fi\r
- */\r
-public class HistoryItem extends Bean.Id {\r
-\r
- /** \r
- * Unique identifier of the item.\r
- */\r
- public @Identifier String id;\r
- \r
- /** \r
- * Describes the format of the packed sample. The sample must be a record.\r
- * The record must have any combination of the following named fields.\r
- * The field types must one of: byte, integer, long, float, double.\r
- * \r
- * time, endTime, value - are mandatory fields.\r
- * \r
- * time - Region start time, the time of the 1st sample included into the band\r
- * endTime - Region end time, the time of the last sample included into the band\r
- * \r
- * value - First value in the band\r
- * lastValue - Last value in the band\r
- * avg - Average value of all included samples\r
- * median - Median value of all samples in the band\r
- * min - Lowest value in the band\r
- * max - Highest value in the band\r
- * \r
- * quality - 0 = Good, -1 = No value\r
- * count - The number of included samples in the band\r
- */\r
- public Datatype format;\r
- \r
- public HistoryItem(String id, Datatype format) {\r
- super();\r
- this.id = id;\r
- this.format = format;\r
- }\r
- \r
-}\r
+package org.simantics.history;
+
+import org.simantics.databoard.annotations.Identifier;
+import org.simantics.databoard.type.Datatype;
+import org.simantics.databoard.util.Bean;
+
+/**
+ * (Utility Class) Item format for HistoryItem.
+ *
+ * @author toni.kalajainen@semantum.fi
+ */
+public class HistoryItem extends Bean.Id {
+
+ /**
+ * Unique identifier of the item.
+ */
+ public @Identifier String id;
+
+ /**
+ * Describes the format of the packed sample. The sample must be a record.
+ * The record must have any combination of the following named fields.
+ * The field types must one of: byte, integer, long, float, double.
+ *
+ * time, endTime, value - are mandatory fields.
+ *
+ * time - Region start time, the time of the 1st sample included into the band
+ * endTime - Region end time, the time of the last sample included into the band
+ *
+ * value - First value in the band
+ * lastValue - Last value in the band
+ * avg - Average value of all included samples
+ * median - Median value of all samples in the band
+ * min - Lowest value in the band
+ * max - Highest value in the band
+ *
+ * quality - 0 = Good, -1 = No value
+ * count - The number of included samples in the band
+ */
+ public Datatype format;
+
+ public HistoryItem(String id, Datatype format) {
+ super();
+ this.id = id;
+ this.format = format;
+ }
+
+}