Class: AIXM::Feature::Airport::UsageLimitation::Condition
- Includes:
- Concerns::Association, Concerns::XMLBuilder
- Defined in:
- lib/aixm/feature/airport.rb
Overview
Flight and/or aircraft characteristics used to target a usage limitation.
Constant Summary collapse
- AIRCRAFT =
{ L: :landplane, S: :seaplane, A: :amphibian, H: :helicopter, G: :gyrocopter, T: :tilt_wing, R: :short_takeoff_and_landing, E: :glider, N: :hangglider, P: :paraglider, U: :ultra_light, B: :balloon, D: :unmanned_drone, OTHER: :other # specify in remarks }.freeze
- RULES =
{ I: :ifr, V: :vfr, IV: :ifr_and_vfr }.freeze
- REALMS =
{ CIVIL: :civilian, MIL: :military, OTHER: :other # specify in remarks }.freeze
- ORIGINS =
{ NTL: :national, INTL: :international, ANY: :any, OTHER: :other # specify in remarks }.freeze
- PURPOSES =
{ S: :scheduled, NS: :not_scheduled, P: :private, TRG: :school_or_training, WORK: :aerial_work, OTHER: :other # specify in remarks }.freeze
Instance Attribute Summary collapse
-
#aircraft ⇒ Object
Kind of aircraft.
-
#origin ⇒ Object
Geographic origin of the flight.
-
#purpose ⇒ Object
Purpose of the flight.
-
#realm ⇒ Object
Military, civil etc.
-
#rule ⇒ Object
Flight rule.
Instance Method Summary collapse
- #inspect ⇒ String
-
#usage_limitation ⇒ AIXM::Feature::Airport::UsageLimitation
Usage limitation the condition belongs to.
Methods included from Concerns::XMLBuilder
#build_fragment, #to_uid, #to_xml
Methods included from Concerns::Memoize
Methods included from Concerns::Association
Instance Attribute Details
#aircraft ⇒ Symbol? #aircraft=(value) ⇒ Object
Kind of aircraft.
499 500 501 |
# File 'lib/aixm/feature/airport.rb', line 499 def aircraft @aircraft end |
#origin ⇒ Symbol? #origin=(value) ⇒ Object
Geographic origin of the flight.
523 524 525 |
# File 'lib/aixm/feature/airport.rb', line 523 def origin @origin end |
#purpose ⇒ Symbol? #purpose=(value) ⇒ Object
Purpose of the flight.
531 532 533 |
# File 'lib/aixm/feature/airport.rb', line 531 def purpose @purpose end |
#realm ⇒ Symbol? #realm=(value) ⇒ Object
Military, civil etc.
515 516 517 |
# File 'lib/aixm/feature/airport.rb', line 515 def realm @realm end |
#rule ⇒ Symbol? #rule=(value) ⇒ Object
Flight rule.
507 508 509 |
# File 'lib/aixm/feature/airport.rb', line 507 def rule @rule end |
Instance Method Details
#inspect ⇒ String
534 535 536 |
# File 'lib/aixm/feature/airport.rb', line 534 def inspect %Q(#<#{self.class} aircraft=#{aircraft.inspect} rule=#{rule.inspect} realm=#{realm.inspect} origin=#{origin.inspect} purpose=#{purpose.inspect}>) end |
#usage_limitation ⇒ AIXM::Feature::Airport::UsageLimitation
Returns usage limitation the condition belongs to.
491 |
# File 'lib/aixm/feature/airport.rb', line 491 belongs_to :usage_limitation |