#include <radio-environment-map-helper.h>
Classes | |
struct | RemPoint |
Public Member Functions | |
RadioEnvironmentMapHelper () | |
virtual | ~RadioEnvironmentMapHelper () |
virtual void | DoDispose (void) |
uint8_t | GetBandwidth () const |
void | Install () |
void | SetBandwidth (uint8_t bw) |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Start (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Member Functions | |
void | DelayedInstall () |
void | Finalize () |
void | PrintAndReset () |
void | RunOneIteration (double xMin, double xMax, double yMin, double yMax) |
Private Attributes | |
uint16_t | m_bandwidth |
Ptr< SpectrumChannel > | m_channel |
std::string | m_channelPath |
uint16_t | m_earfcn |
uint32_t | m_maxPointsPerIteration |
double | m_noisePower |
std::ofstream | m_outFile |
std::string | m_outputFile |
std::list< RemPoint > | m_rem |
bool | m_stopWhenDone |
double | m_xMax |
double | m_xMin |
uint16_t | m_xRes |
double | m_xStep |
double | m_yMax |
double | m_yMin |
uint16_t | m_yRes |
double | m_yStep |
double | m_z |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
Generates a 2D map of the SINR from the strongest transmitter in the downlink of an LTE FDD system.
This type is not accessible from the Config system.
No TraceSources are defined for this type.
Definition at line 42 of file radio-environment-map-helper.h.
ns3::RadioEnvironmentMapHelper::RadioEnvironmentMapHelper | ( | ) |
Definition at line 50 of file radio-environment-map-helper.cc.
|
virtual |
Definition at line 55 of file radio-environment-map-helper.cc.
|
private |
Definition at line 198 of file radio-environment-map-helper.cc.
References ns3::SpectrumChannel::AddRx(), ns3::RadioEnvironmentMapHelper::RemPoint::bmm, Finalize(), ns3::LteSpectrumValueHelper::GetSpectrumModel(), m_bandwidth, m_channel, m_earfcn, m_maxPointsPerIteration, m_rem, m_xMax, m_xMin, m_xRes, m_xStep, m_yMax, m_yMin, m_yRes, m_yStep, NS_LOG_FUNCTION, ns3::RadioEnvironmentMapHelper::RemPoint::phy, RunOneIteration(), ns3::Simulator::Schedule(), ns3::Seconds(), ns3::RemSpectrumPhy::SetMobility(), ns3::RemSpectrumPhy::SetRxSpectrumModel(), and sample-rng-plot::x.
Referenced by Install().
|
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.
Definition at line 62 of file radio-environment-map-helper.cc.
References NS_LOG_FUNCTION.
|
private |
Definition at line 319 of file radio-environment-map-helper.cc.
References m_outFile, m_stopWhenDone, NS_LOG_FUNCTION, and ns3::Simulator::Stop().
Referenced by DelayedInstall().
uint8_t ns3::RadioEnvironmentMapHelper::GetBandwidth | ( | ) | const |
Definition at line 141 of file radio-environment-map-helper.cc.
References m_bandwidth.
Referenced by GetTypeId().
|
static |
Reimplemented from ns3::Object.
Definition at line 68 of file radio-environment-map-helper.cc.
References GetBandwidth(), m_channelPath, m_earfcn, m_maxPointsPerIteration, m_noisePower, m_outputFile, m_stopWhenDone, m_xMax, m_xMin, m_xRes, m_yMax, m_yMin, m_yRes, m_z, NS_LOG_FUNCTION, SetBandwidth(), and ns3::TypeId::SetParent().
void ns3::RadioEnvironmentMapHelper::Install | ( | ) |
Deploy the RemSpectrumPhy objects that generate the map according to the specified settings.
Definition at line 169 of file radio-environment-map-helper.cc.
References DelayedInstall(), ns3::Config::MatchContainer::Get(), ns3::Config::MatchContainer::GetN(), ns3::Object::GetObject(), ns3::Config::LookupMatches(), m_channel, m_channelPath, m_outFile, m_outputFile, m_rem, NS_ABORT_MSG_IF, NS_FATAL_ERROR, NS_LOG_FUNCTION, ns3::Simulator::Schedule(), and ns3::Seconds().
Referenced by main().
|
private |
Definition at line 290 of file radio-environment-map-helper.cc.
References m_noisePower, m_outFile, m_rem, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Vector3D::x, ns3::Vector3D::y, and ns3::Vector3D::z.
Referenced by RunOneIteration().
|
private |
Definition at line 256 of file radio-environment-map-helper.cc.
References m_rem, m_xMax, m_xStep, m_yMax, m_yMin, m_yStep, m_z, ns3::BuildingsHelper::MakeConsistent(), NS_ASSERT, NS_LOG_FUNCTION, NS_LOG_LOGIC, PrintAndReset(), ns3::Simulator::Schedule(), ns3::Seconds(), and sample-rng-plot::x.
Referenced by DelayedInstall().
void ns3::RadioEnvironmentMapHelper::SetBandwidth | ( | uint8_t | bw | ) |
bw | the bandwidth (in num of RBs) over which SINR is calculated |
Definition at line 147 of file radio-environment-map-helper.cc.
References m_bandwidth, and NS_FATAL_ERROR.
Referenced by GetTypeId().
|
private |
Definition at line 99 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), GetBandwidth(), and SetBandwidth().
|
private |
Definition at line 108 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and Install().
|
private |
Definition at line 103 of file radio-environment-map-helper.h.
Referenced by GetTypeId(), and Install().
|
private |
Definition at line 98 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and GetTypeId().
|
private |
Definition at line 96 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and GetTypeId().
|
private |
Definition at line 110 of file radio-environment-map-helper.h.
Referenced by GetTypeId(), and PrintAndReset().
|
private |
Definition at line 112 of file radio-environment-map-helper.h.
Referenced by Finalize(), Install(), and PrintAndReset().
|
private |
Definition at line 104 of file radio-environment-map-helper.h.
Referenced by GetTypeId(), and Install().
Definition at line 84 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), Install(), PrintAndReset(), and RunOneIteration().
|
private |
Definition at line 106 of file radio-environment-map-helper.h.
Referenced by Finalize(), and GetTypeId().
|
private |
Definition at line 87 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), GetTypeId(), and RunOneIteration().
|
private |
Definition at line 86 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and GetTypeId().
|
private |
Definition at line 88 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and GetTypeId().
|
private |
Definition at line 89 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and RunOneIteration().
|
private |
Definition at line 92 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), GetTypeId(), and RunOneIteration().
|
private |
Definition at line 91 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), GetTypeId(), and RunOneIteration().
|
private |
Definition at line 93 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and GetTypeId().
|
private |
Definition at line 94 of file radio-environment-map-helper.h.
Referenced by DelayedInstall(), and RunOneIteration().
|
private |
Definition at line 101 of file radio-environment-map-helper.h.
Referenced by GetTypeId(), and RunOneIteration().