ns-3
|
#include <rem-spectrum-phy.h>
Public Member Functions | |
void | DoDispose () |
void | SetChannel (Ptr< SpectrumChannel > c) |
void | SetMobility (Ptr< MobilityModel > m) |
void | SetDevice (Ptr< NetDevice > d) |
Ptr< MobilityModel > | GetMobility () |
Ptr< NetDevice > | GetDevice () |
Ptr< const SpectrumModel > | GetRxSpectrumModel () const |
Ptr< AntennaModel > | GetRxAntenna () |
void | StartRx (Ptr< SpectrumSignalParameters > params) |
void | SetRxSpectrumModel (Ptr< const SpectrumModel > m) |
double | GetSinr (double noisePower) |
void | Deactivate () |
bool | IsActive () |
void | Reset () |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::RemSpectrumPhy. |
This minimal SpectrumPhy implemetation calculates the SINR with respect to the strongest signal for a given point. The original purpose of this class is to be used to generate a Radio Environment Map (REM) by locating several instances in a grid fashion, and connecting them to the channel only for a very short amount of time.
The assumption on which this class works is that the system being considered is an infrastructured radio access network using FDD, hence all signals will be transmitted simultaneously.
void ns3::RemSpectrumPhy::Deactivate | ( | ) |
make StartRx a no-op from now on, and mark instance as inactive
|
virtual |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Object.
References NS_LOG_FUNCTION.
get the associated NetDevice instance
Implements ns3::SpectrumPhy.
|
virtual |
get the associated MobilityModel instance
Implements ns3::SpectrumPhy.
|
virtual |
get the AntennaModel used by the NetDevice for reception
Implements ns3::SpectrumPhy.
|
virtual |
Implements ns3::SpectrumPhy.
double ns3::RemSpectrumPhy::GetSinr | ( | double | noisePower | ) |
|
static |
This method returns the TypeId associated to ns3::RemSpectrumPhy.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::SpectrumPhy.
References ns3::TypeId::SetParent().
bool ns3::RemSpectrumPhy::IsActive | ( | ) |
void ns3::RemSpectrumPhy::Reset | ( | void | ) |
Reset the SINR calculator
|
virtual |
set the associated NetDevice instance
d | the NetDevice instance |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
|
virtual |
Set the mobility model associated with this device.
m | the mobility model |
Implements ns3::SpectrumPhy.
References NS_LOG_FUNCTION.
void ns3::RemSpectrumPhy::SetRxSpectrumModel | ( | Ptr< const SpectrumModel > | m | ) |
|
virtual |
Notify the SpectrumPhy instance of an incoming signal
params | the parameters of the signals being received |
Implements ns3::SpectrumPhy.
References ns3::Integral(), NS_ASSERT_MSG, and NS_LOG_FUNCTION.