Class: AIXM::Component::Helipad
- Inherits:
-
AIXM::Component
- Object
- AIXM::Component
- AIXM::Component::Helipad
- Defined in:
- lib/aixm/component/helipad.rb
Overview
Helipads are TLOF (touch-down and lift-off areas) for vertical take-off aircraft such as helicopters.
Cheat Sheet in Pseudo Code:
helipad = AIXM.helipad(
name: String
xy: AIXM.xy
)
helipad.geographic_bearing = AIXM.a or nil (OFMX only)
helipad.z = AIXM.z or nil
helipad.dimensions = AIXM.r or nil
helipad.surface = AIXM.surface
helipad.marking = String or nil
helipad.add_lighting = AIXM.lighting
helipad.fato = AIXM.fato or nil
helipad.performance_class = PERFORMANCE_CLASSES or nil
helipad.status = STATUSES or nil
helipad.remarks = String or nil
Constant Summary collapse
- PERFORMANCE_CLASSES =
{ '1': :'1', '2': :'2', '3': :'3', OTHER: :other # specify in remarks }.freeze
- STATUSES =
{ CLSD: :closed, WIP: :work_in_progress, # e.g. construction work PARKED: :parked_aircraft, # parked or disabled aircraft on helipad FAILAID: :visual_aids_failure, # failure or irregular operation of visual aids SPOWER: :secondary_power, # secondary power supply in operation OTHER: :other # specify in remarks }.freeze
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
Dimensions.
-
#geographic_bearing ⇒ AIXM::A?
(true) geographic bearing of H-marking in degrees.
-
#name ⇒ Object
Full name (e.g. “H1”).
-
#performance_class ⇒ Object
Suitable performance class.
-
#status ⇒ Object
Status of the helipad.
-
#xy ⇒ Object
Center point.
-
#z ⇒ Object
Elevation in
:qnh
.
Attributes included from AIXM::Concerns::Remarks
Attributes included from AIXM::Concerns::Marking
Attributes inherited from AIXM::Component
Instance Method Summary collapse
- #add_lighting(lighting) ⇒ self
-
#airport ⇒ AIXM::Feature::Airport
Airport this helipad belongs to.
-
#fato ⇒ AIXM::Component::FATO?
FATO the helipad is situated on.
- #fato=(fato) ⇒ Object
-
#initialize(name:, xy:) ⇒ Helipad
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
-
#lightings ⇒ Array<AIXM::Component::Lighting>
Installed lighting systems.
-
#surface ⇒ AIXM::Component::Surface
Surface of the helipad.
- #surface=(surface) ⇒ Object
Methods included from AIXM::Concerns::Association
Methods included from AIXM::Concerns::HashEquality
Methods included from AIXM::Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from AIXM::Concerns::Memoize
Constructor Details
#initialize(name:, xy:) ⇒ Helipad
See the cheat sheet for examples on how to create instances of this class.
127 128 129 130 |
# File 'lib/aixm/component/helipad.rb', line 127 def initialize(name:, xy:) self.name, self.xy = name, xy self.surface = AIXM.surface end |
Instance Attribute Details
#dimensions ⇒ AIXM::R? #dimensions=(value) ⇒ Object
Dimensions
106 107 108 |
# File 'lib/aixm/component/helipad.rb', line 106 def dimensions @dimensions end |
#geographic_bearing ⇒ AIXM::A?
Returns (true) geographic bearing of H-marking in degrees.
82 83 84 |
# File 'lib/aixm/component/helipad.rb', line 82 def geographic_bearing @geographic_bearing end |
#name ⇒ String #name=(value) ⇒ Object
Full name (e.g. “H1”)
79 80 81 |
# File 'lib/aixm/component/helipad.rb', line 79 def name @name end |
#performance_class ⇒ Integer, ... #performance_class=(value) ⇒ Object
Suitable performance class
114 115 116 |
# File 'lib/aixm/component/helipad.rb', line 114 def performance_class @performance_class end |
#status ⇒ Symbol? #status=(value) ⇒ Object
Status of the helipad
123 124 125 |
# File 'lib/aixm/component/helipad.rb', line 123 def status @status end |
Instance Method Details
#add_lighting(lighting) ⇒ self
67 |
# File 'lib/aixm/component/helipad.rb', line 67 has_many :lightings, as: :lightable |
#airport ⇒ AIXM::Feature::Airport
Returns airport this helipad belongs to.
71 |
# File 'lib/aixm/component/helipad.rb', line 71 belongs_to :airport |
#fato ⇒ AIXM::Component::FATO?
Returns FATO the helipad is situated on.
52 |
# File 'lib/aixm/component/helipad.rb', line 52 has_one :fato, allow_nil: true |
#fato=(fato) ⇒ Object
52 |
# File 'lib/aixm/component/helipad.rb', line 52 has_one :fato, allow_nil: true |
#inspect ⇒ String
133 134 135 |
# File 'lib/aixm/component/helipad.rb', line 133 def inspect %Q(#<#{self.class} airport=#{airport&.id.inspect} name=#{name.inspect}>) end |
#lightings ⇒ Array<AIXM::Component::Lighting>
Returns installed lighting systems.
67 |
# File 'lib/aixm/component/helipad.rb', line 67 has_many :lightings, as: :lightable |
#surface ⇒ AIXM::Component::Surface
Returns surface of the helipad.
59 |
# File 'lib/aixm/component/helipad.rb', line 59 has_one :surface, accept: 'AIXM::Component::Surface' |
#surface=(surface) ⇒ Object
59 |
# File 'lib/aixm/component/helipad.rb', line 59 has_one :surface, accept: 'AIXM::Component::Surface' |