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... | |
Simple model object to illustrate event handling.
Definition at line 41 of file sample-simulator.cc.
|
private |
Simple event handler.
[in] | eventValue | Event argument. |
Definition at line 63 of file sample-simulator.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
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().