rsmp_schemer 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/Gemfile.lock +5 -5
  4. data/lib/rsmp_schemer/version.rb +1 -1
  5. data/schemas/tlc_1.0.10/schema/tlc/alarms/A0301.json +1 -1
  6. data/schemas/tlc_1.0.10/schema/tlc/alarms/A0302.json +1 -1
  7. data/schemas/tlc_1.0.10/schema/tlc/commands/M0002.json +1 -1
  8. data/schemas/tlc_1.0.10/schema/tlc/commands/M0003.json +1 -1
  9. data/schemas/tlc_1.0.10/schema/tlc/commands/M0004.json +1 -1
  10. data/schemas/tlc_1.0.10/schema/tlc/commands/M0005.json +1 -1
  11. data/schemas/tlc_1.0.10/schema/tlc/commands/M0006.json +1 -1
  12. data/schemas/tlc_1.0.10/schema/tlc/commands/M0007.json +1 -1
  13. data/schemas/tlc_1.0.10/schema/tlc/commands/M0008.json +2 -2
  14. data/schemas/tlc_1.0.10/schema/tlc/commands/M0010.json +1 -1
  15. data/schemas/tlc_1.0.10/schema/tlc/commands/M0011.json +1 -1
  16. data/schemas/tlc_1.0.10/schema/tlc/commands/M0019.json +100 -0
  17. data/schemas/tlc_1.0.10/schema/tlc/statuses/S0005.json +1 -1
  18. data/schemas/tlc_1.0.10/schema/tlc/statuses/S0006.json +1 -1
  19. data/schemas/tlc_1.0.13/schema/tlc/alarms/A0301.json +1 -1
  20. data/schemas/tlc_1.0.13/schema/tlc/alarms/A0302.json +1 -1
  21. data/schemas/tlc_1.0.13/schema/tlc/commands/M0002.json +1 -1
  22. data/schemas/tlc_1.0.13/schema/tlc/commands/M0003.json +1 -1
  23. data/schemas/tlc_1.0.13/schema/tlc/commands/M0004.json +1 -1
  24. data/schemas/tlc_1.0.13/schema/tlc/commands/M0005.json +1 -1
  25. data/schemas/tlc_1.0.13/schema/tlc/commands/M0006.json +1 -1
  26. data/schemas/tlc_1.0.13/schema/tlc/commands/M0007.json +1 -1
  27. data/schemas/tlc_1.0.13/schema/tlc/commands/M0008.json +2 -2
  28. data/schemas/tlc_1.0.13/schema/tlc/commands/M0010.json +1 -1
  29. data/schemas/tlc_1.0.13/schema/tlc/commands/M0011.json +1 -1
  30. data/schemas/tlc_1.0.13/schema/tlc/commands/M0019.json +2 -2
  31. data/schemas/tlc_1.0.13/schema/tlc/statuses/S0005.json +1 -1
  32. data/schemas/tlc_1.0.13/schema/tlc/statuses/S0006.json +1 -1
  33. data/schemas/tlc_1.0.14/schema/tlc/alarms/A0301.json +1 -1
  34. data/schemas/tlc_1.0.14/schema/tlc/alarms/A0302.json +1 -1
  35. data/schemas/tlc_1.0.14/schema/tlc/commands/M0002.json +1 -1
  36. data/schemas/tlc_1.0.14/schema/tlc/commands/M0003.json +1 -1
  37. data/schemas/tlc_1.0.14/schema/tlc/commands/M0004.json +1 -1
  38. data/schemas/tlc_1.0.14/schema/tlc/commands/M0005.json +1 -1
  39. data/schemas/tlc_1.0.14/schema/tlc/commands/M0006.json +1 -1
  40. data/schemas/tlc_1.0.14/schema/tlc/commands/M0007.json +1 -1
  41. data/schemas/tlc_1.0.14/schema/tlc/commands/M0008.json +2 -2
  42. data/schemas/tlc_1.0.14/schema/tlc/commands/M0010.json +1 -1
  43. data/schemas/tlc_1.0.14/schema/tlc/commands/M0011.json +1 -1
  44. data/schemas/tlc_1.0.14/schema/tlc/commands/M0019.json +2 -2
  45. data/schemas/tlc_1.0.14/schema/tlc/statuses/S0005.json +1 -1
  46. data/schemas/tlc_1.0.14/schema/tlc/statuses/S0006.json +1 -1
  47. data/schemas/tlc_1.0.7/schema/tlc/alarms/A0301.json +1 -1
  48. data/schemas/tlc_1.0.7/schema/tlc/alarms/A0302.json +1 -1
  49. data/schemas/tlc_1.0.7/schema/tlc/commands/M0002.json +1 -1
  50. data/schemas/tlc_1.0.7/schema/tlc/commands/M0003.json +1 -1
  51. data/schemas/tlc_1.0.7/schema/tlc/commands/M0004.json +1 -1
  52. data/schemas/tlc_1.0.7/schema/tlc/commands/M0005.json +1 -1
  53. data/schemas/tlc_1.0.7/schema/tlc/commands/M0006.json +1 -1
  54. data/schemas/tlc_1.0.7/schema/tlc/commands/M0007.json +1 -1
  55. data/schemas/tlc_1.0.7/schema/tlc/commands/M0008.json +2 -2
  56. data/schemas/tlc_1.0.7/schema/tlc/commands/M0010.json +1 -1
  57. data/schemas/tlc_1.0.7/schema/tlc/commands/M0011.json +1 -1
  58. data/schemas/tlc_1.0.7/schema/tlc/commands/M0019.json +100 -0
  59. data/schemas/tlc_1.0.7/schema/tlc/statuses/S0005.json +1 -1
  60. data/schemas/tlc_1.0.7/schema/tlc/statuses/S0006.json +1 -1
  61. data/schemas/tlc_1.0.8/schema/tlc/alarms/A0301.json +1 -1
  62. data/schemas/tlc_1.0.8/schema/tlc/alarms/A0302.json +1 -1
  63. data/schemas/tlc_1.0.8/schema/tlc/commands/M0002.json +1 -1
  64. data/schemas/tlc_1.0.8/schema/tlc/commands/M0003.json +1 -1
  65. data/schemas/tlc_1.0.8/schema/tlc/commands/M0004.json +1 -1
  66. data/schemas/tlc_1.0.8/schema/tlc/commands/M0005.json +1 -1
  67. data/schemas/tlc_1.0.8/schema/tlc/commands/M0006.json +1 -1
  68. data/schemas/tlc_1.0.8/schema/tlc/commands/M0007.json +1 -1
  69. data/schemas/tlc_1.0.8/schema/tlc/commands/M0008.json +2 -2
  70. data/schemas/tlc_1.0.8/schema/tlc/commands/M0010.json +1 -1
  71. data/schemas/tlc_1.0.8/schema/tlc/commands/M0011.json +1 -1
  72. data/schemas/tlc_1.0.8/schema/tlc/commands/M0019.json +100 -0
  73. data/schemas/tlc_1.0.8/schema/tlc/statuses/S0005.json +1 -1
  74. data/schemas/tlc_1.0.8/schema/tlc/statuses/S0006.json +1 -1
  75. data/schemas/tlc_1.0.9/schema/tlc/alarms/A0301.json +1 -1
  76. data/schemas/tlc_1.0.9/schema/tlc/alarms/A0302.json +1 -1
  77. data/schemas/tlc_1.0.9/schema/tlc/commands/M0002.json +1 -1
  78. data/schemas/tlc_1.0.9/schema/tlc/commands/M0003.json +1 -1
  79. data/schemas/tlc_1.0.9/schema/tlc/commands/M0004.json +1 -1
  80. data/schemas/tlc_1.0.9/schema/tlc/commands/M0005.json +1 -1
  81. data/schemas/tlc_1.0.9/schema/tlc/commands/M0006.json +1 -1
  82. data/schemas/tlc_1.0.9/schema/tlc/commands/M0007.json +1 -1
  83. data/schemas/tlc_1.0.9/schema/tlc/commands/M0008.json +2 -2
  84. data/schemas/tlc_1.0.9/schema/tlc/commands/M0010.json +1 -1
  85. data/schemas/tlc_1.0.9/schema/tlc/commands/M0011.json +1 -1
  86. data/schemas/tlc_1.0.9/schema/tlc/commands/M0019.json +100 -0
  87. data/schemas/tlc_1.0.9/schema/tlc/statuses/S0005.json +1 -1
  88. data/schemas/tlc_1.0.9/schema/tlc/statuses/S0006.json +1 -1
  89. metadata +6 -2
