GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Object
  • AIXM::Component
  • #dimensions ⇒ Object
  • AIXM::R

This view

  • Original page
  • New address

GeezerVison is showing www.rubydoc.info — RubyDoc.info: Class: AIXM::Component::Helipad – Documentation for aixm (1.6.1) – RubyDoc.info

Libraries » aixm (1.6.1) » Index (H) » AIXM » Component » Helipad

Class: AIXM::Component::Helipad

Inherits:
AIXM::Component
  • Object
  • AIXM::Component
  • AIXM::Component::Helipad
show all
Includes:
AIXM::Concerns::Association, AIXM::Concerns::Marking, AIXM::Concerns::Remarks
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

See Also:

  • https://gitlab.com/openflightmaps/ofmx/wikis/Airport#tla-helipad-tlof

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

#remarks

Attributes included from AIXM::Concerns::Marking

#marking

Attributes inherited from AIXM::Component

#meta

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

included

Methods included from AIXM::Concerns::HashEquality

#eql?, #hash

Methods included from AIXM::Concerns::XMLBuilder

#build_fragment, #to_uid, #to_xml

Methods included from AIXM::Concerns::Memoize

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

Dimensions

Overloads:

  • #dimensions ⇒ AIXM::R?

    Returns:

    • (AIXM::R, nil)
  • #dimensions=(value) ⇒ Object

    Parameters:

    • value (AIXM::R, nil)

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

Full name (e.g. "H1")

Overloads:

  • #name ⇒ String

    Returns:

    • (String)
  • #name=(value) ⇒ Object

    Parameters:

    • value (String)

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, ...

    Returns:

    • (Integer, Symbol, nil)
  • #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

Status of the helipad

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

Center point

Overloads:

  • #center_xy ⇒ AIXM::XY

    Returns:

    • (AIXM::XY)
  • #center_xy=(value) ⇒ Object

    Parameters:

    • value (AIXM::XY)

90
91
92
# File 'lib/aixm/component/helipad.rb', line 90

def xy
  @xy
end

#z ⇒ AIXM::Z? #z=(value) ⇒ Object

Elevation in :qnh

Overloads:

  • #z ⇒ AIXM::Z?

    Returns:

    • (AIXM::Z, nil)
  • #z=(value) ⇒ Object

    Parameters:

    • value (AIXM::Z, nil)

98
99
100
# File 'lib/aixm/component/helipad.rb', line 98

def z
  @z
end

Instance Method Details

#add_lighting(lighting) ⇒ self

Parameters:

  • lighting (AIXM::Component::Lighting)

Returns:

  • (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.

Returns:

  • (AIXM::Feature::Airport) —

    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.

Returns:

  • (AIXM::Component::FATO, nil) —

    FATO the helipad is situated on


52
# File 'lib/aixm/component/helipad.rb', line 52

has_one :fato, allow_nil: true

#fato=(fato) ⇒ Object

Parameters:

  • fato (AIXM::Component::FATO, nil)

52
# File 'lib/aixm/component/helipad.rb', line 52

has_one :fato, allow_nil: true

#inspect ⇒ String

Returns:

  • (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.

Returns:

  • (Array<AIXM::Component::Lighting>) —

    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.

Returns:

  • (AIXM::Component::Surface) —

    surface of the helipad


59
# File 'lib/aixm/component/helipad.rb', line 59

has_one :surface, accept: 'AIXM::Component::Surface'

#surface=(surface) ⇒ Object

Parameters:

  • surface (AIXM::Component::Surface)

59
# File 'lib/aixm/component/helipad.rb', line 59

has_one :surface, accept: 'AIXM::Component::Surface'
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.