A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyModel Class Reference

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

Public Member Functions

void Start (void)
 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 37 of file sample-simulator.cc.

Member Function Documentation

void MyModel::HandleEvent ( double  eventValue)
private

Simple event handler.

Parameters
[in]eventValueEvent argument.

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

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

Referenced by sample-simulator.MyModel::Start(), and Start().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void MyModel::Start ( void  )

Start model execution by scheduling a HandleEvent.

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

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

Referenced by 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: