Class: Google::Apis::SpectrumV1explorer::SpectrumMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb

Overview

Available spectrum can be logically characterized by a list of frequency ranges and permissible power levels for each range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SpectrumMessage

Returns a new instance of SpectrumMessage



1434
1435
1436
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1434

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bandwidthFloat

The bandwidth (in Hertz) for which permissible power levels are specified. For example, FCC regulation would require only one spectrum specification at 6MHz bandwidth, but Ofcom regulation would require two specifications, at 0.1MHz and 8MHz. This parameter may be empty if there is no available spectrum. It will be present otherwise. Corresponds to the JSON property bandwidth

Returns:

  • (Float)


1426
1427
1428
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1426

def bandwidth
  @bandwidth
end

#frequency_rangesArray<Google::Apis::SpectrumV1explorer::FrequencyRange>

The list of frequency ranges and permissible power levels. The list may be empty if there is no available spectrum, otherwise it will be present. Corresponds to the JSON property frequencyRanges



1432
1433
1434
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1432

def frequency_ranges
  @frequency_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1439
1440
1441
1442
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1439

def update!(**args)
  @bandwidth = args[:bandwidth] if args.key?(:bandwidth)
  @frequency_ranges = args[:frequency_ranges] if args.key?(:frequency_ranges)
end