Class: AIXM::Component::FATO::Direction
- Includes:
- AIXM::Concerns::Association, AIXM::Concerns::Memoize, AIXM::Concerns::Remarks, AIXM::Concerns::XMLBuilder
- Defined in:
- lib/aixm/component/fato.rb
Overview
FATO directions further describe each direction to and from the FATO.
Instance Attribute Summary collapse
-
#geographic_bearing ⇒ AIXM::A?
(true) geographic bearing in degrees.
-
#name ⇒ Object
Name of the FATO direction (e.g. “12” or “16L”).
-
#vasis ⇒ AIXM::Component::VASIS?
Visual approach slope indicator system.
Attributes included from AIXM::Concerns::Remarks
Instance Method Summary collapse
- #add_approach_lighting(approach_lighting) ⇒ self
- #add_lighting(lighting) ⇒ Object
-
#approach_lightings ⇒ Array<AIXM::Component::ApproachLighting>
Installed approach lighting systems.
-
#fato ⇒ AIXM::Component::FATO
FATO the FATO direction is further describing.
-
#initialize(name:) ⇒ Direction
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
-
#lightings ⇒ Array<AIXM::Component::Lighting>
Installed lighting systems.
-
#magnetic_bearing ⇒ AIXM::A
Magnetic bearing in degrees.
Methods included from AIXM::Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from AIXM::Concerns::Memoize
Methods included from AIXM::Concerns::Association
Constructor Details
#initialize(name:) ⇒ Direction
See the cheat sheet for examples on how to
create instances of this class.
203 204 205 206 |
# File 'lib/aixm/component/fato.rb', line 203 def initialize(name:) self.name = name self.vasis = AIXM.vasis end |
Instance Attribute Details
#geographic_bearing ⇒ AIXM::A?
Returns (true) geographic bearing in degrees.
195 196 197 |
# File 'lib/aixm/component/fato.rb', line 195 def geographic_bearing @geographic_bearing end |
#name ⇒ AIXM::A #name=(value) ⇒ Object
Name of the FATO direction (e.g. “12” or “16L”)
192 193 194 |
# File 'lib/aixm/component/fato.rb', line 192 def name @name end |
#vasis ⇒ AIXM::Component::VASIS?
Returns visual approach slope indicator system.
199 200 201 |
# File 'lib/aixm/component/fato.rb', line 199 def vasis @vasis end |
Instance Method Details
#add_approach_lighting(approach_lighting) ⇒ self
180 |
# File 'lib/aixm/component/fato.rb', line 180 has_many :approach_lightings, as: :approach_lightable |
#add_lighting(lighting) ⇒ Object
172 |
# File 'lib/aixm/component/fato.rb', line 172 has_many :lightings, as: :lightable |
#approach_lightings ⇒ Array<AIXM::Component::ApproachLighting>
Returns installed approach lighting systems.
180 |
# File 'lib/aixm/component/fato.rb', line 180 has_many :approach_lightings, as: :approach_lightable |
#fato ⇒ AIXM::Component::FATO
Returns FATO the FATO direction is further describing.
184 |
# File 'lib/aixm/component/fato.rb', line 184 belongs_to :fato |
#inspect ⇒ String
209 210 211 |
# File 'lib/aixm/component/fato.rb', line 209 def inspect %Q(#<#{self.class} airport=#{fato&.airport&.id.inspect} name=#{name.to_s(:runway).inspect}>) end |
#lightings ⇒ Array<AIXM::Component::Lighting>
Returns installed lighting systems.
172 |
# File 'lib/aixm/component/fato.rb', line 172 has_many :lightings, as: :lightable |
#magnetic_bearing ⇒ AIXM::A
Returns magnetic bearing in degrees.
225 226 227 228 229 |
# File 'lib/aixm/component/fato.rb', line 225 def magnetic_bearing if geographic_bearing && fato.airport.declination geographic_bearing - fato.airport.declination end end |