-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonem2m.m.energygeneration.json
70 lines (70 loc) · 2.44 KB
/
onem2m.m.energygeneration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.energygeneration#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Energy Generation",
"definitions": {
"onem2m.m.energygeneration": {
"type": "object",
"properties": {
"powerGenerationData": {
"type": "number",
"description": "Amount of instantaneous generation data.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.energy.generation",
"x-to-ocf": [
"oic.r.energy.generation.energygenerated = powerGenerationData;"
],
"x-from-ocf": [
"powerGenerationData = oic.r.energy.generation.energygenerated"
]
}
},
"roundingEnergyGeneration": {
"type": "integer",
"description": "This energy generation data can be calculated by using significantFigures and multiplyingFactors.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.energy.generation",
"x-to-ocf": [
"This is not needed in OCF as only the absolute energy consumption is tracked."
],
"x-from-ocf": [
"roundingEnergyConsumption = oic.r.energy.consumption.powerGenerationData"
]
}
},
"significantDigits": {
"type": "integer",
"description": "The number of effective digits for data.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.energy.generation",
"x-to-ocf": [
"This is not needed in OCF as only the absolute energy consumption is tracked."
],
"x-from-ocf": [
"significantDigits = 0"
]
}
},
"multiplyingFactors": {
"type": "number",
"description": "The unit for data (multiplying factors)., e.g. 1 kWh, 0,1 kWh, 0,01 kWh etc.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.energy.generation",
"x-to-ocf": [
"This is not needed in OCF as only the absolute energy consumption is tracked."
],
"x-from-ocf": [
"multiplyingFactors = 1"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.energygeneration"}
],
"required": [ ]
}