atc-tools 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/bin/fpv +3 -0
  3. data/doc/ATCTools.html +133 -0
  4. data/doc/ATCTools/Aircraft.html +309 -0
  5. data/doc/ATCTools/Airport.html +634 -0
  6. data/doc/ATCTools/FlightPlan.html +544 -0
  7. data/doc/ATCTools/FlightPlanValidator.html +265 -0
  8. data/doc/ATCTools/HeadingDiscoveryError.html +135 -0
  9. data/doc/ATCTools/HeadingError.html +135 -0
  10. data/doc/ATCTools/NameDiscoveryError.html +135 -0
  11. data/doc/ATCTools/NoAircraftSelectedError.html +135 -0
  12. data/doc/ATCTools/VRC.html +656 -0
  13. data/doc/Aircraft.html +127 -0
  14. data/doc/Airport.html +564 -0
  15. data/doc/FlightPlan.html +127 -0
  16. data/doc/HeadingError.html +127 -0
  17. data/doc/NameDiscoveryError.html +127 -0
  18. data/doc/created.rid +7 -0
  19. data/doc/images/add.png +0 -0
  20. data/doc/images/arrow_up.png +0 -0
  21. data/doc/images/brick.png +0 -0
  22. data/doc/images/brick_link.png +0 -0
  23. data/doc/images/bug.png +0 -0
  24. data/doc/images/bullet_black.png +0 -0
  25. data/doc/images/bullet_toggle_minus.png +0 -0
  26. data/doc/images/bullet_toggle_plus.png +0 -0
  27. data/doc/images/date.png +0 -0
  28. data/doc/images/delete.png +0 -0
  29. data/doc/images/find.png +0 -0
  30. data/doc/images/loadingAnimation.gif +0 -0
  31. data/doc/images/macFFBgHack.png +0 -0
  32. data/doc/images/package.png +0 -0
  33. data/doc/images/page_green.png +0 -0
  34. data/doc/images/page_white_text.png +0 -0
  35. data/doc/images/page_white_width.png +0 -0
  36. data/doc/images/plugin.png +0 -0
  37. data/doc/images/ruby.png +0 -0
  38. data/doc/images/tag_blue.png +0 -0
  39. data/doc/images/tag_green.png +0 -0
  40. data/doc/images/transparent.png +0 -0
  41. data/doc/images/wrench.png +0 -0
  42. data/doc/images/wrench_orange.png +0 -0
  43. data/doc/images/zoom.png +0 -0
  44. data/doc/index.html +87 -0
  45. data/doc/js/darkfish.js +155 -0
  46. data/doc/js/jquery.js +18 -0
  47. data/doc/js/navigation.js +142 -0
  48. data/doc/js/search.js +94 -0
  49. data/doc/js/search_index.js +1 -0
  50. data/doc/js/searcher.js +228 -0
  51. data/doc/rdoc.css +595 -0
  52. data/doc/table_of_contents.html +132 -0
  53. data/lib/atc-tools.rb +1 -0
  54. data/lib/atc-tools/aircraft.rb +36 -0
  55. data/lib/atc-tools/airport.rb +103 -0
  56. data/lib/atc-tools/flight_plan.rb +119 -0
  57. data/lib/atc-tools/script/flight_plan_validator.rb +65 -0
  58. data/lib/atc-tools/vrc.rb +165 -0
  59. data/license.txt +19 -0
  60. metadata +174 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3b0aabd7c69aa90757c1f57f7a7e2cbf1cd19ba8
