rsmp_schemer 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -15
  3. data/lib/rsmp_schemer/version.rb +3 -3
  4. data/rsmp_schemer.gemspec +2 -2
  5. data/schemas/core_3.1.3/Gemfile.lock +20 -20
  6. data/schemas/core_3.1.3/schema/core/alarm.json +8 -4
  7. data/schemas/core_3.1.3/schema/core/core.json +0 -1
  8. data/schemas/core_3.1.3/schema/core/rsmp.json +0 -9
  9. data/schemas/core_3.1.3/spec/core/alarm_spec.rb +20 -7
  10. data/schemas/core_3.1.3/spec/core/command_request_spec.rb +3 -6
  11. data/schemas/core_3.1.3/spec/core/command_response_spec.rb +1 -43
  12. data/schemas/core_3.1.3/spec/core/status_request_spec.rb +4 -8
  13. data/schemas/core_3.1.3/spec/core/status_response_spec.rb +13 -8
  14. data/schemas/core_3.1.3/spec/core/status_subscribe_spec.rb +4 -8
  15. data/schemas/core_3.1.3/spec/core/status_unsubscribe_spec.rb +4 -8
  16. data/schemas/core_3.1.3/spec/core/status_update_spec.rb +4 -8
  17. data/schemas/core_3.1.3/spec/schemer_helper.rb +19 -17
  18. data/schemas/tlc_1.0.15/Gemfile.lock +17 -17
  19. data/schemas/tlc_1.0.15/README.md +7 -0
  20. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0001.json +1 -1
  21. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0002.json +1 -1
  22. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0003.json +1 -1
  23. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0004.json +1 -1
  24. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0005.json +1 -1
  25. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0006.json +1 -1
  26. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0007.json +1 -1
  27. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0008.json +1 -1
  28. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0009.json +1 -1
  29. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0010.json +1 -1
  30. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0101.json +1 -1
  31. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0201.json +1 -1
  32. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0202.json +1 -1
  33. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0301.json +1 -1
  34. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0302.json +1 -1
  35. data/schemas/tlc_1.0.15/schema/tlc/commands/M0002.json +1 -1
  36. data/schemas/tlc_1.0.15/schema/tlc/commands/M0003.json +1 -1
  37. data/schemas/tlc_1.0.15/schema/tlc/commands/M0004.json +1 -1
  38. data/schemas/tlc_1.0.15/schema/tlc/commands/M0005.json +1 -1
  39. data/schemas/tlc_1.0.15/schema/tlc/commands/M0006.json +1 -1
  40. data/schemas/tlc_1.0.15/schema/tlc/commands/M0007.json +1 -1
  41. data/schemas/tlc_1.0.15/schema/tlc/commands/M0008.json +1 -1
  42. data/schemas/tlc_1.0.15/schema/tlc/commands/M0010.json +1 -1
  43. data/schemas/tlc_1.0.15/schema/tlc/commands/M0011.json +1 -1
  44. data/schemas/tlc_1.0.15/schema/tlc/commands/M0012.json +1 -1
  45. data/schemas/tlc_1.0.15/schema/tlc/commands/M0013.json +1 -1
  46. data/schemas/tlc_1.0.15/schema/tlc/commands/M0014.json +1 -1
  47. data/schemas/tlc_1.0.15/schema/tlc/commands/M0015.json +1 -1
  48. data/schemas/tlc_1.0.15/schema/tlc/commands/M0016.json +1 -1
  49. data/schemas/tlc_1.0.15/schema/tlc/commands/M0017.json +1 -1
  50. data/schemas/tlc_1.0.15/schema/tlc/commands/M0018.json +1 -1
  51. data/schemas/tlc_1.0.15/schema/tlc/commands/M0019.json +1 -1
  52. data/schemas/tlc_1.0.15/schema/tlc/commands/M0020.json +1 -1
  53. data/schemas/tlc_1.0.15/schema/tlc/commands/M0021.json +1 -1
  54. data/schemas/tlc_1.0.15/schema/tlc/commands/M0103.json +1 -1
  55. data/schemas/tlc_1.0.15/schema/tlc/commands/M0104.json +1 -1
  56. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0001.json +1 -1
  57. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0002.json +1 -1
  58. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0003.json +1 -1
  59. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0004.json +1 -1
  60. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0005.json +1 -1
  61. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0006.json +1 -1
  62. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0007.json +1 -1
  63. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0008.json +1 -1
  64. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0009.json +1 -1
  65. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0010.json +1 -1
  66. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0011.json +1 -1
  67. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0012.json +1 -1
  68. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0013.json +1 -1
  69. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0014.json +1 -1
  70. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0015.json +1 -1
  71. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0016.json +1 -1
  72. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0017.json +1 -1
  73. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0018.json +1 -1
  74. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0019.json +1 -1
  75. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0020.json +1 -1
  76. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0021.json +1 -1
  77. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0022.json +1 -1
  78. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0023.json +1 -1
  79. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0024.json +1 -1
  80. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0025.json +1 -1
  81. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0026.json +1 -1
  82. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0027.json +1 -1
  83. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0028.json +2 -2
  84. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0029.json +1 -1
  85. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0030.json +1 -1
  86. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0031.json +1 -1
  87. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0091.json +1 -1
  88. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0092.json +1 -1
  89. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0095.json +1 -1
  90. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0096.json +1 -1
  91. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0097.json +1 -1
  92. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0098.json +2 -2
  93. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0201.json +1 -1
  94. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0202.json +2 -2
  95. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0203.json +2 -2
  96. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0204.json +2 -2
  97. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0205.json +3 -3
  98. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0206.json +3 -3
  99. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0207.json +3 -3
  100. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json +11 -11
  101. data/schemas/tlc_1.0.15/schema/tlc/sxl.yaml +1655 -0
  102. metadata +8 -97
  103. data/schemas/core_3.1.3/examples/validate.rb +0 -32
  104. data/schemas/core_3.1.3/schema/core/aggregated_status_request.json +0 -9
  105. data/schemas/core_3.1.3/schema/tlc/alarms/A0001.json +0 -7
  106. data/schemas/core_3.1.3/schema/tlc/alarms/A0002.json +0 -7
  107. data/schemas/core_3.1.3/schema/tlc/alarms/A0003.json +0 -7
  108. data/schemas/core_3.1.3/schema/tlc/alarms/A0004.json +0 -7
  109. data/schemas/core_3.1.3/schema/tlc/alarms/A0005.json +0 -7
  110. data/schemas/core_3.1.3/schema/tlc/alarms/A0006.json +0 -7
  111. data/schemas/core_3.1.3/schema/tlc/alarms/A0007.json +0 -7
  112. data/schemas/core_3.1.3/schema/tlc/alarms/A0008.json +0 -19
  113. data/schemas/core_3.1.3/schema/tlc/alarms/A0009.json +0 -7
  114. data/schemas/core_3.1.3/schema/tlc/alarms/A0101.json +0 -7
  115. data/schemas/core_3.1.3/schema/tlc/alarms/A0201.json +0 -20
  116. data/schemas/core_3.1.3/schema/tlc/alarms/A0202.json +0 -20
  117. data/schemas/core_3.1.3/schema/tlc/alarms/A0301.json +0 -49
  118. data/schemas/core_3.1.3/schema/tlc/alarms/A0302.json +0 -59
  119. data/schemas/core_3.1.3/schema/tlc/alarms/alarms.json +0 -68
  120. data/schemas/core_3.1.3/schema/tlc/commands/M0001.json +0 -48
  121. data/schemas/core_3.1.3/schema/tlc/commands/M0002.json +0 -39
  122. data/schemas/core_3.1.3/schema/tlc/commands/M0003.json +0 -39
  123. data/schemas/core_3.1.3/schema/tlc/commands/M0004.json +0 -30
  124. data/schemas/core_3.1.3/schema/tlc/commands/M0005.json +0 -39
  125. data/schemas/core_3.1.3/schema/tlc/commands/M0006.json +0 -39
  126. data/schemas/core_3.1.3/schema/tlc/commands/M0007.json +0 -30
  127. data/schemas/core_3.1.3/schema/tlc/commands/M0008.json +0 -40
  128. data/schemas/core_3.1.3/schema/tlc/commands/M0010.json +0 -30
  129. data/schemas/core_3.1.3/schema/tlc/commands/M0011.json +0 -30
  130. data/schemas/core_3.1.3/schema/tlc/commands/M0012.json +0 -29
  131. data/schemas/core_3.1.3/schema/tlc/commands/M0013.json +0 -1
  132. data/schemas/core_3.1.3/schema/tlc/commands/M0014.json +0 -38
  133. data/schemas/core_3.1.3/schema/tlc/commands/M0015.json +0 -38
  134. data/schemas/core_3.1.3/schema/tlc/commands/M0016.json +0 -29
  135. data/schemas/core_3.1.3/schema/tlc/commands/M0017.json +0 -29
  136. data/schemas/core_3.1.3/schema/tlc/commands/M0018.json +0 -38
  137. data/schemas/core_3.1.3/schema/tlc/commands/M0019.json +0 -49
  138. data/schemas/core_3.1.3/schema/tlc/commands/M0020.json +0 -49
  139. data/schemas/core_3.1.3/schema/tlc/commands/M0021.json +0 -1
  140. data/schemas/core_3.1.3/schema/tlc/commands/M0103.json +0 -39
  141. data/schemas/core_3.1.3/schema/tlc/commands/M0104.json +0 -1
  142. data/schemas/core_3.1.3/schema/tlc/commands/command_requests.json +0 -7
  143. data/schemas/core_3.1.3/schema/tlc/commands/command_responses.json +0 -7
  144. data/schemas/core_3.1.3/schema/tlc/commands/commands.json +0 -97
  145. data/schemas/core_3.1.3/schema/tlc/statuses/S0001.json +0 -45
  146. data/schemas/core_3.1.3/schema/tlc/statuses/S0002.json +0 -17
  147. data/schemas/core_3.1.3/schema/tlc/statuses/S0003.json +0 -26
  148. data/schemas/core_3.1.3/schema/tlc/statuses/S0004.json +0 -26
  149. data/schemas/core_3.1.3/schema/tlc/statuses/S0005.json +0 -18
  150. data/schemas/core_3.1.3/schema/tlc/statuses/S0006.json +0 -27
  151. data/schemas/core_3.1.3/schema/tlc/statuses/S0007.json +0 -26
  152. data/schemas/core_3.1.3/schema/tlc/statuses/S0008.json +0 -26
  153. data/schemas/core_3.1.3/schema/tlc/statuses/S0009.json +0 -26
  154. data/schemas/core_3.1.3/schema/tlc/statuses/S0010.json +0 -26
  155. data/schemas/core_3.1.3/schema/tlc/statuses/S0011.json +0 -26
  156. data/schemas/core_3.1.3/schema/tlc/statuses/S0012.json +0 -26
  157. data/schemas/core_3.1.3/schema/tlc/statuses/S0013.json +0 -27
  158. data/schemas/core_3.1.3/schema/tlc/statuses/S0014.json +0 -17
  159. data/schemas/core_3.1.3/schema/tlc/statuses/S0015.json +0 -17
  160. data/schemas/core_3.1.3/schema/tlc/statuses/S0016.json +0 -17
  161. data/schemas/core_3.1.3/schema/tlc/statuses/S0017.json +0 -17
  162. data/schemas/core_3.1.3/schema/tlc/statuses/S0018.json +0 -17
  163. data/schemas/core_3.1.3/schema/tlc/statuses/S0019.json +0 -17
  164. data/schemas/core_3.1.3/schema/tlc/statuses/S0020.json +0 -27
  165. data/schemas/core_3.1.3/schema/tlc/statuses/S0021.json +0 -18
  166. data/schemas/core_3.1.3/schema/tlc/statuses/S0022.json +0 -17
  167. data/schemas/core_3.1.3/schema/tlc/statuses/S0023.json +0 -18
  168. data/schemas/core_3.1.3/schema/tlc/statuses/S0024.json +0 -18
  169. data/schemas/core_3.1.3/schema/tlc/statuses/S0025.json +0 -80
  170. data/schemas/core_3.1.3/schema/tlc/statuses/S0026.json +0 -18
  171. data/schemas/core_3.1.3/schema/tlc/statuses/S0027.json +0 -18
  172. data/schemas/core_3.1.3/schema/tlc/statuses/S0028.json +0 -18
  173. data/schemas/core_3.1.3/schema/tlc/statuses/S0029.json +0 -17
  174. data/schemas/core_3.1.3/schema/tlc/statuses/S0030.json +0 -1
  175. data/schemas/core_3.1.3/schema/tlc/statuses/S0031.json +0 -1
  176. data/schemas/core_3.1.3/schema/tlc/statuses/S0091.json +0 -27
  177. data/schemas/core_3.1.3/schema/tlc/statuses/S0092.json +0 -27
  178. data/schemas/core_3.1.3/schema/tlc/statuses/S0095.json +0 -17
  179. data/schemas/core_3.1.3/schema/tlc/statuses/S0096.json +0 -68
  180. data/schemas/core_3.1.3/schema/tlc/statuses/S0097.json +0 -26
  181. data/schemas/core_3.1.3/schema/tlc/statuses/S0201.json +0 -26
  182. data/schemas/core_3.1.3/schema/tlc/statuses/S0202.json +0 -26
  183. data/schemas/core_3.1.3/schema/tlc/statuses/S0203.json +0 -26
  184. data/schemas/core_3.1.3/schema/tlc/statuses/S0204.json +0 -98
  185. data/schemas/core_3.1.3/schema/tlc/statuses/S0205.json +0 -26
  186. data/schemas/core_3.1.3/schema/tlc/statuses/S0206.json +0 -26
  187. data/schemas/core_3.1.3/schema/tlc/statuses/S0207.json +0 -26
  188. data/schemas/core_3.1.3/schema/tlc/statuses/S0208.json +0 -98
  189. data/schemas/core_3.1.3/schema/tlc/statuses/statuses.json +0 -181
  190. data/schemas/core_3.1.3/schema/tlc/sxl.json +0 -24
  191. data/schemas/core_3.1.3/spec/tlc/M0001_spec.rb +0 -67
  192. data/schemas/core_3.1.3/spec/tlc/S0007_spec.rb +0 -233
