A Discrete-Event Network Simulator
API
anonymous_namespace{sample-simulator.cc} Namespace Reference

Classes

class  MyModel
 Simple model object to illustrate event handling. More...
 

Functions

static void CancelledEvent (void)
 Simple function event handler; the corresponding event is cancelled. More...
 
static void ExampleFunction (MyModel *model)
 Simple function event handler which Starts a MyModel object. More...
 
static void RandomFunction (void)
 Simple function event handler; this function is called randomly. More...
 

Function Documentation

static void anonymous_namespace{sample-simulator.cc}::CancelledEvent ( void  )
static

Simple function event handler; the corresponding event is cancelled.

Definition at line 94 of file sample-simulator.cc.

static void anonymous_namespace{sample-simulator.cc}::ExampleFunction ( MyModel model)
static

Simple function event handler which Starts a MyModel object.

Parameters
[in]modelThe MyModel object to start.

Definition at line 75 of file sample-simulator.cc.

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), and anonymous_namespace{sample-simulator.cc}::MyModel::Start().

+ Here is the call graph for this function:

static void anonymous_namespace{sample-simulator.cc}::RandomFunction ( void  )
static

Simple function event handler; this function is called randomly.

Definition at line 86 of file sample-simulator.cc.

References ns3::Time::GetSeconds(), and ns3::Simulator::Now().

+ Here is the call graph for this function: