21 #ifndef HALF_DUPLEX_IDEAL_PHY_H 
   22 #define HALF_DUPLEX_IDEAL_PHY_H 
   25 #include <ns3/spectrum-value.h> 
   26 #include <ns3/mobility-model.h> 
   27 #include <ns3/packet.h> 
   28 #include <ns3/nstime.h> 
   29 #include <ns3/net-device.h> 
   30 #include <ns3/spectrum-phy.h> 
   31 #include <ns3/spectrum-channel.h> 
   32 #include <ns3/spectrum-interference.h> 
   33 #include <ns3/data-rate.h> 
   34 #include <ns3/generic-phy.h> 
   35 #include <ns3/event-id.h> 
   36 #include <ns3/spectrum-signal-parameters.h> 
void SetRate(DataRate rate)
set the PHY rate to be used by this PHY. 
 
void SetGenericPhyTxEndCallback(GenericPhyTxEndCallback c)
set the callback for the end of a TX, as part of the interconnections betweenthe PHY and the MAC ...
 
Smart pointer class similar to boost::intrusive_ptr. 
 
Ptr< MobilityModel > m_mobility
 
Abstract base class for Spectrum-aware PHY layers. 
 
bool StartTx(Ptr< Packet > p)
Start a transmission. 
 
Ptr< NetDevice > GetDevice() const 
get the associated NetDevice instance 
 
Forward calls to a chain of Callback. 
 
void SetGenericPhyRxStartCallback(GenericPhyRxStartCallback c)
set the callback for the start of RX, as part of the interconnections betweenthe PHY and the MAC ...
 
SpectrumInterference m_interference
 
GenericPhyRxEndErrorCallback m_phyMacRxEndErrorCallback
 
Ptr< MobilityModel > GetMobility()
get the associated MobilityModel instance 
 
Ptr< const SpectrumValue > m_rxPsd
 
TracedCallback< Ptr< const Packet > > m_phyTxEndTrace
 
void StartRx(Ptr< SpectrumSignalParameters > params)
Notify the SpectrumPhy instance of an incoming signal. 
 
TracedCallback< Ptr< const Packet > > m_phyRxStartTrace
 
TracedCallback< Ptr< const Packet > > m_phyRxAbortTrace
 
Class for representing data rates. 
 
TracedCallback< Ptr< const Packet > > m_phyTxStartTrace
 
void SetDevice(Ptr< NetDevice > d)
set the associated NetDevice instance 
 
void SetAntenna(Ptr< AntennaModel > a)
set the AntennaModel to be used 
 
Ptr< SpectrumValue > m_txPsd
 
void SetGenericPhyRxEndOkCallback(GenericPhyRxEndOkCallback c)
set the callback for the successful end of a RX, as part of the interconnections betweenthe PHY and t...
 
virtual ~HalfDuplexIdealPhy()
 
GenericPhyRxEndOkCallback m_phyMacRxEndOkCallback
 
virtual void DoDispose(void)
Destructor implementation. 
 
Ptr< AntennaModel > GetRxAntenna()
get the AntennaModel used by the NetDevice for reception 
 
Ptr< SpectrumChannel > m_channel
 
This PHY layer implementation realizes an ideal OFDM PHY which transmits half-duplex (i...
 
void SetNoisePowerSpectralDensity(Ptr< const SpectrumValue > noisePsd)
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
void ChangeState(State newState)
 
This class implements a gaussian interference model, i.e., all incoming signals are added to the tota...
 
Ptr< NetDevice > m_netDevice
 
void SetGenericPhyRxEndErrorCallback(GenericPhyRxEndErrorCallback c)
set the callback for the end of a RX in error, as part of the interconnections betweenthe PHY and the...
 
Ptr< AntennaModel > m_antenna
 
An identifier for simulation events. 
 
TracedCallback< Ptr< const Packet > > m_phyRxEndErrorTrace
 
GenericPhyRxStartCallback m_phyMacRxStartCallback
 
static TypeId GetTypeId(void)
 
void SetChannel(Ptr< SpectrumChannel > c)
Set the channel attached to this device. 
 
TracedCallback< Ptr< const Packet > > m_phyRxEndOkTrace
 
void SetMobility(Ptr< MobilityModel > m)
Set the mobility model associated with this device. 
 
GenericPhyTxEndCallback m_phyMacTxEndCallback
 
void SetTxPowerSpectralDensity(Ptr< SpectrumValue > txPsd)
set the Power Spectral Density of outgoing signals in power units (Watt, Pascal...) per Hz. 
 
a unique identifier for an interface. 
 
Ptr< const SpectrumModel > GetRxSpectrumModel() const