22 #ifndef LTE_INTERFERENCE_H 23 #define LTE_INTERFERENCE_H 25 #include <ns3/object.h> 26 #include <ns3/packet.h> 27 #include <ns3/nstime.h> 28 #include <ns3/spectrum-value.h> 37 class LteChunkProcessor;
Time m_lastChangeTime
the time of the last change in m_TotalPower
bool m_receiving
are we receiving?
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
virtual ~LteInterference()
Ptr< const SpectrumValue > m_noise
the noise value
virtual void DoDispose()
Destructor implementation.
void AddSinrChunkProcessor(Ptr< LteChunkProcessor > p)
Add a LteChunkProcessor that will use the time-vs-frequency SINR calculated by this LteInterference i...
std::list< Ptr< LteChunkProcessor > > m_sinrChunkProcessorList
all the processor instances that need to be notified whenever a new SINR chunk is calculated ...
void AddRsPowerChunkProcessor(Ptr< LteChunkProcessor > p)
Add a LteChunkProcessor that will use the time-vs-frequency power calculated by this LteInterference ...
This class implements a gaussian interference model, i.e., all incoming signals are added to the tota...
void DoSubtractSignal(Ptr< const SpectrumValue > spd, uint32_t signalId)
Subtract signal.
static TypeId GetTypeId(void)
Get the type ID.
std::list< Ptr< LteChunkProcessor > > m_rsPowerChunkProcessorList
all the processor instances that need to be notified whenever a new interference chunk is calculated ...
void ConditionallyEvaluateChunk()
Considitionally evaluate chunk.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void AddInterferenceChunkProcessor(Ptr< LteChunkProcessor > p)
Add a LteChunkProcessor that will use the time-vs-frequency interference calculated by this LteInterf...
void SetNoisePowerSpectralDensity(Ptr< const SpectrumValue > noisePsd)
void DoAddSignal(Ptr< const SpectrumValue > spd)
Add signal function.
std::list< Ptr< LteChunkProcessor > > m_interfChunkProcessorList
all the processor instances that need to be notified whenever a new interference chunk is calculated ...
void EndRx()
notify that the RX attempt has ended.
uint32_t m_lastSignalIdBeforeReset
the last signal ID before reset
void StartRx(Ptr< const SpectrumValue > rxPsd)
notify that the PHY is starting a RX attempt
void AddSignal(Ptr< const SpectrumValue > spd, const Time duration)
notify that a new signal is being perceived in the medium.
Ptr< SpectrumValue > m_rxSignal
stores the power spectral density of the signal whose RX is being attempted
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
Ptr< SpectrumValue > m_allSignals
stores the spectral power density of the sum of incoming signals; does not include noise...
uint32_t m_lastSignalId
the last signal ID