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. | |
Simple model object to illustrate event handling.
Definition at line 30 of file sample-simulator.cc.
|
private |
Simple event handler.
[in] | eventValue | Event argument. |
Definition at line 52 of file sample-simulator.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
Referenced by 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 HandleEvent(), ns3::Simulator::Now(), ns3::Simulator::Schedule(), and ns3::Seconds().
Referenced by anonymous_namespace{sample-simulator.cc}::ExampleFunction().