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

EtherAutoconfig Class Reference

#include <EtherFrame_m.h>

List of all members.

Public Methods

 EtherAutoconfig (const char *name=NULL, int kind=0)
 EtherAutoconfig (const EtherAutoconfig &other)
virtual ~EtherAutoconfig ()
EtherAutoconfig & operator= (const EtherAutoconfig &other)
virtual cObject * dup () const
virtual double getTxrate () const
virtual void setTxrate (double txrate_var)
virtual bool getHalfDuplex () const
virtual void setHalfDuplex (bool halfDuplex_var)

Protected Attributes

double txrate_var
bool halfDuplex_var


Constructor & Destructor Documentation

EtherAutoconfig::EtherAutoconfig const char *    name = NULL,
int    kind = 0
 

Definition at line 968 of file EtherFrame_m.cc.

References halfDuplex_var, and txrate_var.

Referenced by dup().

00968                                                            : cMessage(name,kind)
00969 {
00970     unsigned int i;
00971     this->txrate_var = 0;
00972     this->halfDuplex_var = false;
00973 }

EtherAutoconfig::EtherAutoconfig const EtherAutoconfig &    other
 

Definition at line 975 of file EtherFrame_m.cc.

References operator=().

00975                                                              : cMessage()
00976 {
00977     unsigned int i;
00978     setName(other.name());
00979     operator=(other);
00980 }

EtherAutoconfig::~EtherAutoconfig   [virtual]
 

Definition at line 982 of file EtherFrame_m.cc.

00983 {
00984     unsigned int i;
00985 }


Member Function Documentation

virtual cObject* EtherAutoconfig::dup   const [inline, virtual]
 

Definition at line 120 of file EtherFrame_m.h.

References EtherAutoconfig().

00120 {return new EtherAutoconfig(*this);}

bool EtherAutoconfig::getHalfDuplex   const [virtual]
 

Definition at line 1007 of file EtherFrame_m.cc.

References halfDuplex_var.

Referenced by EtherAutoconfigDescriptor::getFieldAsString(), and EtherMAC::handleAutoconfigMessage().

01008 {
01009     return halfDuplex_var;
01010 }

double EtherAutoconfig::getTxrate   const [virtual]
 

Definition at line 997 of file EtherFrame_m.cc.

References txrate_var.

Referenced by EtherAutoconfigDescriptor::getFieldAsString(), and EtherMAC::handleAutoconfigMessage().

00998 {
00999     return txrate_var;
01000 }

EtherAutoconfig & EtherAutoconfig::operator= const EtherAutoconfig &    other
 

Definition at line 987 of file EtherFrame_m.cc.

References halfDuplex_var, and txrate_var.

Referenced by EtherAutoconfig().

00988 {
00989     if (this==&other) return *this;
00990     unsigned int i;
00991     cMessage::operator=(other);
00992     this->txrate_var = other.txrate_var;
00993     this->halfDuplex_var = other.halfDuplex_var;
00994     return *this;
00995 }

void EtherAutoconfig::setHalfDuplex bool    halfDuplex_var [virtual]
 

Definition at line 1012 of file EtherFrame_m.cc.

References halfDuplex_var.

Referenced by EtherHub::initialize(), EtherBus::initialize(), EtherAutoconfigDescriptor::setFieldAsString(), and EtherMAC::startAutoconfig().

01013 {
01014     this->halfDuplex_var = halfDuplex_var;
01015 }

void EtherAutoconfig::setTxrate double    txrate_var [virtual]
 

Definition at line 1002 of file EtherFrame_m.cc.

References txrate_var.

Referenced by EtherBus::initialize(), EtherAutoconfigDescriptor::setFieldAsString(), and EtherMAC::startAutoconfig().

01003 {
01004     this->txrate_var = txrate_var;
01005 }


Member Data Documentation

bool EtherAutoconfig::halfDuplex_var [protected]
 

Definition at line 114 of file EtherFrame_m.h.

Referenced by EtherAutoconfig(), getHalfDuplex(), operator=(), and setHalfDuplex().

double EtherAutoconfig::txrate_var [protected]
 

Definition at line 113 of file EtherFrame_m.h.

Referenced by EtherAutoconfig(), getTxrate(), operator=(), and setTxrate().


The documentation for this class was generated from the following files:
Generated on Sat May 15 20:30:46 2004 for Ethernet by doxygen1.2.17