Example program demonstrating use of various Schedule functions. More...
#include <iostream>#include "ns3/simulator.h"#include "ns3/nstime.h"#include "ns3/command-line.h"#include "ns3/double.h"#include "ns3/random-variable-stream.h"
 Include dependency graph for sample-simulator.cc:Go to the source code of this file.
Classes | |
| class | MyModel | 
| Simple model object to illustrate event handling.  More... | |
Functions | |
| static void | CancelledEvent (void) | 
| Simple function event handler; the corresponding event is cancelled.  More... | |
| static void | ExampleFunction (MyModel *model) | 
| Simple function event handler which Starts a MyModel object.  More... | |
| static void | RandomFunction (void) | 
| Simple function event handler; this function is called randomly.  More... | |
Example program demonstrating use of various Schedule functions.
Definition in file sample-simulator.cc.
      
  | 
  static | 
Simple function event handler; the corresponding event is cancelled.
Definition at line 91 of file sample-simulator.cc.
      
  | 
  static | 
Simple function event handler which Starts a MyModel object.
| [in] | model | The MyModel object to start. | 
Definition at line 72 of file sample-simulator.cc.
References ns3::Time::GetSeconds(), ns3::Simulator::Now(), and MyModel::Start().
 Here is the call graph for this function:
      
  | 
  static | 
Simple function event handler; this function is called randomly.
Definition at line 83 of file sample-simulator.cc.
References ns3::Time::GetSeconds(), and ns3::Simulator::Now().
 Here is the call graph for this function: