A Discrete-Event Network Simulator
API
anonymous_namespace{sample-simulator.cc}::MyModel Class Reference

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

Public Member Functions

void Start ()
 Start model execution by scheduling a HandleEvent. More...
 

Private Member Functions

void HandleEvent (double eventValue)
 Simple event handler. More...
 

Detailed Description

Simple model object to illustrate event handling.

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

Member Function Documentation

◆ HandleEvent()

void anonymous_namespace{sample-simulator.cc}::MyModel::HandleEvent ( double  eventValue)
private

Simple event handler.

Parameters
[in]eventValueEvent argument.

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

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

+ Here is the call graph for this function:

◆ Start()

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

Start model execution by scheduling a HandleEvent.

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

References ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().

Referenced by anonymous_namespace{sample-simulator.cc}::ExampleFunction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: