A Discrete-Event Network Simulator
API
sample-simulator.MyModel Class Reference
+ Inheritance diagram for sample-simulator.MyModel:
+ Collaboration diagram for sample-simulator.MyModel:

Public Member Functions

def HandleEvent (self, value)
 
def Start (self)
 

Detailed Description

Simple model object to illustrate event handling.

Definition at line 31 of file sample-simulator.py.

Member Function Documentation

◆ HandleEvent()

def sample-simulator.MyModel.HandleEvent (   self,
  value 
)
Parameters
[in]selfThis instance of MyModel
[in]valueEvent argument.
Returns
None.
Simple event handler.

Definition at line 42 of file sample-simulator.py.

Referenced by sample-simulator.MyModel.Start().

+ Here is the caller graph for this function:

◆ Start()

def sample-simulator.MyModel.Start (   self)
Returns
None.
Start model execution by scheduling a HandleEvent.

Definition at line 35 of file sample-simulator.py.

References anonymous_namespace{sample-simulator.cc}::MyModel.HandleEvent(), and sample-simulator.MyModel.HandleEvent().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: