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 (Time eventValue)
 Simple event handler.

Detailed Description

Simple model object to illustrate event handling.

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

Member Function Documentation

◆ HandleEvent()

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

Simple event handler.

Parameters
[in]eventValueEvent argument.

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

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

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 46 of file sample-simulator.cc.

References ns3::Time::As(), HandleEvent(), ns3::Simulator::Now(), ns3::Time::S, 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: