INET Framework for OMNeT++/OMNEST
inet::physicallayer::INeighborCache Class Referenceabstract

This interface keeps track of neighbor relationships between radios. More...

#include <INeighborCache.h>

Inheritance diagram for inet::physicallayer::INeighborCache:
inet::physicallayer::IPrintableObject inet::physicallayer::GridNeighborCache inet::physicallayer::NeighborListNeighborCache inet::physicallayer::QuadTreeNeighborCache

Public Member Functions

virtual void addRadio (const IRadio *radio)=0
 
virtual void removeRadio (const IRadio *radio)=0
 
virtual void sendToNeighbors (IRadio *transmitter, const IRadioFrame *frame, double range) const =0
 Sends the provided frame (using the radio medium) to all neighbors within the given range. More...
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const
 Prints this object to the provided output stream. More...
 
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
 

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
}
 

Detailed Description

This interface keeps track of neighbor relationships between radios.

Member Function Documentation

virtual void inet::physicallayer::INeighborCache::addRadio ( const IRadio radio)
pure virtual
virtual void inet::physicallayer::INeighborCache::removeRadio ( const IRadio radio)
pure virtual
virtual void inet::physicallayer::INeighborCache::sendToNeighbors ( IRadio transmitter,
const IRadioFrame frame,
double  range 
) const
pure virtual

Sends the provided frame (using the radio medium) to all neighbors within the given range.

Implemented in inet::physicallayer::QuadTreeNeighborCache, inet::physicallayer::GridNeighborCache, and inet::physicallayer::NeighborListNeighborCache.

Referenced by inet::physicallayer::RadioMedium::sendToAffectedRadios().


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