Class: AIXM::Component::Surface
- Inherits:
-
AIXM::Component
- Object
- AIXM::Component
- AIXM::Component::Surface
- Includes:
- AIXM::Concerns::Remarks
- Defined in:
- lib/aixm/component/surface.rb
Overview
Surface of a runway, helipad etc
Cheat Sheet in Pseudo Code:
surface = AIXM.surface
surface.composition: COMPOSITIONS or nil
surface.preparation: PREPARATIONS or nil
surface.condition: CONDITIONS or nil
surface.pcn = String or nil
surface.siwl_weight = AIXM.w
surface.siwl_tire_pressure = AIXM.p
surface.auw_weight = AIXM.w
surface.remarks = String or nil
Constants:
-
AIXM::PCN_RE
- regular expression to match PCN notations
Constant Summary collapse
- COMPOSITIONS =
{ ASPH: :asphalt, BITUM: :bitumen, # dug up, bound and rolled ground CONC: :concrete, 'CONC+ASPH': :concrete_and_asphalt, 'CONC+GRS': :concrete_and_grass, GRADE: :graded_earth, # graded or rolled earth possibly with some grass GRASS: :grass, # lawn GRAVE: :gravel, # small and midsize rounded stones MACADAM: :macadam, # small rounded stones METAL: :metal, SAND: :sand, SNOW: :snow, WATER: :water, OTHER: :other # specify in remarks }.freeze
- PREPARATIONS =
{ AFSC: :aggregate_friction_seal_coat, GROOVED: :grooved, # cut or plastic grooved NATURAL: :natural, # no treatment OILED: :oiled, PAVED: :paved, PFC: :porous_friction_course, RFSC: :rubberized_friction_seal_coat, ROLLED: :rolled, OTHER: :other }.freeze
- CONDITIONS =
{ GOOD: :good, FAIR: :fair, POOR: :poor, OTHER: :other }.freeze
Instance Attribute Summary collapse
-
#auw_weight ⇒ Object
All-up wheel weight.
-
#composition ⇒ Object
Composition of the surface.
-
#condition ⇒ Object
Condition of the surface.
-
#pcn ⇒ Object
Pavement classification number (e.g. â59/F/A/W/Tâ).
-
#preparation ⇒ Object
Preparation of the surface.
-
#siwl_tire_pressure ⇒ Object
Single isolated wheel load tire pressure.
-
#siwl_weight ⇒ Object
Single isolated wheel load weight.
Attributes included from AIXM::Concerns::Remarks
Attributes inherited from AIXM::Component
Instance Method Summary collapse
-
#initialize ⇒ Surface
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
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 ⇒ Surface
See the cheat sheet for examples on how to create instances of this class.
114 115 116 |
# File 'lib/aixm/component/surface.rb', line 114 def initialize @pcn = {} end |
Instance Attribute Details
#auw_weight ⇒ AIXM::W? #auw_weight=(value) ⇒ Object
All-up wheel weight
110 111 112 |
# File 'lib/aixm/component/surface.rb', line 110 def auw_weight @auw_weight end |
#composition ⇒ Symbol? #composition=(value) ⇒ Object
Composition of the surface.
70 71 72 |
# File 'lib/aixm/component/surface.rb', line 70 def composition @composition end |
#condition ⇒ Symbol? #condition=(value) ⇒ Object
Condition of the surface.
86 87 88 |
# File 'lib/aixm/component/surface.rb', line 86 def condition @condition end |
#pcn ⇒ String? #pcn=(value) ⇒ Object
Pavement classification number (e.g. â59/F/A/W/Tâ)
142 143 144 |
# File 'lib/aixm/component/surface.rb', line 142 def pcn @pcn.none? ? nil : @pcn.values.join("/".freeze) end |
#preparation ⇒ Symbol? #preparation=(value) ⇒ Object
Preparation of the surface.
78 79 80 |
# File 'lib/aixm/component/surface.rb', line 78 def preparation @preparation end |
Instance Method Details
#inspect ⇒ String
119 120 121 |
# File 'lib/aixm/component/surface.rb', line 119 def inspect %Q(#<#{self.class} composition=#{composition.inspect} preparation=#{preparation.inspect} condition=#{condition.inspect} pcn=#{pcn.inspect}>) end |