Class: AIXM::Feature::NavigationalAid::DesignatedPoint
- Inherits:
-
AIXM::Feature::NavigationalAid
- Object
- Component
- AIXM::Feature
- AIXM::Feature::NavigationalAid
- AIXM::Feature::NavigationalAid::DesignatedPoint
- Includes:
- Concerns::Association
- Defined in:
- lib/aixm/feature/navigational_aid/designated_point.rb
Overview
Named geographical location used in defining an ATS route, aircraft flight paths or for other navigation purposes.
Cheat Sheet in Pseudo Code:
designated_point = AIXM.designated_point(
source: String or nil
region: String or nil
id: String
name: String or nil
xy: AIXM.xy
type: TYPES
)
designated_point.airport = AIXM.airport or nil
designated_point.remarks = String or nil
designated_point.comment = Object or nil
Constant Summary collapse
- TYPES =
{ ICAO: :icao, # five-letter ICAO id ADHP: :adhp, # airport related id COORD: :coordinates, # derived from geographical coordinates 'VFR-RP': :vfr_reporting_point, # usually one or two letter id 'VFR-MRP': :vfr_mandatory_reporting_point, # usually one or two letter id 'VFR-ENR': :vfr_en_route_point, 'VFR-GLD': :vfr_glider_point, OTHER: :other # specify in remarks }.freeze
Constants inherited from AIXM::Feature
Instance Attribute Summary collapse
-
#type ⇒ Object
Type of designated point.
Attributes inherited from AIXM::Feature::NavigationalAid
Attributes included from Concerns::Remarks
Attributes included from Concerns::Timetable
Attributes inherited from AIXM::Feature
Attributes inherited from Component
Instance Method Summary collapse
-
#airport ⇒ AIXM::Feature::Airport
Airport this designated point is associated with.
-
#initialize(type:, **arguments) ⇒ DesignatedPoint
constructor
See the cheat sheet for examples on how to create instances of this class.
Methods included from Concerns::Association
Methods inherited from AIXM::Feature::NavigationalAid
#inspect, #kind, #organisation
Methods inherited from AIXM::Feature
Methods included from Concerns::HashEquality
Methods included from Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from Concerns::Memoize
Constructor Details
#initialize(type:, **arguments) ⇒ DesignatedPoint
See the cheat sheet for examples on how to create instances of this class.
54 55 56 57 |
# File 'lib/aixm/feature/navigational_aid/designated_point.rb', line 54 def initialize(type:, **arguments) super(organisation: nil, z: nil, **arguments) self.type = type end |
Instance Attribute Details
#type ⇒ Symbol #type=(value) ⇒ Object
Type of designated point
50 51 52 |
# File 'lib/aixm/feature/navigational_aid/designated_point.rb', line 50 def type @type end |
Instance Method Details
#airport ⇒ AIXM::Feature::Airport
Returns airport this designated point is associated with.
42 |
# File 'lib/aixm/feature/navigational_aid/designated_point.rb', line 42 belongs_to :airport |