mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Add link params to model with attributes
This commit is contained in:
parent
1224169ff5
commit
27ee6a3697
8 changed files with 77 additions and 12 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue