GeezerVison is showing www.rubydoc.info — RubyDoc.info: Class: AIXM::Component::Helipad – Documentation for aixm (1.6.1) – RubyDoc.info
Class: AIXM::Component::Helipad
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
#remarks
#marking
#meta
Instance Method Summary
collapse
included
#eql?, #hash
#build_fragment, #to_uid, #to_xml
included, method
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
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.
Returns:
-
(AIXM::A, nil)
—
(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
Overloads:
-
#name ⇒ String
-
#name=(value) ⇒ Object
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
Overloads:
-
#performance_class ⇒ Integer, ...
-
#performance_class=(value) ⇒ Object
Parameters:
-
value
(Integer, Symbol, nil)
114
115
116
|
# File 'lib/aixm/component/helipad.rb', line 114
def performance_class
@performance_class
end
|
#status ⇒ Symbol?
#status=(value) ⇒ Object
Overloads:
-
#status ⇒ Symbol?
Returns any of STATUSES or nil for normal operation.
Returns:
-
(Symbol, nil)
—
any of STATUSES or nil for normal operation
-
#status=(value) ⇒ Object
Parameters:
-
value
(Symbol, nil)
—
any of STATUSES or nil for normal
operation
123
124
125
|
# File 'lib/aixm/component/helipad.rb', line 123
def status
@status
end
|
#center_xy ⇒ AIXM::XY
#center_xy=(value) ⇒ Object
90
91
92
|
# File 'lib/aixm/component/helipad.rb', line 90
def xy
@xy
end
|
98
99
100
|
# File 'lib/aixm/component/helipad.rb', line 98
def z
@z
end
|
Instance Method Details
#add_lighting(lighting) ⇒ self
67
|
# File 'lib/aixm/component/helipad.rb', line 67
has_many :lightings, as: :lightable
|
Returns airport this helipad belongs to.
71
|
# File 'lib/aixm/component/helipad.rb', line 71
belongs_to :airport
|
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
|
Returns installed lighting systems.
67
|
# File 'lib/aixm/component/helipad.rb', line 67
has_many :lightings, as: :lightable
|
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'
|
|