Class: AIXM::Component::ApproachLighting
- Inherits:
-
AIXM::Component
- Object
- AIXM::Component
- AIXM::Component::ApproachLighting
- Defined in:
- lib/aixm/component/approach_lighting.rb
Overview
Approach lighting system (ALS)
Cheat Sheet in Pseudo Code:
approach_lighting = AIXM.approach_lighting(
type: TYPES
)
approach_lighting.length = AIXM.d or nil
approach_lighting.intensity = INTENSITIES or nil
approach_lighting.sequenced_flash = true or false or nil (means: unknown, default)
approach_lighting.flash_description = String or nil
approach_lighting.remarks = String or nil
Constant Summary collapse
- TYPES =
{ A: :cat_1, B: :cat_2, C: :cat_3, D: :cat_2_and_3, E: :simple, F: :circling, G: :alignment, ALSAF: :high_intensity, MALS: :medium_intensity, MALSR: :medium_intensity_with_alignment, SALS: :short, SSALS: :simplified_short, SSALR: :simplified_short_with_alignment, LDIN: :lead_in, ODALS: :omni_directional, AFOVRN: :usaf_overrun, MILOVRN: :military_overrun, OTHER: :other # specify in remarks }.freeze
Constants included from AIXM::Concerns::Intensity
AIXM::Concerns::Intensity::INTENSITIES
Instance Attribute Summary collapse
-
#flash_description ⇒ Object
Description of the flash sequence.
-
#length ⇒ Object
Length.
-
#sequenced_flash ⇒ Object
Whether sequenced flash is available.
-
#type ⇒ Object
Type of the approach lighting system.
Attributes included from AIXM::Concerns::Remarks
Attributes included from AIXM::Concerns::Intensity
Attributes inherited from AIXM::Component
Instance Method Summary collapse
-
#approach_lightable ⇒ AIXM::Component::Runway::Direction, AIXM::Component::FATO::Direction
Approach lighted entity.
-
#initialize(type:) ⇒ ApproachLighting
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
Methods included from AIXM::Concerns::Association
Methods included from AIXM::Concerns::HashEquality
Methods included from AIXM::Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from AIXM::Concerns::Memoize
Constructor Details
#initialize(type:) ⇒ ApproachLighting
See the cheat sheet for examples on how to create instances of this class.
83 84 85 |
# File 'lib/aixm/component/approach_lighting.rb', line 83 def initialize(type:) self.type = type end |
Instance Attribute Details
#flash_description ⇒ String? #flash_description=(value) ⇒ Object
Description of the flash sequence
79 80 81 |
# File 'lib/aixm/component/approach_lighting.rb', line 79 def flash_description @flash_description end |
#length ⇒ AIXM::D? #length=(value) ⇒ Object
Length
63 64 65 |
# File 'lib/aixm/component/approach_lighting.rb', line 63 def length @length end |
#sequenced_flash ⇒ Boolean? #sequenced_flash=(value) ⇒ Object
Whether sequenced flash is available
71 72 73 |
# File 'lib/aixm/component/approach_lighting.rb', line 71 def sequenced_flash @sequenced_flash end |
#type ⇒ Symbol #type=(value) ⇒ Object
Type of the approach lighting system
55 56 57 |
# File 'lib/aixm/component/approach_lighting.rb', line 55 def type @type end |
Instance Method Details
#approach_lightable ⇒ AIXM::Component::Runway::Direction, AIXM::Component::FATO::Direction
Returns approach lighted entity.
47 |
# File 'lib/aixm/component/approach_lighting.rb', line 47 belongs_to :approach_lightable |
#inspect ⇒ String
88 89 90 |
# File 'lib/aixm/component/approach_lighting.rb', line 88 def inspect %Q(#<#{self.class} type=#{type.inspect}>) end |