A Discrete-Event Network Simulator
API
ns3::CsmaDeviceRec Class Reference

CsmaNetDevice Record. More...

#include "csma-channel.h"

+ Collaboration diagram for ns3::CsmaDeviceRec:

Public Member Functions

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

Public Attributes

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

Detailed Description

CsmaNetDevice Record.

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

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

Constructor & Destructor Documentation

◆ CsmaDeviceRec() [1/3]

ns3::CsmaDeviceRec::CsmaDeviceRec ( )

Definition at line 341 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 346 of file csma-channel.cc.

References active, and devicePtr.

◆ CsmaDeviceRec() [3/3]

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

Copy constructor.

Parameters
othe object to copy

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

References active, and devicePtr.

Member Function Documentation

◆ IsActive()

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

Definition at line 359 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 45 of file csma-channel.h.

Referenced by CsmaDeviceRec(), and IsActive().

◆ devicePtr

Ptr< CsmaNetDevice > ns3::CsmaDeviceRec::devicePtr

Pointer to the net device.

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

Referenced by CsmaDeviceRec().


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