@@ -26,7 +26,7 @@
26
26
  "properties" : {
27
27
  "s" : {
28
28
  "description" : "False: Emergency stage inactive\nTrue: Emergency stage active",
29
- "type" : "boolean"
29
+ "$ref" : "../../core/definitions.json#/boolean"
30
30
  }
31
31
  }
32
32
  }
@@ -96,7 +96,7 @@
96
96
  "properties" : {
97
97
  "v" : {
98
98
  "description" : "Manually controlled detector logic (True/False)",
99
- "type" : "boolean"
99
+ "$ref" : "../../core/definitions.json#/boolean"
100
100
  }
101
101
  }
102
102
  }
@@ -97,7 +97,7 @@
97
97
  "properties" : {
98
98
  "v" : {
99
99
  "description" : "Manually controlled detector logic (True/False)",
100
- "type" : "boolean"
100
+ "$ref" : "../../core/definitions.json#/boolean"
101
101
  }
102
102
  }
103
103
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses time plan according to programming\nTrue: Controller uses time plan according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses traffic situation according to own programming\nTrue: Controller uses traffic situation according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "True: Restart controller",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Activate emergency route\nTrue: Deactivate emergency route",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Deactivate input\nTrue: Activate input",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: Deactivate fixed time control\nTrue: Activate fixed time control",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Deactivate manual control of detector logic\nTrue: Activate manual control of detector logic",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -70,7 +70,7 @@
70
70
  "properties" : {
71
71
  "v" : {
72
72
  "description" : "False: Deactivate detector logic\nTrue: Activate detector logic",
73
- "type" : "boolean"
73
+ "$ref" : "../../core/definitions.json#/boolean"
74
74
  }
75
75
  }
76
76
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: No command (default)\nTrue: Order a signal group to green",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: No command (default)\nTrue: Order a signal group to red",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -31,7 +31,7 @@
31
31
  "properties" : {
32
32
  "v" : {
33
33
  "description" : "False: Force input\nTrue: Release input",
34
- "type" : "boolean"
34
+ "$ref" : "../../core/definitions.json#/boolean"
35
35
  }
36
36
  }
37
37
  }
@@ -91,7 +91,7 @@
91
91
  "properties" : {
92
92
  "v" : {
93
93
  "description" : "False: input forced to False\nTrue: input forced to True",
94
- "type" : "boolean"
94
+ "$ref" : "../../core/definitions.json#/boolean"
95
95
  }
96
96
  }
97
97
  }
@@ -25,7 +25,7 @@
25
25
  "properties" : {
26
26
  "s" : {
27
27
  "description" : "False: Controller is not in start up mode\nTrue: Controller is currently in start up mode",
28
- "type" : "boolean"
28
+ "$ref" : "../../core/definitions.json#/boolean"
29
29
  }
30
30
  }
31
31
  }
@@ -26,7 +26,7 @@
26
26
  "properties" : {
27
27
  "s" : {
28
28
  "description" : "False: Emergency stage inactive\nTrue: Emergency stage active",
29
- "type" : "boolean"
29
+ "$ref" : "../../core/definitions.json#/boolean"
30
30
  }
31
31
  }
32
32
  }
@@ -96,7 +96,7 @@
96
96
  "properties" : {
97
97
  "v" : {
98
98
  "description" : "Manually controlled detector logic (True/False)",
99
- "type" : "boolean"
99
+ "$ref" : "../../core/definitions.json#/boolean"
100
100
  }
101
101
  }
102
102
  }
@@ -97,7 +97,7 @@
97
97
  "properties" : {
98
98
  "v" : {
99
99
  "description" : "Manually controlled detector logic (True/False)",
100
- "type" : "boolean"
100
+ "$ref" : "../../core/definitions.json#/boolean"
101
101
  }
102
102
  }
103
103
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses time plan according to programming\nTrue: Controller uses time plan according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses traffic situation according to own programming\nTrue: Controller uses traffic situation according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "True: Restart controller",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Activate emergency route\nTrue: Deactivate emergency route",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Deactivate input\nTrue: Activate input",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: Deactivate fixed time control\nTrue: Activate fixed time control",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Deactivate manual control of detector logic\nTrue: Activate manual control of detector logic",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -70,7 +70,7 @@
70
70
  "properties" : {
71
71
  "v" : {
72
72
  "description" : "False: Deactivate detector logic\nTrue: Activate detector logic",
73
- "type" : "boolean"
73
+ "$ref" : "../../core/definitions.json#/boolean"
74
74
  }
75
75
  }
76
76
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: No command (default)\nTrue: Order a signal group to green",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -29,7 +29,7 @@
29
29
  "properties" : {
30
30
  "v" : {
31
31
  "description" : "False: No command (default)\nTrue: Order a signal group to red",
32
- "type" : "boolean"
32
+ "$ref" : "../../core/definitions.json#/boolean"
33
33
  }
34
34
  }
