A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::CsmaDeviceRec Class Reference

CsmaNetDevice Record. More...

#include "csma-channel.h"

+ Collaboration diagram for ns3::CsmaDeviceRec:

Public Member Functions

 CsmaDeviceRec ()
 
 CsmaDeviceRec (const CsmaDeviceRec &o)
 Copy constructor.
 
 CsmaDeviceRec (Ptr< CsmaNetDevice > device)
 Constructor Builds a record of the given NetDevice, its status is initialized to enabled.
 
bool IsActive () const
 

Public Attributes

bool active
 Is net device enabled to TX/RX.
 
Ptr< CsmaNetDevicedevicePtr
 Pointer to the net device.
 

Detailed Description

CsmaNetDevice Record.

Stores the information related to each net device that is connected to the channel.

Definition at line 31 of file csma-channel.h.

Constructor & Destructor Documentation

◆ CsmaDeviceRec() [1/3]

ns3::CsmaDeviceRec::CsmaDeviceRec ( )

Definition at line 324 of file csma-channel.cc.

References active.

◆ CsmaDeviceRec() [2/3]

ns3::CsmaDeviceRec::CsmaDeviceRec ( Ptr< CsmaNetDevice > device)

Constructor Builds a record of the given NetDevice, its status is initialized to enabled.

Parameters
devicethe device to record

Definition at line 329 of file csma-channel.cc.

References active, and devicePtr.

◆ CsmaDeviceRec() [3/3]

ns3::CsmaDeviceRec::CsmaDeviceRec ( const CsmaDeviceRec & o)

Copy constructor.

Parameters
othe object to copy

Definition at line 335 of file csma-channel.cc.

References active, and devicePtr.

Member Function Documentation

◆ IsActive()

bool ns3::CsmaDeviceRec::IsActive ( ) const
Returns
If the net device pointed to by the devicePtr is active and ready to RX/TX.

Definition at line 342 of file csma-channel.cc.

References active.

Member Data Documentation

◆ active

bool ns3::CsmaDeviceRec::active

Is net device enabled to TX/RX.

Definition at line 35 of file csma-channel.h.

Referenced by CsmaDeviceRec(), CsmaDeviceRec(), CsmaDeviceRec(), and IsActive().

◆ devicePtr

Ptr<CsmaNetDevice> ns3::CsmaDeviceRec::devicePtr

Pointer to the net device.

Definition at line 34 of file csma-channel.h.

Referenced by CsmaDeviceRec(), and CsmaDeviceRec().


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