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

#include <Ieee80211Band.h>

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

Public Member Functions

 Ieee80211EnumeratedBand (const char *name, const std::vector< Hz > centers)
 
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

std::vector< Hzcenters
 
- 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::Ieee80211EnumeratedBand::Ieee80211EnumeratedBand ( const char *  name,
const std::vector< Hz centers 
)
29  :
32 {
33 }
std::vector< Hz > centers
Definition: Ieee80211Band.h:50
Ieee80211BandBase(const char *name)
Definition: Ieee80211Band.cc:24
const char * name
Definition: Ieee80211Band.h:39

Member Function Documentation

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

Implements inet::physicallayer::IIeee80211Band.

36 {
37  if (channelNumber < 0 || channelNumber >= (int)centers.size())
38  throw cRuntimeError("Invalid channel number: %d", channelNumber);
39  return centers[channelNumber];
40 }
std::vector< Hz > centers
Definition: Ieee80211Band.h:50
virtual int inet::physicallayer::Ieee80211EnumeratedBand::getNumChannels ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211Band.

55 { return centers.size(); }
std::vector< Hz > centers
Definition: Ieee80211Band.h:50

Member Data Documentation

std::vector<Hz> inet::physicallayer::Ieee80211EnumeratedBand::centers
protected

Referenced by getCenterFrequency().


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