Class: AIXM::Component::ApproachLighting

Inherits:
AIXM::Component show all
Includes:
AIXM::Concerns::Association, AIXM::Concerns::Intensity, AIXM::Concerns::Remarks
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

Attributes included from AIXM::Concerns::Remarks

#remarks

Attributes included from AIXM::Concerns::Intensity

#intensity

Attributes inherited from AIXM::Component

#meta

Instance Method Summary collapse

Methods included from AIXM::Concerns::Association

included

Methods included from AIXM::Concerns::HashEquality

#eql?, #hash

Methods included from AIXM::Concerns::XMLBuilder

#build_fragment, #to_uid, #to_xml

Methods included from AIXM::Concerns::Memoize

included, method

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_descriptionString? #flash_description=(value) ⇒ Object

Description of the flash sequence

Overloads:

  • #flash_descriptionString?

    Returns:

    • (String, nil)
  • #flash_description=(value) ⇒ Object

    Parameters:

    • value (String, nil)


79
80
81
# File 'lib/aixm/component/approach_lighting.rb', line 79

def flash_description
  @flash_description
end

#lengthAIXM::D? #length=(value) ⇒ Object

Length

Overloads:



63
64
65
# File 'lib/aixm/component/approach_lighting.rb', line 63

def length
  @length
end

#sequenced_flashBoolean? #sequenced_flash=(value) ⇒ Object

Whether sequenced flash is available

Overloads:

  • #sequenced_flashBoolean?

    Returns nil means unknown.

    Returns:

    • (Boolean, nil)

      nil means unknown

  • #sequenced_flash=(value) ⇒ Object

    Parameters:

    • value (Boolean, nil)

      nil means unknown



71
72
73
# File 'lib/aixm/component/approach_lighting.rb', line 71

def sequenced_flash
  @sequenced_flash
end

#typeSymbol #type=(value) ⇒ Object

Type of the approach lighting system

Overloads:

  • #typeSymbol

    Returns any of TYPES.

    Returns:

    • (Symbol)

      any of TYPES

  • #type=(value) ⇒ Object

    Parameters:

    • value (Symbol)

      any of TYPES



55
56
57
# File 'lib/aixm/component/approach_lighting.rb', line 55

def type
  @type
end

Instance Method Details

#approach_lightableAIXM::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

#inspectString

Returns:

  • (String)


88
89
90
# File 'lib/aixm/component/approach_lighting.rb', line 88

def inspect
  %Q(#<#{self.class} type=#{type.inspect}>)
end