A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 

Private Member Functions

void HandleEvent (double eventValue)
 Simple event handler.
 

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().

Referenced by Start().

+ Here is the call graph for this function:
+ Here is the caller 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 HandleEvent(), 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: