Class: AIXM::Feature::NavigationalAid::Marker

Inherits:
AIXM::Feature::NavigationalAid show all
Defined in:
lib/aixm/feature/navigational_aid/marker.rb

Overview

Note:

Marker are not fully implemented because they usually have to be associated with an ILS which are not implemented as of now.

Marker beacons guide an aircraft on a specific route e.g. towards a runway (which is why marker beacons are often part of an ILS). Their VHF radio beacons are transmitted on 75 MHz.

Cheat Sheet in Pseudo Code:

marker = AIXM.marker(
  source: String or nil
  region: String or nil
  organisation: AIXM.organisation
  id: String
  name: String
  xy: AIXM.xy
  z: AIXM.z or nil
  type: :outer or :middle or :inner or :backcourse
)
marker.timetable = AIXM.timetable or nil
marker.remarks = String or nil
marker.comment = Object or nil

Constant Summary collapse

TYPES =
{
  O: :outer,
  M: :middle,
  I: :inner,
  C: :backcourse,
  OTHER: :other     # specify in remarks
}

Constants inherited from AIXM::Feature

REGION_RE

Instance Attribute Summary collapse

Attributes inherited from AIXM::Feature::NavigationalAid

#id, #name, #xy, #z

Attributes included from Concerns::Remarks

#remarks

Attributes included from Concerns::Timetable

#timetable

Attributes inherited from AIXM::Feature

#comment, #region, #source

Attributes inherited from Component

#meta

Instance Method Summary collapse

Methods inherited from AIXM::Feature::NavigationalAid

#inspect, #kind, #organisation

Methods included from Concerns::Association

included

Methods inherited from AIXM::Feature

#==, #hash

Methods included from Concerns::HashEquality

#eql?, #hash

Methods included from Concerns::XMLBuilder

#build_fragment, #to_uid, #to_xml

Methods included from Concerns::Memoize

included, method

Constructor Details

#initialize(type:, **arguments) ⇒ Marker

See the cheat sheet for examples on how to create instances of this class.



51
52
53
54
55
56
# File 'lib/aixm/feature/navigational_aid/marker.rb', line 51

def initialize(type:, **arguments)
  super(**arguments)
  self.type = type
  # TODO: Marker require an associated ILS (not yet implemented)
  warn("WARNING: Marker is not fully implemented yet due to the lack of ILS")
end

Instance Attribute Details

#typeSymbol? #type=(value) ⇒ Object

Type of marker

Overloads:

  • #typeSymbol?

    Returns any of TYPES.

    Returns:

    • (Symbol, nil)

      any of TYPES

  • #type=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of TYPES



47
48
49
# File 'lib/aixm/feature/navigational_aid/marker.rb', line 47

def type
  @type
end