A Discrete-Event Network Simulator
API
Public Member Functions | List of all members
sample-simulator.MyModel Class Reference
+ Inheritance 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().

◆ 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 sample-simulator.MyModel.HandleEvent(), and anonymous_namespace{sample-simulator.cc}::MyModel.HandleEvent().


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