INET Framework for OMNeT++/OMNEST
inet::physicallayer::Ieee80211ArithmeticalBand Class Reference

#include <Ieee80211Band.h>

Inheritance diagram for inet::physicallayer::Ieee80211ArithmeticalBand:
inet::physicallayer::Ieee80211BandBase inet::physicallayer::IIeee80211Band inet::physicallayer::IPrintableObject

Public Member Functions

 Ieee80211ArithmeticalBand (const char *name, Hz start, Hz spacing, int numChannels)
 
virtual int getNumChannels () const override
 
virtual Hz getCenterFrequency (int channelNumber) const override
 
- Public Member Functions inherited from inet::physicallayer::Ieee80211BandBase
 Ieee80211BandBase (const char *name)
 
virtual const char * getName () const override
 
- Public Member Functions inherited from inet::physicallayer::IIeee80211Band
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string getInfoStringRepresentation () const
 
virtual std::string getDetailStringRepresentation () const
 
virtual std::string getDebugStringRepresentation () const
 
virtual std::string getTraceStringRepresentation () const
 
virtual std::string getCompleteStringRepresentation () const
 

Protected Attributes

Hz start
 
Hz spacing
 
int numChannels
 
- Protected Attributes inherited from inet::physicallayer::Ieee80211BandBase
const char * name
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::Ieee80211ArithmeticalBand::Ieee80211ArithmeticalBand ( const char *  name,
Hz  start,
Hz  spacing,
int  numChannels 
)
42  :
44  start(start),
47 {
48 }
int numChannels
Definition: Ieee80211Band.h:64
Hz spacing
Definition: Ieee80211Band.h:63
Hz start
Definition: Ieee80211Band.h:62
Ieee80211BandBase(const char *name)
Definition: Ieee80211Band.cc:24
const char * name
Definition: Ieee80211Band.h:39

Member Function Documentation

Hz inet::physicallayer::Ieee80211ArithmeticalBand::getCenterFrequency ( int  channelNumber) const
overridevirtual

Implements inet::physicallayer::IIeee80211Band.

51 {
52  if (channelNumber < 0 || channelNumber >= numChannels)
53  throw cRuntimeError("Invalid channel number: %d", channelNumber);
54  return start + spacing * channelNumber;
55 }
int numChannels
Definition: Ieee80211Band.h:64
Hz spacing
Definition: Ieee80211Band.h:63
Hz start
Definition: Ieee80211Band.h:62
virtual int inet::physicallayer::Ieee80211ArithmeticalBand::getNumChannels ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211Band.

69 { return numChannels; }
int numChannels
Definition: Ieee80211Band.h:64

Member Data Documentation

int inet::physicallayer::Ieee80211ArithmeticalBand::numChannels
protected

Referenced by getCenterFrequency().

Hz inet::physicallayer::Ieee80211ArithmeticalBand::spacing
protected

Referenced by getCenterFrequency().

Hz inet::physicallayer::Ieee80211ArithmeticalBand::start
protected

Referenced by getCenterFrequency().


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