class Value : JsonSerializable
Represents a single DataPoint value
Value(id: String, fragment: String, label: String, unit: String, series: String, lineType: String, color: String, renderType: String)
create a new DataPoint to allow measurements to be contextualised |
val color: String
clue from drawing tools to determine what the color of the measurement |
|
val fragment: String
name of the measurement that this data point is referencing |
|
val id: String
id of the of the datapoint |
|
val label: String
human readable label to identify the measurement |
|
val lineType: String
clue for drawing tools to determine how this measurement should be displayed |
|
val renderType: String |
|
val series: String
required if the measurement comprises sub values or values in different units |
|
val unit: String
human readable unit of measure for the measurement value |
fun toJSONString(): String
Allows this object type to converted to a JSON String You do not need to use this method directly, instead use the ManagedObjectService class |
fun make(a: JSONObject, map: HashMap<String, DataPoints.Value>): Unit
Utility method to allow values to be built |