EMANE  1.0.1
EMANE::Events::PathlossEvent Class Reference

A pathloss event is used to set the pathloss from one or more transmitting NEMs to a receiving NEM. More...

#include <pathlossevent.h>

Inheritance diagram for EMANE::Events::PathlossEvent:
EMANE::Event EMANE::Serializable

Public Types

enum  { IDENTIFIER = EMANE_EVENT_PATHLOSS }
 

Public Member Functions

 PathlossEvent (const Serialization &serialization)
 
 PathlossEvent (const Pathlosses &pathlosses)
 
 PathlossEvent (const PathlossEvent &rhs)
 
PathlossEventoperator= (const PathlossEvent &rhs)
 
 PathlossEvent (PathlossEvent &&rval)
 
PathlossEventoperator= (PathlossEvent &&rval)
 
 ~PathlossEvent ()
 
Serialization serialize () const override
 
const PathlossesgetPathlosses () const
 
EventId getEventId () const
 

Detailed Description

A pathloss event is used to set the pathloss from one or more transmitting NEMs to a receiving NEM.

Definition at line 52 of file pathlossevent.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDENTIFIER 

Definition at line 118 of file pathlossevent.h.

Constructor & Destructor Documentation

◆ PathlossEvent() [1/4]

EMANE::Events::PathlossEvent::PathlossEvent ( const Serialization serialization)

Creates a PathlossEvent instance from a serialization

Parameters
serializationMessage serialization
Exceptions
SerializationExceptionwhen a valid message cannot be de-serialized

Definition at line 52 of file pathlossevent.cc.

◆ PathlossEvent() [2/4]

EMANE::Events::PathlossEvent::PathlossEvent ( const Pathlosses pathlosses)

Creates a PathlossEvent instance

Parameters
pathlossesOne or more PathlossEntry instances

Definition at line 74 of file pathlossevent.cc.

◆ PathlossEvent() [3/4]

EMANE::Events::PathlossEvent::PathlossEvent ( const PathlossEvent rhs)

Creates a PathlossEvent by copy

Parameters
rhsInstance to copy

Definition at line 78 of file pathlossevent.cc.

◆ PathlossEvent() [4/4]

EMANE::Events::PathlossEvent::PathlossEvent ( PathlossEvent &&  rval)

Creates a PathlossEvent by moving

Parameters
rvalInstance to move

Definition at line 88 of file pathlossevent.cc.

◆ ~PathlossEvent()

EMANE::Events::PathlossEvent::~PathlossEvent ( )

Destroys an instance

Definition at line 101 of file pathlossevent.cc.

Member Function Documentation

◆ getEventId()

EventId EMANE::Event::getEventId ( ) const
inlineinherited

Gets the event id

Returns
event id

Definition at line 59 of file event.h.

◆ getPathlosses()

const EMANE::Events::Pathlosses & EMANE::Events::PathlossEvent::getPathlosses ( ) const

Gets the transmitter NEM pathloss entries

Returns
pathloss entries

Definition at line 103 of file pathlossevent.cc.

◆ operator=() [1/2]

EMANE::Events::PathlossEvent & EMANE::Events::PathlossEvent::operator= ( const PathlossEvent rhs)

Sets a PathlossEvent by copy

Parameters
rhsInstance to copy

Definition at line 82 of file pathlossevent.cc.

◆ operator=() [2/2]

EMANE::Events::PathlossEvent & EMANE::Events::PathlossEvent::operator= ( PathlossEvent &&  rval)

Sets a PathlossEvent by moving

Parameters
rvalInstance to move

Definition at line 95 of file pathlossevent.cc.

◆ serialize()

EMANE::Serialization EMANE::Events::PathlossEvent::serialize ( ) const
overridevirtual

Serializes the instance

Exceptions
SerializationExceptionif the instance cannot be serialized

Reimplemented from EMANE::Serializable.

Definition at line 108 of file pathlossevent.cc.


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