Class: AIXM::Component::Lighting
- Inherits:
-
AIXM::Component
- Object
- AIXM::Component
- AIXM::Component::Lighting
- Defined in:
- lib/aixm/component/lighting.rb
Overview
Lighting of a runway, helipad etc
Cheat Sheet in Pseudo Code:
lighting = AIXM.lighting(
position: POSITIONS
)
lighting.description = String or nil
lighting.intensity = INTENSITIES or nil
lighting.color = COLORS or nil
lighting.remarks = String or nil
Constant Summary collapse
- POSITIONS =
{ TDZ: :touch_down_zone, AIM: :aiming_point, CL: :center_line, EDGE: :edge, THR: :threshold, SWYEDGE: :stopway_edge, DESIG: :runway_designation, AFTTHR: :after_threshold, DISPTHR: :displaced_threshold, SWYCL: :stopway_center_line, END: :runway_end, SWYEND: :stopway_end, TWYINT: :taxiway_intersection, HOLDBAY: :taxyway_hold_bay, RTWYINT: :rapid_taxiway_intersection, OTHER: :other # specify in remarks }.freeze
- COLORS =
{ YEL: :yellow, RED: :red, WHI: :white, BLU: :blue, GRN: :green, PRP: :purple, OTHER: :other # specify in remarks }.freeze
Constants included from AIXM::Concerns::Intensity
AIXM::Concerns::Intensity::INTENSITIES
Instance Attribute Summary collapse
-
#color ⇒ Object
Color of lights.
-
#description ⇒ Object
Detailed description.
-
#position ⇒ Object
Position of the lighting system.
Attributes included from AIXM::Concerns::Remarks
Attributes included from AIXM::Concerns::Intensity
Attributes inherited from AIXM::Component
Instance Method Summary collapse
-
#initialize(position:) ⇒ Lighting
constructor
See the cheat sheet for examples on how to create instances of this class.
- #inspect ⇒ String
-
#lightable ⇒ AIXM::Component::Runway::Direction, ...
Lighted entity.
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(position:) ⇒ Lighting
See the cheat sheet for examples on how to create instances of this class.
84 85 86 |
# File 'lib/aixm/component/lighting.rb', line 84 def initialize(position:) self.position = position end |
Instance Attribute Details
#color ⇒ Symbol? #color=(value) ⇒ Object
Color of lights
80 81 82 |
# File 'lib/aixm/component/lighting.rb', line 80 def color @color end |
#description ⇒ String? #description=(value) ⇒ Object
Detailed description
72 73 74 |
# File 'lib/aixm/component/lighting.rb', line 72 def description @description end |
#position ⇒ Symbol? #position=(value) ⇒ Object
Position of the lighting system
64 65 66 |
# File 'lib/aixm/component/lighting.rb', line 64 def position @position end |
Instance Method Details
#inspect ⇒ String
89 90 91 |
# File 'lib/aixm/component/lighting.rb', line 89 def inspect %Q(#<#{self.class} position=#{position.inspect}>) end |
#lightable ⇒ AIXM::Component::Runway::Direction, ...
Returns lighted entity.
56 |
# File 'lib/aixm/component/lighting.rb', line 56 belongs_to :lightable |