Class: Google::Apis::SpectrumV1explorer::FrequencyRange

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

A specific range of frequencies together with the associated maximum power level and channel identifier.

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) ⇒ FrequencyRange

Returns a new instance of FrequencyRange



375
376
377
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 375

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

Instance Attribute Details

#channel_idString

The database may include a channel identifier, when applicable. When it is included, the device should treat it as informative. The length of the identifier should not exceed 16 characters. Corresponds to the JSON property channelId

Returns:

  • (String)


352
353
354
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 352

def channel_id
  @channel_id
end

#max_power_d_bmFloat

The maximum total power level (EIRP)—computed over the corresponding operating bandwidth—that is permitted within the frequency range. Depending on the context in which the frequency-range element appears, this value may be required. For example, it is required in the available-spectrum response, available-spectrum-batch response, and spectrum-use notification message, but it should not be present (it is not applicable) when the frequency range appears inside a device-capabilities message. Corresponds to the JSON property maxPowerDBm

Returns:

  • (Float)


363
364
365
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 363

def max_power_d_bm
  @max_power_d_bm
end

#start_hzFloat

The required inclusive start of the frequency range (in Hertz). Corresponds to the JSON property startHz

Returns:

  • (Float)


368
369
370
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 368

def start_hz
  @start_hz
end

#stop_hzFloat

The required exclusive end of the frequency range (in Hertz). Corresponds to the JSON property stopHz

Returns:

  • (Float)


373
374
375
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 373

def stop_hz
  @stop_hz
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



380
381
382
383
384
385
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 380

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @max_power_d_bm = args[:max_power_d_bm] if args.key?(:max_power_d_bm)
  @start_hz = args[:start_hz] if args.key?(:start_hz)
  @stop_hz = args[:stop_hz] if args.key?(:stop_hz)
end