A Discrete-Event Network Simulator
API
Classes | Namespaces | Functions
sample-simulator.cc File Reference

Example program demonstrating use of various Schedule functions. More...

#include <iostream>
#include "ns3/simulator.h"
#include "ns3/nstime.h"
#include "ns3/command-line.h"
#include "ns3/double.h"
#include "ns3/random-variable-stream.h"

Go to the source code of this file.

Classes

class  anonymous_namespace{sample-simulator.cc}::MyModel
 Simple model object to illustrate event handling. More...
 

Namespaces

 anonymous_namespace{sample-simulator.cc}
 

Functions

static void anonymous_namespace{sample-simulator.cc}::CancelledEvent (void)
 Simple function event handler; the corresponding event is cancelled. More...
 
static void anonymous_namespace{sample-simulator.cc}::ExampleFunction (MyModel *model)
 Simple function event handler which Starts a MyModel object. More...
 
static void anonymous_namespace{sample-simulator.cc}::RandomFunction (void)
 Simple function event handler; this function is called randomly. More...
 

Detailed Description

Example program demonstrating use of various Schedule functions.

Definition in file sample-simulator.cc.