67 #include "ns3/object.h"
68 #include "ns3/random-variable-stream.h"
153 virtual void DoReset (
void) = 0;
354 std::list<uint32_t>
GetList (
void)
const;
360 void SetList (
const std::list<uint32_t> &packetlist);
395 std::list<uint32_t>
GetList (
void)
const;
401 void SetList (
const std::list<uint32_t> &packetlist);
virtual void DoReset(void)
void SetRandomBurstSize(Ptr< RandomVariableStream > burstSz)
std::list< uint32_t > GetList(void) const
std::list< uint32_t > GetList(void) const
static TypeId GetTypeId(void)
virtual bool DoCorrupt(Ptr< Packet >)=0
General error model that can be used to corrupt packets.
virtual void DoReset(void)
virtual void DoReset(void)=0
static TypeId GetTypeId(void)
virtual ~ReceiveListErrorModel()
virtual ~RateErrorModel()
std::list< uint32_t >::const_iterator PacketListCI
bool IsEnabled(void) const
virtual bool DoCorruptBit(Ptr< Packet > p)
Ptr< RandomVariableStream > m_burstStart
std::list< uint32_t > PacketList
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
void SetRate(double rate)
Ptr< RandomVariableStream > m_burstSize
Provide a list of Packet uids to corrupt.
virtual bool DoCorrupt(Ptr< Packet > p)
virtual void DoReset(void)
virtual bool DoCorruptByte(Ptr< Packet > p)
Ptr< RandomVariableStream > m_ranvar
void Disable(void)
Disable the error model.
virtual bool DoCorrupt(Ptr< Packet > p)
virtual ~BurstErrorModel()
virtual ~ListErrorModel()
double GetRate(void) const
static TypeId GetTypeId(void)
virtual bool DoCorrupt(Ptr< Packet > p)
void SetRandomVariable(Ptr< RandomVariableStream > ranVar)
void SetList(const std::list< uint32_t > &packetlist)
void Reset(void)
Reset any state associated with the error model.
virtual void DoReset(void)
void SetUnit(enum ErrorUnit error_unit)
static TypeId GetTypeId(void)
double GetBurstRate(void) const
virtual bool DoCorrupt(Ptr< Packet > p)
virtual bool DoCorruptPkt(Ptr< Packet > p)
Determine which bursts of packets are errored corresponding to an underlying distribution, burst rate, and burst size.
uint32_t m_currentBurstSz
Provide a list of Packets to corrupt.
std::list< uint32_t > PacketList
bool IsCorrupt(Ptr< Packet > pkt)
Note: Depending on the error model, this function may or may not alter the contents of the packet upo...
void SetList(const std::list< uint32_t > &packetlist)
void SetRandomVariable(Ptr< RandomVariableStream >)
std::list< uint32_t >::const_iterator PacketListCI
static TypeId GetTypeId(void)
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
a base class which provides memory management and object aggregation
Determine which packets are errored corresponding to an underlying distribution, rate, and unit.
RateErrorModel::ErrorUnit GetUnit(void) const
a unique identifier for an interface.
void SetBurstRate(double rate)
void Enable(void)
Enable the error model.