A Discrete-Event Network Simulator
API
error-model-test-suite.cc File Reference
#include "ns3/test.h"
#include "ns3/simple-net-device.h"
#include "ns3/simple-channel.h"
#include "ns3/address.h"
#include "ns3/mac48-address.h"
#include "ns3/packet.h"
#include "ns3/callback.h"
#include "ns3/node.h"
#include "ns3/simulator.h"
#include "ns3/error-model.h"
#include "ns3/pointer.h"
#include "ns3/double.h"
#include "ns3/string.h"
#include "ns3/rng-seed-manager.h"
+ Include dependency graph for error-model-test-suite.cc:

Go to the source code of this file.

Classes

class  BurstErrorModelSimple
 
class  ErrorModelSimple
 
class  ErrorModelTestSuite
 

Functions

static void BuildSimpleTopology (Ptr< Node > a, Ptr< Node > b, Ptr< SimpleNetDevice > input, Ptr< SimpleNetDevice > output, Ptr< SimpleChannel > channel)
 
static void SendPacket (int num, Ptr< NetDevice > device, Address &addr)
 

Variables

static ErrorModelTestSuite errorModelTestSuite
 

Function Documentation

static void BuildSimpleTopology ( Ptr< Node a,
Ptr< Node b,
Ptr< SimpleNetDevice input,
Ptr< SimpleNetDevice output,
Ptr< SimpleChannel channel 
)
static

Definition at line 55 of file error-model-test-suite.cc.

References ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::SimpleNetDevice::SetAddress(), ns3::SimpleNetDevice::SetChannel(), and ns3::SimpleNetDevice::SetNode().

Referenced by ErrorModelSimple::DoRun(), and BurstErrorModelSimple::DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SendPacket ( int  num,
Ptr< NetDevice device,
Address addr 
)
static

Definition at line 45 of file error-model-test-suite.cc.

References ns3::NetDevice::Send().

Referenced by ErrorModelSimple::DoRun(), and BurstErrorModelSimple::DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

ErrorModelTestSuite errorModelTestSuite
static

Definition at line 244 of file error-model-test-suite.cc.