35
35
  }
@@ -0,0 +1,100 @@
1
+ {
2
+ "allOf" : [
3
+ {
4
+ "description" : "Force input\n\nForce a given input (1-255) of the controllers general purpose I/O to either True or False. Can be used for all types of input where the traffic light controller must react to external control.\n\nCan be used for bus priority, coordination between traffic controllers, external control systems, and much more.\n\nRequires security code 2.",
5
+ "properties" : {
6
+ "n" : {
7
+ "enum" : [
8
+ "input",
9
+ "inputValue",
10
+ "securityCode",
11
+ "status"
12
+ ]
13
+ },
14
+ "cO" : {
15
+ "const" : "setInput"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "if" : {
21
+ "required" : [
22
+ "n"
23
+ ],
24
+ "properties" : {
25
+ "n" : {
26
+ "const" : "status"
27
+ }
28
+ }
29
+ },
30
+ "then" : {
31
+ "properties" : {
32
+ "v" : {
33
+ "description" : "False: Force input\nTrue: Release input",
34
+ "$ref" : "../../core/definitions.json#/boolean"
35
+ }
36
+ }
37
+ }
38
+ },
39
+ {
40
+ "if" : {
41
+ "required" : [
42
+ "n"
43
+ ],
44
+ "properties" : {
45
+ "n" : {
46
+ "const" : "securityCode"
47
+ }
48
+ }
49
+ },
50
+ "then" : {
51
+ "properties" : {
52
+ "v" : {
53
+ "description" : "Security code 2",
54
+ "type" : "string"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "if" : {
61
+ "required" : [
62
+ "n"
63
+ ],
64
+ "properties" : {
65
+ "n" : {
66
+ "const" : "input"
67
+ }
68
+ }
69
+ },
70
+ "then" : {
71
+ "properties" : {
72
+ "v" : {
73
+ "description" : "Number of Input",
74
+ "$ref" : "../../core/definitions.json#/integer"
75
+ }
76
+ }
77
+ }
78
+ },
79
+ {
80
+ "if" : {
81
+ "required" : [
82
+ "n"
83
+ ],
84
+ "properties" : {
85
+ "n" : {
86
+ "const" : "inputValue"
87
+ }
88
+ }
89
+ },
90
+ "then" : {
91
+ "properties" : {
92
+ "v" : {
93
+ "description" : "False: input forced to False\nTrue: input forced to True",
94
+ "$ref" : "../../core/definitions.json#/boolean"
95
+ }
96
+ }
97
+ }
98
+ }
99
+ ]
100
+ }
@@ -25,7 +25,7 @@
25
25
  "properties" : {
26
26
  "s" : {
27
27
  "description" : "False: Controller is not in start up mode\nTrue: Controller is currently in start up mode",
28
- "type" : "boolean"
28
+ "$ref" : "../../core/definitions.json#/boolean"
29
29
  }
30
30
  }
31
31
  }
@@ -26,7 +26,7 @@
26
26
  "properties" : {
27
27
  "s" : {
28
28
  "description" : "False: Emergency stage inactive\nTrue: Emergency stage active",
29
- "type" : "boolean"
29
+ "$ref" : "../../core/definitions.json#/boolean"
30
30
  }
31
31
  }
32
32
  }
@@ -96,7 +96,7 @@
96
96
  "properties" : {
97
97
  "v" : {
98
98
  "description" : "Manually controlled detector logic (True/False)",
99
- "type" : "boolean"
99
+ "$ref" : "../../core/definitions.json#/boolean"
100
100
  }
101
101
  }
102
102
  }
@@ -97,7 +97,7 @@
97
97
  "properties" : {
98
98
  "v" : {
99
99
  "description" : "Manually controlled detector logic (True/False)",
100
- "type" : "boolean"
100
+ "$ref" : "../../core/definitions.json#/boolean"
101
101
  }
102
102
  }
103
103
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses time plan according to programming\nTrue: Controller uses time plan according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }
@@ -30,7 +30,7 @@
30
30
  "properties" : {
31
31
  "v" : {
32
32
  "description" : "False: Controller uses traffic situation according to own programming\nTrue: Controller uses traffic situation according to command",
33
- "type" : "boolean"
33
+ "$ref" : "../../core/definitions.json#/boolean"
34
34
  }
35
35
  }
36
36
  }