26 #include "ns3/callback.h" 
   27 #include "ns3/nstime.h" 
   28 #include "ns3/event-id.h" 
   32 #include "ns3/object.h" 
   33 #include "ns3/traced-callback.h" 
  125   void SetDuplex (uint64_t rxFrequency, uint64_t txFrequency);
 
  331   uint16_t 
GetTtg (
void) 
const;
 
  336   uint16_t 
GetRtg (
void) 
const;
 
An identifier for simulation events.
 
A base class which provides memory management and object aggregation.
 
Smart pointer class similar to boost::intrusive_ptr.
 
The SendParams class defines the parameters with which Send() function of a particular PHY is called.
 
Simulation virtual time values and global simulation resolution.
 
a unique identifier for an interface.
 
Time GetTransmissionTime(uint32_t size, ModulationType modulationType) const
Get transmission time needed to send bytes at a given modulation.
 
uint8_t GetNrCarriers(void) const
Get the number of carriers in the physical frame.
 
double GetGValue(void) const
Get the guard interval factor (the ratio TG/Td)
 
ModulationType
ModulationType enumeration.
 
@ MODULATION_TYPE_QPSK_12
 
@ MODULATION_TYPE_QAM16_12
 
@ MODULATION_TYPE_QAM64_34
 
@ MODULATION_TYPE_QAM16_34
 
@ MODULATION_TYPE_QAM64_23
 
@ MODULATION_TYPE_QPSK_34
 
@ MODULATION_TYPE_BPSK_12
 
void SetSymbolDuration(Time symbolDuration)
set the OFDM symbol duration
 
virtual void SetMobility(Ptr< Object > mobility)
set the mobility model of the device
 
void EndScanning(void)
End scanning.
 
void SetChannelBandwidth(uint32_t channelBandwidth)
Set the channel bandwidth.
 
uint64_t GetNrBytes(uint32_t symbols, ModulationType modulationType) const
Get the maximum number of bytes that could be carried by symbols symbols using the modulation modulat...
 
virtual int64_t AssignStreams(int64_t stream)=0
Assign a fixed random variable stream number to the random variables used by this model.
 
uint64_t m_txFrequency
transmit frequency
 
Time GetSymbolDuration(void) const
Get the OFDM symbol duration.
 
void SetDuplex(uint64_t rxFrequency, uint64_t txFrequency)
configure the physical layer in duplex mode
 
EventId m_dlChnlSrchTimeoutEvent
DL channel search timeout event.
 
Time GetPsDuration(void) const
Get the physical slot duration.
 
double GetSamplingFrequency(void) const
Get the sampling frequency.
 
Ptr< Object > m_mobility
modility model
 
PhyType
PhyType enumeration.
 
uint32_t m_channelBandwidth
in Hz
 
Time m_psDuration
in seconds
 
void Attach(Ptr< WimaxChannel > channel)
Attach the physical layer to a channel.
 
uint16_t m_psPerFrame
ps per framce
 
Time GetFrameDurationSec(void) const
Get the frame duration This method is redundant with GetFrameDuration ()
 
virtual uint16_t DoGetTtg(void) const =0
Get TTG.
 
void SetFrequency(uint32_t frequency)
set the frequency on which the device should lock
 
uint32_t m_symbolsPerFrame
symbols per frame
 
virtual Ptr< Object > GetMobility(void)
Get the mobility model of the device.
 
void SetDevice(Ptr< WimaxNetDevice > device)
Set the device in which this physical layer is installed.
 
uint32_t GetFrequency(void) const
Get the frequency on which the device is locked.
 
static TypeId GetTypeId(void)
Get the type ID.
 
uint64_t m_rxFrequency
receive frequency
 
void StartScanning(uint64_t frequency, Time timeout, Callback< void, bool, uint64_t > callback)
scan a frequency for maximum timeout seconds and call the callback if the frequency can be used
 
void SetReceiveCallback(Callback< void, Ptr< const PacketBurst > > callback)
set the callback function to call when a burst is received
 
virtual void DoAttach(Ptr< WimaxChannel > channel)=0
Attach channel.
 
virtual void Send(SendParams *params)=0
send a packet on the channel
 
virtual void DoDispose(void)
Destructor implementation.
 
void SetSymbolsPerFrame(uint32_t symbolsPerFrame)
set the number of symbols per frame
 
Ptr< WimaxNetDevice > m_device
the device
 
Time GetFrameDuration(void) const
Get the frame duration.
 
virtual uint64_t DoGetNrSymbols(uint32_t size, ModulationType modulationType) const =0
Get number of symbols.
 
virtual uint64_t DoGetNrBytes(uint32_t symbols, ModulationType modulationType) const =0
Get number of bytes.
 
void SetNrCarriers(uint8_t nrCarriers)
Set the number of carriers in the physical frame.
 
uint16_t GetNfft(void) const
Get the size of the FFT.
 
Ptr< WimaxChannel > m_channel
channel
 
virtual void DoSetDataRates(void)=0
Set data rates.
 
uint16_t GetPsPerFrame(void) const
Get the number of physical slots per frame.
 
Ptr< WimaxChannel > GetChannel(void) const
 
uint64_t m_scanningFrequency
scanning frequency
 
void SetDataRates(void)
calculates the data rate of each modulation and save them for future use
 
virtual uint16_t DoGetRtg(void) const =0
Get RTG.
 
virtual double DoGetSamplingFactor(void) const =0
Get sampling factor.
 
void SetPhyParameters(void)
computes the Physical parameters and store them
 
uint32_t GetChannelBandwidth(void) const
Get the channel bandwidth.
 
void SetPsPerFrame(uint16_t psPerFrame)
set the number of physical slots per frame
 
PhyState
PhyState enumeration.
 
virtual double DoGetSamplingFrequency(void) const =0
Get sampling frequency.
 
uint64_t GetTxFrequency(void) const
Get the transmission frequency.
 
uint32_t GetDataRate(ModulationType modulationType) const
Get the data rate corresponding to a modulation type.
 
virtual Time DoGetTransmissionTime(uint32_t size, ModulationType modulationType) const =0
Get transmission time.
 
uint32_t m_frequency
in KHz
 
Callback< void, Ptr< const PacketBurst > > GetReceiveCallback(void) const
 
virtual Time DoGetFrameDuration(uint8_t frameDurationCode) const =0
Get frame duration.
 
uint8_t m_nrCarriers
number of carriers
 
uint16_t GetRtg(void) const
Get the receive/transmit transition gap.
 
virtual void DoSetPhyParameters(void)=0
Set phy parameters.
 
bool IsDuplex(void) const
Check if configured in duplex mode.
 
void SetSimplex(uint64_t frequency)
configure the physical layer in simplex mode
 
Callback< void, Ptr< const PacketBurst > > m_rxCallback
receive callback function
 
void SetFrameDuration(Time frameDuration)
Set the frame duration.
 
Time m_symbolDuration
in seconds
 
EventId GetChnlSrchTimeoutEvent(void) const
Get channel search timeout event.
 
uint64_t GetScanningFrequency(void) const
Get the scanning frequency.
 
void SetPsDuration(Time psDuration)
set the physical slot duration
 
uint64_t GetNrSymbols(uint32_t size, ModulationType modulationType) const
Get the number of symbols needed to transmit size bytes using the modulation modulationType.
 
uint32_t GetSymbolsPerFrame(void) const
Get the number of symbols per frame.
 
void SetState(PhyState state)
set the state of the device
 
Callback< void, bool, uint64_t > m_scanningCallback
scanning callback function
 
virtual uint32_t DoGetDataRate(ModulationType modulationType) const =0
Get data rate.
 
void GetModulationFecParams(ModulationType modulationType, uint8_t &bitsPerSymbol, double &fecCode) const
Get modulation FEC parameters.
 
virtual uint8_t DoGetFrameDurationCode(void) const =0
Get frame duration code.
 
virtual uint16_t DoGetNfft(void) const =0
Get NFFT.
 
uint16_t m_psPerSymbol
ps per sumbol
 
uint64_t GetRxFrequency(void) const
Get the reception frequency.
 
Time m_frameDuration
in seconds
 
Ptr< NetDevice > GetDevice(void) const
 
uint8_t GetFrameDurationCode(void) const
Get the frame duration code.
 
PhyState GetState(void) const
Get the state of the device.
 
void SetPsPerSymbol(uint16_t psPerSymbol)
set the number of physical slots per symbol
 
uint16_t GetTtg(void) const
Get the transmit/receive transition gap.
 
void SetScanningCallback(void) const
calls the scanning call back function
 
virtual PhyType GetPhyType(void) const =0
Get the type of the physical layer.
 
double GetSamplingFactor(void) const
Get the sampling factor.
 
virtual double DoGetGValue(void) const =0
Get G value.
 
uint16_t GetPsPerSymbol(void) const
Get the number of physical slots per symbol.
 
Every class exported by the ns3 library is enclosed in the ns3 namespace.