Class: AIXM::Feature::NavigationalAid Abstract

Inherits:
AIXM::Feature show all
Includes:
Concerns::Association, Concerns::Remarks, Concerns::Timetable
Defined in:
lib/aixm/feature/navigational_aid.rb,
lib/aixm/feature/navigational_aid/dme.rb,
lib/aixm/feature/navigational_aid/ndb.rb,
lib/aixm/feature/navigational_aid/vor.rb,
lib/aixm/feature/navigational_aid/tacan.rb,
lib/aixm/feature/navigational_aid/marker.rb,
lib/aixm/feature/navigational_aid/designated_point.rb

Overview

This class is abstract.

Direct Known Subclasses

DME, DesignatedPoint, Marker, NDB, VOR

Defined Under Namespace

Classes: DME, DesignatedPoint, Marker, NDB, TACAN, VOR

Constant Summary

Constants inherited from AIXM::Feature

REGION_RE

Instance Attribute Summary collapse

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 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(source: nil, region: nil, organisation:, id:, name: nil, xy:, z: nil) ⇒ NavigationalAid

Returns a new instance of NavigationalAid.



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

def initialize(source: nil, region: nil, organisation:, id:, name: nil, xy:, z: nil)
  super(source: source, region: region)
  self.organisation, self.id, self.name, self.xy, self.z = organisation, id, name, xy, z
end

Instance Attribute Details

#idString #id=(value) ⇒ Object

Published identifier

Overloads:

  • #idString

    Returns:

    • (String)
  • #id=(value) ⇒ Object

    Parameters:

    • value (String)


24
25
26
# File 'lib/aixm/feature/navigational_aid.rb', line 24

def id
  @id
end

#nameString? #name=(value) ⇒ Object

Name of the navigational aid.

Overloads:

  • #nameString?

    Returns:

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

    Parameters:

    • value (String, nil)


32
33
34
# File 'lib/aixm/feature/navigational_aid.rb', line 32

def name
  @name
end

#xyAIXM::XY #xy=(value) ⇒ Object

Geographic position.

Overloads:



40
41
42
# File 'lib/aixm/feature/navigational_aid.rb', line 40

def xy
  @xy
end

#zAIXM::Z? #z=(value) ⇒ Object

Elevation in :qnh.

Overloads:



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

def z
  @z
end

Instance Method Details

#inspectString

Returns:

  • (String)


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

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

#kindString

Fully descriptive combination of #class and #type key.

Returns:

  • (String)


83
84
85
# File 'lib/aixm/feature/navigational_aid.rb', line 83

def kind
  [self.class.name.split('::').last, type_key].compact.join(':'.freeze)
end

#organisationAIXM::Feature::Organisation

Returns superior organisation.

Returns:



16
# File 'lib/aixm/feature/navigational_aid.rb', line 16

belongs_to :organisation, as: :member