Class: AIXM::Feature::NavigationalAid::NDB

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

Overview

A non-directional radio beacon (NDB) is a radio transmitter at a known location operating in the frequency band between 190 kHz and 1750 kHz.

Cheat Sheet in Pseudo Code:

ndb = AIXM.ndb(
  source: String or nil
  region: String or nil
  organisation: AIXM.organisation
  id: String
  name: String
  xy: AIXM.xy
  z: AIXM.z or nil
  type: TYPES
  f: AIXM.f
)
ndb.timetable = AIXM.timetable or nil
ndb.remarks = String or nil
ndb.comment = Object or nil

Constant Summary collapse

TYPES =
{
  B: :en_route,
  L: :locator,
  M: :marine,
  OTHER: :other   # specify in remarks
}.freeze

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:, f:, **arguments) ⇒ NDB

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



55
56
57
58
# File 'lib/aixm/feature/navigational_aid/ndb.rb', line 55

def initialize(type:, f:, **arguments)
  super(**arguments)
  self.type, self.f = type, f
end

Instance Attribute Details

#fAIXM::F #f=(value) ⇒ Object

Radio frequency

Overloads:



51
52
53
# File 'lib/aixm/feature/navigational_aid/ndb.rb', line 51

def f
  @f
end

#typeSymbol? #type=(value) ⇒ Object

Type of NDB

Overloads:

  • #typeSymbol?

    Returns any of TYPES.

    Returns:

    • (Symbol, nil)

      any of TYPES

  • #type=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of TYPES



43
44
45
# File 'lib/aixm/feature/navigational_aid/ndb.rb', line 43

def type
  @type
end