24 #include <ns3/simulator.h>
25 #include <ns3/antenna-model.h>
27 #include "ns3/lte-spectrum-signal-parameters.h"
28 #include "ns3/lte-net-device.h"
29 #include "ns3/lte-phy-tag.h"
30 #include <ns3/boolean.h>
31 #include <ns3/double.h>
65 .AddTraceSource (
"RxStart",
66 "Data reception start",
68 "ns3::SpectrumValue::TracedCallback")
134 Time duration = spectrumRxParams->duration;
139 if (lteDataRxParams != 0)
143 if (
m_cellId == lteDataRxParams->cellId)
void SetDevice(Ptr< NetDevice > d)
Set the associated NetDevice instance.
Ptr< const SpectrumModel > GetRxSpectrumModel() const
Ptr< SpectrumChannel > m_channel
the channel
Ptr< MobilityModel > GetMobility() const
Get the associated MobilityModel instance.
void SetChannel(Ptr< SpectrumChannel > c)
Set the channel attached to this device.
void SetRxSpectrumModel(Ptr< const SpectrumModel > model)
Set receive spectrum model.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< NetDevice > GetDevice() const
Get the associated NetDevice instance.
virtual ~LteSimpleSpectrumPhy()
Ptr< AntennaModel > m_antenna
the antenna model
TracedCallback< Ptr< const SpectrumValue > > m_rxStart
receive start trace callback function
Ptr< Object > GetAntenna() const
Get the AntennaModel used by this SpectrumPhy instance for transmission and/or reception.
Ptr< NetDevice > m_device
the device
Ptr< const SpectrumModel > m_rxSpectrumModel
the spectrum model
virtual void DoDispose()
Destructor implementation.
void SetMobility(Ptr< MobilityModel > m)
Set the mobility model associated with this device.
Ptr< MobilityModel > m_mobility
the mobility model
void SetCellId(uint16_t cellId)
Set cell ID.
uint16_t m_cellId
the cell ID
void StartRx(Ptr< SpectrumSignalParameters > params)
Notify the SpectrumPhy instance of an incoming signal.
virtual void DoDispose(void)
Destructor implementation.
Abstract base class for Spectrum-aware PHY layers.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
Every class exported by the ns3 library is enclosed in the ns3 namespace.