4
+ data.tar.gz: 2c05e5c13f12d93ebf7bc3d7e81b09b3ec5f8bed
5
+ SHA512:
6
+ metadata.gz: b8e8bee9f44bd9d71203e279757c8118ae9f6f0f01989cc9dbc262d1e0e1db668cf6dc21be3458fdacd1c55bbe8962d97dc52318c1b4cbfb5ff5fad80a48f8f8
7
+ data.tar.gz: f55c510589dee280526fb3891a051501efc8a232bf910e69db6636fa9be07876cf4689596efe9b574b384310000725dfe941f0ce9313acaab29ec3896291b7ec
data/bin/fpv ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'atc-tools/script/flight_plan_validator'
3
+ puts ATCTools::FlightPlanValidator.run
@@ -0,0 +1,133 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module ATCTools - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/atc-tools/aircraft.rb
53
+ <li>lib/atc-tools/airport.rb
54
+ <li>lib/atc-tools/flight_plan.rb
55
+ <li>lib/atc-tools/script/flight_plan_validator.rb
56
+ <li>lib/atc-tools/vrc.rb
57
+ </ul>
58
+ </nav>
59
+
60
+
61
+ </div>
62
+
63
+ <div id="class-metadata">
64
+
65
+
66
+
67
+
68
+
69
+ </div>
70
+
71
+ <div id="project-metadata">
72
+
73
+ <nav id="classindex-section" class="section project-section">
74
+ <h3 class="section-header">Class and Module Index</h3>
75
+
76
+ <ul class="link-list">
77
+
78
+ <li><a href="./ATCTools.html">ATCTools</a>
79
+
80
+ <li><a href="./ATCTools/Aircraft.html">ATCTools::Aircraft</a>
81
+
82
+ <li><a href="./ATCTools/Airport.html">ATCTools::Airport</a>
83
+
84
+ <li><a href="./ATCTools/FlightPlan.html">ATCTools::FlightPlan</a>
85
+
86
+ <li><a href="./ATCTools/FlightPlanValidator.html">ATCTools::FlightPlanValidator</a>
87
+
88
+ <li><a href="./ATCTools/HeadingDiscoveryError.html">ATCTools::HeadingDiscoveryError</a>
89
+
90
+ <li><a href="./ATCTools/NameDiscoveryError.html">ATCTools::NameDiscoveryError</a>
91
+
92
+ <li><a href="./ATCTools/NoAircraftSelectedError.html">ATCTools::NoAircraftSelectedError</a>
93
+
94
+ <li><a href="./ATCTools/VRC.html">ATCTools::VRC</a>
95
+
96
+ </ul>
97
+ </nav>
98
+
99
+ </div>
100
+ </nav>
101
+
102
+ <div id="documentation">
103
+ <h1 class="module">module ATCTools</h1>
104
+
105
+ <div id="description" class="description">
106
+
107
+ </div><!-- description -->
108
+
109
+
110
+
111
+
112
+ <section id="5Buntitled-5D" class="documentation-section">
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <!-- Methods -->
122
+
123
+ </section><!-- 5Buntitled-5D -->
124
+
125
+ </div><!-- documentation -->
126
+
127
+
128
+ <footer id="validator-badges">
129
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
130
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
131
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
132
+ </footer>
133
+
@@ -0,0 +1,309 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class ATCTools::Aircraft - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/atc-tools/aircraft.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link">Object
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-to_s">#to_s</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+
87
+ <nav id="classindex-section" class="section project-section">
88
+ <h3 class="section-header">Class and Module Index</h3>
89
+
90
+ <ul class="link-list">
91
+
92
+ <li><a href="../ATCTools.html">ATCTools</a>
93
+
94
+ <li><a href="../ATCTools/Aircraft.html">ATCTools::Aircraft</a>
95
+
96
+ <li><a href="../ATCTools/Airport.html">ATCTools::Airport</a>
97
+
98
+ <li><a href="../ATCTools/FlightPlan.html">ATCTools::FlightPlan</a>
99
+
100
+ <li><a href="../ATCTools/FlightPlanValidator.html">ATCTools::FlightPlanValidator</a>
101
+
102
+ <li><a href="../ATCTools/HeadingDiscoveryError.html">ATCTools::HeadingDiscoveryError</a>
103
+
104
+ <li><a href="../ATCTools/NameDiscoveryError.html">ATCTools::NameDiscoveryError</a>
105
+
106
+ <li><a href="../ATCTools/NoAircraftSelectedError.html">ATCTools::NoAircraftSelectedError</a>
107
+
108
+ <li><a href="../ATCTools/VRC.html">ATCTools::VRC</a>
109
+
110
+ </ul>
111
+ </nav>
112
+
113
+ </div>
114
+ </nav>
115
+
116
+ <div id="documentation">
117
+ <h1 class="class">class ATCTools::Aircraft</h1>
118
+
119
+ <div id="description" class="description">
120
+
121
+ </div><!-- description -->
122
+
123
+
124
+
125
+
126
+ <section id="5Buntitled-5D" class="documentation-section">
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <!-- Attributes -->
135
+ <section id="attribute-method-details" class="method-section section">
136
+ <h3 class="section-header">Attributes</h3>
137
+
138
+
139
+ <div id="attribute-i-code" class="method-detail">
140
+ <div class="method-heading attribute-method-heading">
141
+ <span class="method-name">code</span><span
142
+ class="attribute-access-type">[R]</span>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+
147
+ <p><a href="Aircraft.html">Aircraft</a> code. The identifier that would be
148
+ displayed on the radar scope (B732 = Boeing 737-200).</p>
149
+
150
+ </div>
151
+ </div>
152
+
153
+ <div id="attribute-i-equipment" class="method-detail">
154
+ <div class="method-heading attribute-method-heading">
155
+ <span class="method-name">equipment</span><span
156
+ class="attribute-access-type">[R]</span>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+
161
+ <p><a href="Aircraft.html">Aircraft</a> equipment code.</p>
162
+
163
+ </div>
164
+ </div>
165
+
166
+ <div id="attribute-i-info" class="method-detail">
167
+ <div class="method-heading attribute-method-heading">
168
+ <span class="method-name">info</span><span
169
+ class="attribute-access-type">[RW]</span>
170
+ </div>
171
+
172
+ <div class="method-description">
173
+
174
+ <p>Full aircraft info string.</p>
175
+
176
+ </div>
177
+ </div>
178
+
179
+ <div id="attribute-i-model" class="method-detail">
180
+ <div class="method-heading attribute-method-heading">
181
+ <span class="method-name">model</span><span
182
+ class="attribute-access-type">[R]</span>
183
+ </div>
184
+
185
+ <div class="method-description">
186
+
187
+ <p><a href="Aircraft.html">Aircraft</a> model number.</p>
188
+
189
+ </div>
190
+ </div>
191
+
192
+ <div id="attribute-i-raw" class="method-detail">
193
+ <div class="method-heading attribute-method-heading">
194
+ <span class="method-name">raw</span><span
195
+ class="attribute-access-type">[R]</span>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+
200
+ <p>Raw data used to initialize the object, typically from the <a
201
+ href="VRC.html">VRC</a> client.</p>
202
+
203
+ </div>
204
+ </div>
205
+
206
+ </section><!-- attribute-method-details -->
207
+
208
+
209
+ <!-- Methods -->
210
+
211
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
212
+ <h3 class="section-header">Public Class Methods</h3>
213
+
214
+
215
+ <div id="method-c-new" class="method-detail ">
216
+
217
+ <div class="method-heading">
218
+ <span class="method-name">new</span><span
219
+ class="method-args">(aircraft_code = nil, **kvargs)</span>
220
+
221
+ <span class="method-click-advice">click to toggle source</span>
222
+
223
+ </div>
224
+
225
+
226
+ <div class="method-description">
227
+
228
+ <p>Params:</p>
229
+
230
+ <pre>:info, :model, :code, :equipment
231
+ -- See instance variables for descriptions.</pre>
232
+
233
+
234
+
235
+
236
+ <div class="method-source-code" id="new-source">
237
+ <pre><span class="ruby-comment"># File lib/atc-tools/aircraft.rb, line 19</span>
238
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">aircraft_code</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-operator">**</span><span class="ruby-identifier">kvargs</span>)
239
+ <span class="ruby-ivar">@raw</span> = <span class="ruby-identifier">aircraft_code</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-value">:code</span>, <span class="ruby-string">&#39;&#39;</span>)
240
+ <span class="ruby-ivar">@info</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:info</span>, <span class="ruby-string">&#39;&#39;</span>
241
+ <span class="ruby-ivar">@model</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span> <span class="ruby-value">:model</span>, <span class="ruby-string">&#39;&#39;</span>
242
+
243
+ <span class="ruby-identifier">params</span> = <span class="ruby-ivar">@raw</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp">%r{(?:([a-zA-Z]+)/)?(\w+)(?:/([a-zA-Z]+))?}</span>).<span class="ruby-identifier">flatten</span>
244
+
245
+ <span class="ruby-ivar">@code</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-value">:code</span>, <span class="ruby-keyword">nil</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&#39;&#39;</span>
246
+ <span class="ruby-ivar">@equipment</span> = <span class="ruby-identifier">kvargs</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-value">:equipment</span>, <span class="ruby-keyword">nil</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&#39;&#39;</span>
247
+ <span class="ruby-keyword">end</span></pre>
248
+ </div><!-- new-source -->
249
+
250
+ </div>
251
+
252
+
253
+
254
+
255
+ </div><!-- new-method -->
256
+
257
+
258
+ </section><!-- public-class-method-details -->
259
+
260
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
261
+ <h3 class="section-header">Public Instance Methods</h3>
262
+
263
+
264
+ <div id="method-i-to_s" class="method-detail ">
265
+
266
+ <div class="method-heading">
267
+ <span class="method-name">to_s</span><span
268
+ class="method-args">()</span>
269
+
270
+ <span class="method-click-advice">click to toggle source</span>
271
+
272
+ </div>
273
+
274
+
275
+ <div class="method-description">
276
+
277
+ <p>Returns @raw.</p>
278
+
279
+
280
+
281
+
282
+ <div class="method-source-code" id="to_s-source">
283
+ <pre><span class="ruby-comment"># File lib/atc-tools/aircraft.rb, line 31</span>
284
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
285
+ <span class="ruby-ivar">@raw</span>
286
+ <span class="ruby-keyword">end</span></pre>
287
+ </div><!-- to_s-source -->
288
+
289
+ </div>
290
+
291
+
292
+
293
+
294
+ </div><!-- to_s-method -->
295
+
296
+
297
+ </section><!-- public-instance-method-details -->
298
+
299
+ </section><!-- 5Buntitled-5D -->
300
+
301
+ </div><!-- documentation -->
302
+
303
+
304
+ <footer id="validator-badges">
305
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
306
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.1.
307
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
308
+ </footer>
309
+