Class: AIXM::Feature::Airport::UsageLimitation::Condition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Concerns::XMLBuilder

#build_fragment, #to_uid, #to_xml

Methods included from Concerns::Memoize

included, method

Methods included from Concerns::Association

included

Instance Attribute Details

#aircraftSymbol? #aircraft=(value) ⇒ Object

Kind of aircraft.

Overloads:

  • #aircraftSymbol?

    Returns any of AIRCRAFT.

    Returns:

  • #aircraft=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of AIRCRAFT



499
500
501
# File 'lib/aixm/feature/airport.rb', line 499

def aircraft
  @aircraft
end

#originSymbol? #origin=(value) ⇒ Object

Geographic origin of the flight.

Overloads:

  • #originSymbol?

    Returns any of ORIGINS.

    Returns:

  • #origin=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of ORIGINS



523
524
525
# File 'lib/aixm/feature/airport.rb', line 523

def origin
  @origin
end

#purposeSymbol? #purpose=(value) ⇒ Object

Purpose of the flight.

Overloads:

  • #purposeSymbol?

    Returns any of PURPOSES.

    Returns:

  • #purpose=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of PURPOSES



531
532
533
# File 'lib/aixm/feature/airport.rb', line 531

def purpose
  @purpose
end

#realmSymbol? #realm=(value) ⇒ Object

Military, civil etc.

Overloads:

  • #realmSymbol?

    Returns any of REALMS.

    Returns:

    • (Symbol, nil)

      any of REALMS

  • #realm=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of REALMS



515
516
517
# File 'lib/aixm/feature/airport.rb', line 515

def realm
  @realm
end

#ruleSymbol? #rule=(value) ⇒ Object

Flight rule.

Overloads:

  • #ruleSymbol?

    Returns any of RULES.

    Returns:

    • (Symbol, nil)

      any of RULES

  • #rule=(value) ⇒ Object

    Parameters:

    • value (Symbol, nil)

      any of RULES



507
508
509
# File 'lib/aixm/feature/airport.rb', line 507

def rule
  @rule
end

Instance Method Details

#inspectString

Returns:

  • (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_limitationAIXM::Feature::Airport::UsageLimitation

Returns usage limitation the condition belongs to.

Returns:



491
# File 'lib/aixm/feature/airport.rb', line 491

belongs_to :usage_limitation