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

Classes

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

Functions

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

Function Documentation

◆ CancelledEvent()

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

Simple function event handler; the corresponding event is cancelled.

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

◆ ExampleFunction()

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

Simple function event handler which Starts a MyModel object.

Parameters
[in]modelThe MyModel object to start.

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

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

Here is the call graph for this function:

◆ RandomFunction()

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

Simple function event handler; this function is called randomly.

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

References ns3::Time::As(), ns3::Simulator::Now(), and ns3::Time::S.

Here is the call graph for this function: