|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #include "ns3/dsss-error-rate-model.h"
33 .SetGroupName (
"Wifi")
42 double low, high, precision;
46 while (high - low > precision)
49 double middle = low + (high - low) / 2;
78 NS_ASSERT (
"undefined DSSS/HR-DSSS datarate");
a unique identifier for an interface.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
double CalculateSnr(const WifiTxVector &txVector, double ber) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiModulationClass GetModulationClass() const
static TypeId GetTypeId(void)
Get the type ID.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
TypeId SetParent(TypeId tid)
Set the parent TypeId.
virtual int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
double GetChunkSuccessRate(WifiMode mode, const WifiTxVector &txVector, double snr, uint64_t nbits, uint8_t numRxAntennas=1, WifiPpduField field=WIFI_PPDU_FIELD_DATA, uint16_t staId=SU_STA_ID) const
This method returns the probability that the given 'chunk' of the packet will be successfully receive...
@ WIFI_MOD_CLASS_HR_DSSS
HR/DSSS (Clause 16)
static double GetDsssDqpskCck11SuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK for 11Mbps data rate.
represent a single transmission mode
static double GetDsssDqpskCck5_5SuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK for 5.5Mbps data rate.
A base class which provides memory management and object aggregation.
WifiPpduField
The type of PPDU field (grouped for convenience)
virtual bool IsAwgn(void) const
virtual double DoGetChunkSuccessRate(WifiMode mode, const WifiTxVector &txVector, double snr, uint64_t nbits, uint8_t numRxAntennas, WifiPpduField field, uint16_t staId) const =0
A pure virtual method that must be implemented in the subclass.
static double GetDsssDqpskSuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential encoded QPSK.
uint64_t GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const
static double GetDsssDbpskSuccessRate(double sinr, uint64_t nbits)
Return the chunk success rate of the differential BPSK.
@ WIFI_MOD_CLASS_DSSS
DSSS (Clause 15)
WifiMode GetMode(uint16_t staId=SU_STA_ID) const
If this TX vector is associated with an SU PPDU, return the selected payload transmission mode.