ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

MacCsma Class Reference

#include <mac-csma.h>

Inheritance diagram for MacCsma:

Mac BiConnector NsObject TclObject Handler MacCsmaCa MacCsmaCd List of all members.

Public Member Functions

 MacCsma ()
virtual void send (Packet *p)
virtual void resume (Packet *p=0)
virtual void endofContention (Packet *p)

Protected Member Functions

virtual void backoff (Handler *h, Packet *p, double delay=0)

Protected Attributes

double txstart_
double ifs_
double slotTime_
int cw_
int cwmin_
int cwmax_
int rtx_
int rtxLimit_
int csense_
Event eEoc_
MacHandlerEoc hEoc_

Constructor & Destructor Documentation


Member Function Documentation

void MacCsma::backoff Handler   h,
Packet   p,
double    delay = 0
[protected, virtual]

void MacCsma::endofContention Packet   p [virtual]

Reimplemented in MacCsmaCd.

void MacCsma::resume Packet   p = 0 [virtual]

Reimplemented from Mac.

void MacCsma::send Packet   p [virtual]

Reimplemented in MacCsmaCa.

Member Data Documentation

int MacCsma::csense_ [protected]

int MacCsma::cw_ [protected]

int MacCsma::cwmax_ [protected]

int MacCsma::cwmin_ [protected]

Event MacCsma::eEoc_ [protected]

MacHandlerEoc MacCsma::hEoc_ [protected]

double MacCsma::ifs_ [protected]

int MacCsma::rtx_ [protected]

int MacCsma::rtxLimit_ [protected]

double MacCsma::slotTime_ [protected]

double MacCsma::txstart_ [protected]

The documentation for this class was generated from the following files:
This document is generated by doxygen.