Class: AIXM::Feature::NavigationalAid Abstract

Inherits:
AIXM::Feature show all
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

Instance Attribute Summary collapse

Attributes inherited from AIXM::Feature

#source

Instance Method Summary collapse

Methods inherited from AIXM::Feature

#==

Constructor Details

#initialize(source: nil, organisation:, id:, name: nil, xy:, z: nil) ⇒ NavigationalAid


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

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

Instance Attribute Details

#idString


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

def id
  @id
end

#nameString?


17
18
19
# File 'lib/aixm/feature/navigational_aid.rb', line 17

def name
  @name
end

#remarksString?


29
30
31
# File 'lib/aixm/feature/navigational_aid.rb', line 29

def remarks
  @remarks
end

#timetableAIXM::Component::Timetable?


26
27
28
# File 'lib/aixm/feature/navigational_aid.rb', line 26

def timetable
  @timetable
end

#xyAIXM::XY


20
21
22
# File 'lib/aixm/feature/navigational_aid.rb', line 20

def xy
  @xy
end

#zAIXM::Z?


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

def z
  @z
end

Instance Method Details

#inspectString


37
38
39
# File 'lib/aixm/feature/navigational_aid.rb', line 37

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

#kindString


76
77
78
# File 'lib/aixm/feature/navigational_aid.rb', line 76

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