Add link params to model with attributes

This commit is contained in:
Tim Schubert 2020-08-10 13:31:01 +02:00
parent 1224169ff5
commit 27ee6a3697
8 changed files with 77 additions and 12 deletions

View file

@ -91,6 +91,16 @@ public:
*/
bool Attach (Ptr<MockChannel> ch);
/**
* Get the transmission power in dbm
*/
double GetTxPower () const;
/**
* Set the transmission power in dbm
*/
void SetTxPower (double txPower);
/**
* Attach a queue to the MockNetDevice.
*
@ -280,6 +290,11 @@ private:
READY, /**< The transmitter is ready to begin transmission of a packet */
BUSY /**< The transmitter is busy transmitting a packet */
};
/**
* Transmission power used for transmissions
*/
double m_txPower;
/**
* The state of the Net Device transmit state machine.
*/