@@ -1,18 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Offset time",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Offset table<br>Each offset time is written as pp-tt where:<br>pp=time plan<br>tt=offset time in seconds<br><br>Each offset time is separated with a comma<br><br><br>E.g.<br>pp-tt,pp-tt",
12
- "type" : "string",
13
- "pattern" : "^(\\d{1,2}\\-\\d{1,2})(?:,(\\d{1,2}\\-\\d{1,2}))*$"
14
- }
15
- }}
16
- }
17
- ]
18
- }
@@ -1,80 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Time-of-Green / Time-of-Red",
5
- "n" : { "enum" : ["minToGEstimate", "maxToGEstimate", "likelyToGEstimate", "ToGConfidence", "minToREstimate", "maxToREstimate", "likelyToREstimate", "ToRConfidence"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "minToGEstimate" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for the minimum time for the signal group to go to green. If the signal group is green, it is the minimum time for the next green.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "maxToGEstimate" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Time stamp for the maximum time for the signal group to go to green. If the signal group is green, it is the maximum time for the next green.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
21
- "$ref": "../../core/definitions.json#/timestamp"
22
- }
23
- }}
24
- },
25
- {
26
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "likelyToGEstimate" }}},
27
- "then" : { "properties" : {
28
- "s" : {
29
- "$description": "Time stamp for the most likely time for the signal group to go to green. If the signal group is green, it is the most likely time for the next green.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
30
- "$ref": "../../core/definitions.json#/timestamp"
31
- }
32
- }}
33
- },
34
- {
35
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "ToGConfidence" }}},
36
- "then" : { "properties" : {
37
- "s" : {
38
- "$description": "Confidence of the likelyToGEstimate. 0-100%",
39
- "$ref": "../../core/definitions.json#/integer"
40
- }
41
- }}
42
- },
43
- {
44
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "minToREstimate" }}},
45
- "then" : { "properties" : {
46
- "s" : {
47
- "$description": "Time stamp for the minimum time for the signal group to go to red. If the signal group is red, it is the minimum time for the next red.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
48
- "$ref": "../../core/definitions.json#/timestamp"
49
- }
50
- }}
51
- },
52
- {
53
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "maxToREstimate" }}},
54
- "then" : { "properties" : {
55
- "s" : {
56
- "$description": "Time stamp for the maximum time for the signal group to go to red. If the signal group is red, it is the maximum time for the next red.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
57
- "$ref": "../../core/definitions.json#/timestamp"
58
- }
59
- }}
60
- },
61
- {
62
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "likelyToREstimate" }}},
63
- "then" : { "properties" : {
64
- "s" : {
65
- "$description": "Time stamp for the most likely time for the signal group to go to red. If the signal group is red, it is the most likely time for the next red.<br>Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
66
- "$ref": "../../core/definitions.json#/timestamp"
67
- }
68
- }}
69
- },
70
- {
71
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "ToRConfidence" }}},
72
- "then" : { "properties" : {
73
- "s" : {
74
- "$description": "Confidence of the likelyToREstimate. 0-100%",
75
- "$ref": "../../core/definitions.json#/integer"
76
- }
77
- }}
78
- }
79
- ]
80
- }
@@ -1,18 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Week time table",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Week time table. Defines time table to use for each week day<br>Each day is written as d-t where:<br>d=day of week<br>t=time table nr<br><br>Day of week legend:<br>0=Monday<br>1=Tuesday<br>2=Wednesday<br>3=Thursday<br>4=Friday<br>5=Saturday<br>6=Sunday<br><br>Each segment is separated with a comma<br>E.g.<br>d-t,d-t",
12
- "type" : "string",
13
- "pattern" : "^(\\d\\-\\d+)(?:,(\\d\\-\\d+))*$"
14
- }
15
- }}
16
- }
17
- ]
18
- }
@@ -1,18 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Time tables",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time Table. Defines time tables.<br>Each time definition is written as t-o-h-m where:<br>t=time table nr (1-12)<br>o=function<br>h=hour - switching time<br>m=minute - switching minute<br><br>Function legend:<br>0=no plan is selected by time table<br>1=set plan 1<br>…<br>16= set plan 16<br><br>hour and minute is using local time (not UTC)<br><br>Each time definition is separated with a comma <br><br>E.g.<br>t-o-h-m,t-o-h-m<br>",
12
- "type" : "string",
13
- "pattern" : "^(\\d{1,2}\\-\\d{1,2}\\-\\d{1,2}\\-\\d{1,2})(?:,(\\d{1,2}\\-\\d{1,2}\\-\\d{1,2}\\-\\d{1,2}))*$"
14
- }
15
- }}
16
- }
17
- ]
18
- }
@@ -1,18 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Cycle time",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Cycle time table<br>Each cycle time is written as pp-tt where:<br>pp=time plan<br>tt=cycle time in seconds<br><br>Each cycle time is separated with a comma<br><br><br>E.g.<br>pp-tt,pp-tt",
12
- "type" : "string",
13
- "pattern" : "^(\\d{1,2}\\-\\d+)(?:,(\\d{1,2}\\-\\d+))*$"
14
- }
15
- }}
16
- }
17
- ]
18
- }
@@ -1,17 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Forced input status",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Forced input status as text field",
12
- "type" : "string"
13
- }
14
- }}
15
- }
16
- ]
17
- }
@@ -1,27 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Operator logged in/out OP-panel",
5
- "n" : { "enum" : ["user", "status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "user" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "username: User currently logged in<br>nobody: No one logged in",
12
- "type" : "string"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "login: Somebody currently logged in<br>logout: Nobody currently logged in",
21
- "type" : "string",
22
- "enum" : ["login", "logout"]
23
- }
24
- }}
25
- }
26
- ]
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Operator logged in/out web-interface",
5
- "n" : { "enum" : ["user", "status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "user" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "username: User currently logged in<br>nobody: No one logged in",
12
- "type" : "string"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "login: Somebody currently logged in<br>logout: Nobody currently logged in",
21
- "type" : "string",
22
- "enum" : ["login", "logout"]
23
- }
24
- }}
25
- }
26
- ]
27
- }
@@ -1,17 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Version av Traffic Controller",
5
- "n" : { "enum" : ["status"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Manufacturer, product name and version of traffic controller",
12
- "type" : "string"
13
- }
14
- }}
15
- }
16
- ]
17
- }
@@ -1,68 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Current date and time",
5
- "n" : { "enum" : ["year", "month", "day", "hour", "minute", "second"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "year" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Year according to format YYYY. NOTE: UTC is used",
12
- "$ref": "../../core/definitions.json#/integer",
13
- "pattern" : "^\\d{4}$"
14
- }
15
- }}
16
- },
17
- {
18
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "month" }}},
19
- "then" : { "properties" : {
20
- "s" : {
21
- "$description": "Month (01-12) according to format MM. Note: UTC is used",
22
- "$ref": "../../core/definitions.json#/integer",
23
- "pattern" : "^\\d{2}$"
24
- }
25
- }}
26
- },
27
- {
28
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "day" }}},
29
- "then" : { "properties" : {
30
- "s" : {
31
- "$description": "Day of month (01-31) according to format DD. Note: UTC is used",
32
- "$ref": "../../core/definitions.json#/integer",
33
- "pattern" : "^\\d{2}$"
34
- }
35
- }}
36
- },
37
- {
38
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "hour" }}},
39
- "then" : { "properties" : {
40
- "s" : {
41
- "$description": "Hour of day (00-23) according to format DD. Note: UTC is used",
42
- "$ref": "../../core/definitions.json#/integer",
43
- "pattern" : "^\\d{2}$"
44
- }
45
- }}
46
- },
47
- {
48
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "minute" }}},
49
- "then" : { "properties" : {
50
- "s" : {
51
- "$description": "Minute (00-59) according to format MM. Note: UTC is used",
52
- "$ref": "../../core/definitions.json#/integer",
53
- "pattern" : "^\\d{2}$"
54
- }
55
- }}
56
- },
57
- {
58
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "second" }}},
59
- "then" : { "properties" : {
60
- "s" : {
61
- "$description": "Second (00-59) according to format SS. Note: UTC is used",
62
- "$ref": "../../core/definitions.json#/integer",
63
- "pattern" : "^\\d{2}$"
64
- }
65
- }}
66
- }
67
- ]
68
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Version av Traffic Controller",
5
- "n" : { "enum" : ["version","hash"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "version" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Version",
12
- "type" : "string"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "hash" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Hash",
21
- "type" : "string"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Number of vehicles",
5
- "n" : { "enum" : ["starttime", "vehicles"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "starttime" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "vehicles" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Number of vehicles on a given detector logic (since last update)",
21
- "$ref": "../../core/definitions.json#/integer"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Vehicle speed",
5
- "n" : { "enum" : ["starttime", "speed"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "starttime" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "speed" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Average speed in km/h (integer)",
21
- "$ref": "../../core/definitions.json#/integer"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Occupancy",
5
- "n" : { "enum" : ["starttime", "occupancy"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "starttime" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "occupancy" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Occupancy in percent (0-100%) (integer)",
21
- "$ref": "../../core/definitions.json#/integer"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,98 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Number of vehicles of given classification",
5
- "n" : { "enum" : ["starttime", "P", "PS", "L", "LS", "B", "SP", "MC", "C", "F"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "starttime" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "P" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Number of cars",
21
- "$ref": "../../core/definitions.json#/integer"
22
- }
23
- }}
24
- },
25
- {
26
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "PS" }}},
27
- "then" : { "properties" : {
28
- "s" : {
29
- "$description": "Number of cars with trailers",
30
- "$ref": "../../core/definitions.json#/integer"
31
- }
32
- }}
33
- },
34
- {
35
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "L" }}},
36
- "then" : { "properties" : {
37
- "s" : {
38
- "$description": "Number of trucks",
39
- "$ref": "../../core/definitions.json#/integer"
40
- }
41
- }}
42
- },
43
- {
44
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "LS" }}},
45
- "then" : { "properties" : {
46
- "s" : {
47
- "$description": "Number of trucks with trailers",
48
- "$ref": "../../core/definitions.json#/integer"
49
- }
50
- }}
51
- },
52
- {
53
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "B" }}},
54
- "then" : { "properties" : {
55
- "s" : {
56
- "$description": "Number of busses",
57
- "$ref": "../../core/definitions.json#/integer"
58
- }
59
- }}
60
- },
61
- {
62
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "SP" }}},
63
- "then" : { "properties" : {
64
- "s" : {
65
- "$description": "Number of trams",
66
- "$ref": "../../core/definitions.json#/integer"
67
- }
68
- }}
69
- },
70
- {
71
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "MC" }}},
72
- "then" : { "properties" : {
73
- "s" : {
74
- "$description": "Number of motor cycles",
75
- "$ref": "../../core/definitions.json#/integer"
76
- }
77
- }}
78
- },
79
- {
80
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "C" }}},
81
- "then" : { "properties" : {
82
- "s" : {
83
- "$description": "Number of bicycles",
84
- "$ref": "../../core/definitions.json#/integer"
85
- }
86
- }}
87
- },
88
- {
89
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "F" }}},
90
- "then" : { "properties" : {
91
- "s" : {
92
- "$description": "Number of pedestrians",
93
- "$ref": "../../core/definitions.json#/integer"
94
- }
95
- }}
96
- }
97
- ]
98
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Number of vehicles",
5
- "n" : { "enum" : ["start", "vehicles"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "vehicles" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Number of vehicles<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
21
- "$ref": "../../core/definitions.json#/integer_list"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Vehicle speed",
5
- "n" : { "enum" : ["start", "speed"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "speed" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Average speed in km/h (integer)<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
21
- "$ref": "../../core/definitions.json#/integer_list"
22
- }
23
- }}
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "allOf" : [
3
- { "properties" : {
4
- "description": "Traffic Counting: Occupancy",
5
- "n" : { "enum" : ["start", "occupancy"] }
6
- }},
7
- {
8
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
9
- "then" : { "properties" : {
10
- "s" : {
11
- "$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
12
- "$ref": "../../core/definitions.json#/timestamp"
13
- }
14
- }}
15
- },
16
- {
17
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "occupancy" }}},
18
- "then" : { "properties" : {
19
- "s" : {
20
- "$description": "Occupancy in percent (%) (0-100)<br> Value expressed as an integer with a range of 0-100.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
21
- "$ref": "../../core/definitions.json#/integer_list"
22
- }
23
- }}
24
- }
25
- ]
26
- }