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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fed88025943afac975e48c5ce3345ea888651d74c3b71eca02d20e46448690ec
4
- data.tar.gz: 9cb403404dad2d438eb2b5c51eb14eca7c4d937fb3d610cbd2186725e4de6b33
3
+ metadata.gz: 1f413dd61c3d8c86ab1455ac02b175b9791bb958dba827301e80b9070da4d334
4
+ data.tar.gz: 99af9cbaac9dc80b989a776b6fbbce5cfbbbc355e08399a3b9eff2d401cfc3ab
5
5
  SHA512:
6
- metadata.gz: 374ff54aa6b69e4c3b865e2bae151f0706a908187940fac4ad41971bc3b7d32cee7c3966eb8d5746a2aa8c5289c269367784bd64429a58e5c81d8f92b146afb9
7
- data.tar.gz: e97c1b45d3f90baf44deeee5359263fb8bbc653b1121a7a1f4dbda74f73cf87d0da92d68752bd80a092bb55c1d46b7630e2b15bf4a274e40241d5af70fb81faa
6
+ metadata.gz: a0656a181b391a8b4e0d56ef2d4563fdbe5fbf0331bc413436649ec76bafae2eb10cd2b04023f8013d92791e5bd251178f8878ee795fe263c1a98d50e9d8e3e8
7
+ data.tar.gz: 6a5ce0d1a4ba770ae6e282b5bf2e3189cfd0fec08e81357c0436ed89d47622ec0bf44ce378c50dc1876f1bea0df08b73b3ed61594468a02484fca8b06431ed3b
data/CHANGELOG.md CHANGED
@@ -5,3 +5,6 @@
5
5
 
6
6
  ## [0.2.0] - 2021-05-19
7
7
  - Updated interface
8
+
9
+ ## [0.2.1] - 2021-06-17
10
+ - Updated schemas
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schemer (0.2.0)
4
+ rsmp_schemer (0.2.1)
5
5
  json_schemer (~> 0.2.18)
6
6
 
7
7
  GEM
@@ -22,15 +22,15 @@ GEM
22
22
  rspec-core (~> 3.9.0)
23
23
  rspec-expectations (~> 3.9.0)
24
24
  rspec-mocks (~> 3.9.0)
25
- rspec-core (3.9.1)
26
- rspec-support (~> 3.9.1)
27
- rspec-expectations (3.9.1)
25
+ rspec-core (3.9.3)
26
+ rspec-support (~> 3.9.3)
27
+ rspec-expectations (3.9.4)
28
28
  diff-lcs (>= 1.2.0, < 2.0)
29
29
  rspec-support (~> 3.9.0)
30
30
  rspec-mocks (3.9.1)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
32
  rspec-support (~> 3.9.0)
33
- rspec-support (3.9.2)
33
+ rspec-support (3.9.4)
34
34
  uri_template (0.7.0)
35
35
 
36
36
  PLATFORMS
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSMP
4
4
  module Schemer
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
@@ -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
  }
@@ -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
  }