EMANE  1.2.1
EMANE::Controls::FrequencyOfInterestControlMessage Class Reference

The Frequency of Interest Control Message is sent to the emulator physical layer to specify receive frequencies. These frequencies are monitored by the SpectrumMonitor. More...

#include <frequencyofinterestcontrolmessage.h>

Inheritance diagram for EMANE::Controls::FrequencyOfInterestControlMessage:
EMANE::ControlMessage EMANE::Serializable EMANE::Cloneable< ControlMessage >

Public Types

enum  { IDENTIFIER = EMANE_CONTROL_MEASSGE_FREQUENCY_OF_INTEREST }
 

Public Member Functions

FrequencyOfInterestControlMessageclone () const override
 
 ~FrequencyOfInterestControlMessage ()
 
const FrequencySetgetFrequencySet () const
 
std::uint64_t getBandwidthHz () const
 
ControlMessageId getId () const
 
virtual Serialization serialize () const
 

Static Public Member Functions

static FrequencyOfInterestControlMessagecreate (std::uint64_t u64BandwidthHz, const FrequencySet &frequencySet)
 

Detailed Description

The Frequency of Interest Control Message is sent to the emulator physical layer to specify receive frequencies. These frequencies are monitored by the SpectrumMonitor.

Note
Instances are immutable

Definition at line 56 of file frequencyofinterestcontrolmessage.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDENTIFIER 

Definition at line 108 of file frequencyofinterestcontrolmessage.h.

Constructor & Destructor Documentation

◆ ~FrequencyOfInterestControlMessage()

EMANE::Controls::FrequencyOfInterestControlMessage::~FrequencyOfInterestControlMessage ( )

Destroys an instance

Definition at line 70 of file frequencyofinterestcontrolmessage.cc.

Member Function Documentation

◆ clone()

EMANE::Controls::FrequencyOfInterestControlMessage * EMANE::Controls::FrequencyOfInterestControlMessage::clone ( ) const
overridevirtual

Clones the control message on the heap

Returns
cloned message
Note
Caller assumes ownership of the clone

Implements EMANE::Cloneable< ControlMessage >.

Definition at line 92 of file frequencyofinterestcontrolmessage.cc.

◆ create()

EMANE::Controls::FrequencyOfInterestControlMessage * EMANE::Controls::FrequencyOfInterestControlMessage::create ( std::uint64_t  u64BandwidthHz,
const FrequencySet frequencySet 
)
static

Creates a FrequencyOfInterestControlMessage on the heap

Parameters
u64BandwidthHzBandwidth in Hz
frequencySetFrequency set
Note
Once a control message is passed to another NEM layer using EMANE::UpstreamTransport::processUpstreamPacket(), EMANE::UpstreamTransport::processUpstreamControl(), EMANE::DownstreamTransport::processDownstreamPacket() or EMANE::DownstreamTransport::processDownstreamControl() object ownership is transferred to the emulator infrastructure along with deallocation responsibility. It is not valid to use a control message instance after it has been passed to another layer.

Definition at line 74 of file frequencyofinterestcontrolmessage.cc.

◆ getBandwidthHz()

std::uint64_t EMANE::Controls::FrequencyOfInterestControlMessage::getBandwidthHz ( ) const

Gets the bandwidth in Hz

Returns
bandwidth

Definition at line 86 of file frequencyofinterestcontrolmessage.cc.

◆ getFrequencySet()

const EMANE::FrequencySet & EMANE::Controls::FrequencyOfInterestControlMessage::getFrequencySet ( ) const

Gets the frequency segments

Returns
segments
See also
FrequencySegment

Definition at line 81 of file frequencyofinterestcontrolmessage.cc.

◆ getId()

ControlMessageId EMANE::ControlMessage::getId ( ) const
inlineinherited

Gets the control message id

Returns
control messase id

Definition at line 64 of file controlmessage.h.

◆ serialize()


The documentation for this class was generated from the following files: