module AIXM

Constants

CLASSES

Manifest of shorthand names and their corresponding AIXM class names

DMS_RE

Pattern matching geographical coordinates in various DMS notations

GROUND

Ground level

H24

Timetable used to signal “always active”

H_RE

Pattern matching timetable working hour codes

MIN

Characters recognized as symbols for “minute” in DMS notations

PCN_RE

Pattern matching PCN surface strength notations

SCHEMAS
SEC

Characters recognized as symbols for “second” in DMS notations

UNLIMITED

Max flight level used to signal “no upper limit”

VERSION

Public Class Methods

config() click to toggle source

Access the configuration (e.g. AIXM.config.schema) @return [OpenStruct] configuration struct

   # File lib/aixm/config.rb
22 def config
23   @@config
24 end
schema(key = nil) click to toggle source

Currently active schema

@example Get the schema identifyer

AIXM.schema   # => :aixm

@example Get schema details

AIXM.schema(:version)   # => '4.5'
AIXM.schema(:root)      # => 'AIXM-Snapshot'

@param key [Symbol, nil] schema detail key (see {SCHEMAS}) @return [Object] schema detail value

   # File lib/aixm/config.rb
37 def schema(key = nil)
38   key ? SCHEMAS.dig(@@config.schema, key) : @@config.schema
39 end

Private Class Methods

initialize_config() click to toggle source

Configuration defaults (view source for more).

@!visibility public @api private @return [OpenStruct]

   # File lib/aixm/config.rb
78 def initialize_config
79   @@config = OpenStruct.new(
80     schema: :aixm,
81     mid: false,
82     inflector: Dry::Inflector.new
83   )
84 end