Class: AIXM::Component::FATO
- Inherits:
-
AIXM::Component
- Object
- AIXM::Component
- AIXM::Component::FATO
- Defined in:
- lib/aixm/component/fato.rb
Overview
FATO (final approach and take-off area) for vertical take-off aircraft such as helicopters.
Cheat Sheet in Pseudo Code:
fato = AIXM.fato(
name: String
)
fato.dimensions = AIXM.r or nil
fato.surface = AIXM.surface
fato.marking = String or nil
fato.profile = String or nil
fato.status = STATUSES or nil
fato.remarks = String or nil
fato.add_direction(
name: String
) do |direction|
direction.geographic_bearing = AIXM.a or nil
direction.vasis = AIXM.vasis or nil (default: unspecified VASIS)
fato.add_lighting = AIXM.lighting
fato.add_approach_lighting = AIXM.approach_lighting
direction.remarks = String or nil
end
Defined Under Namespace
Classes: Direction
Constant Summary collapse
- STATUSES =
{ CLSD: :closed, WIP: :work_in_progress, # e.g. construction work PARKED: :parked_aircraft, # parked or disabled aircraft on FATO 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.
-
#name ⇒ Object
Full name (e.g. “H1”).
-
#profile ⇒ Object
Profile description.
-
#status ⇒ Object
Status of the FATO.
Attributes included from AIXM::Concerns::Remarks
Attributes included from AIXM::Concerns::Marking
Attributes inherited from AIXM::Component
Instance Method Summary collapse
- #add_direction(direction) ⇒ self
-
#airport ⇒ AIXM::Feature::Airport
Airport this FATO belongs to.
-
#directions ⇒ Array<AIXM::Component::FATO::Direction>
Maps added direction names to full FATO directions.
-
#helipad ⇒ AIXM::Component::Helipad
Helipad situated on this FATO.
-
#initialize(name:) ⇒ FATO
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
-
#surface ⇒ AIXM::Component::Surface
Surface of the FATO.
- #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:) ⇒ FATO
See the cheat sheet for examples on how to create instances of this class.
102 103 104 105 |
# File 'lib/aixm/component/fato.rb', line 102 def initialize(name:) self.name = name self.surface = AIXM.surface end |
Instance Attribute Details
#dimensions ⇒ AIXM::R? #dimensions=(value) ⇒ Object
Dimensions
81 82 83 |
# File 'lib/aixm/component/fato.rb', line 81 def dimensions @dimensions end |
#name ⇒ String #name=(value) ⇒ Object
Full name (e.g. “H1”)
73 74 75 |
# File 'lib/aixm/component/fato.rb', line 73 def name @name end |
#profile ⇒ String? #profile=(value) ⇒ Object
Profile description
89 90 91 |
# File 'lib/aixm/component/fato.rb', line 89 def profile @profile end |
#status ⇒ Symbol? #status=(value) ⇒ Object
Status of the FATO
98 99 100 |
# File 'lib/aixm/component/fato.rb', line 98 def status @status end |
Instance Method Details
#add_direction(direction) ⇒ self
57 |
# File 'lib/aixm/component/fato.rb', line 57 has_many :directions, accept: 'AIXM::Component::FATO::Direction' do |direction, name:| end |
#airport ⇒ AIXM::Feature::Airport
Returns airport this FATO belongs to.
61 |
# File 'lib/aixm/component/fato.rb', line 61 belongs_to :airport |
#directions ⇒ Array<AIXM::Component::FATO::Direction>
Returns maps added direction names to full FATO directions.
57 |
# File 'lib/aixm/component/fato.rb', line 57 has_many :directions, accept: 'AIXM::Component::FATO::Direction' do |direction, name:| end |
#helipad ⇒ AIXM::Component::Helipad
Returns helipad situated on this FATO.
65 |
# File 'lib/aixm/component/fato.rb', line 65 belongs_to :helipad |
#inspect ⇒ String
108 109 110 |
# File 'lib/aixm/component/fato.rb', line 108 def inspect %Q(#<#{self.class} airport=#{airport&.id.inspect} name=#{name.inspect}>) end |
#surface ⇒ AIXM::Component::Surface
Returns surface of the FATO.
49 |
# File 'lib/aixm/component/fato.rb', line 49 has_one :surface |