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)
Ptr< MobilityModel > m_mobility
the mobility model
uint16_t m_cellId
the cell ID
void SetCellId(uint16_t cellId)
Set cell ID.
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Abstract base class for Spectrum-aware PHY layers.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
void SetChannel(Ptr< SpectrumChannel > c)
Set the channel attached to this device.
Ptr< NetDevice > GetDevice() const
Get the associated NetDevice instance.
void SetRxSpectrumModel(Ptr< const SpectrumModel > model)
Set receive spectrum model.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual void DoDispose()
Destructor implementation.
virtual void DoDispose(void)
Destructor implementation.
Ptr< AntennaModel > GetRxAntenna()
Get the AntennaModel used by the NetDevice for reception.
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
Create a TraceSourceAccessor which will control access to the underlying trace source.
virtual ~LteSimpleSpectrumPhy()
Ptr< SpectrumChannel > m_channel
the channel
Ptr< AntennaModel > m_antenna
the antenna model
static TypeId GetTypeId(void)
Get the type ID.
Ptr< const SpectrumModel > GetRxSpectrumModel() const
void SetMobility(Ptr< MobilityModel > m)
Set the mobility model associated with this device.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TracedCallback< Ptr< const SpectrumValue > > m_rxStart
receive start trace callback function
Ptr< NetDevice > m_device
the device
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Ptr< MobilityModel > GetMobility()
Get the associated MobilityModel instance.
Ptr< const SpectrumModel > m_rxSpectrumModel
the spectrum model
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void StartRx(Ptr< SpectrumSignalParameters > params)
Notify the SpectrumPhy instance of an incoming signal.
void SetDevice(Ptr< NetDevice > d)
Set the associated NetDevice instance.