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 (Ptr< CsmaNetDevice > device)
 Constructor Builds a record of the given NetDevice, its status is initialized to enabled. More...
 
 CsmaDeviceRec (CsmaDeviceRec const &o)
 Copy constructor. 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

ns3::CsmaDeviceRec::CsmaDeviceRec ( )

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

References active.

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 349 of file csma-channel.cc.

References active, and devicePtr.

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

Copy constructor.

Parameters
othe object to copy

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

References active, and devicePtr.

Member Function Documentation

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

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

References active.

Member Data Documentation

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().

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: