A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
visualizer.core.SimulationThread Class Reference

SimulationThread. More...

+ Inheritance diagram for visualizer.core.SimulationThread:
+ Collaboration diagram for visualizer.core.SimulationThread:

Public Member Functions

 __init__ (self, viz)
 Initializer function.
 
 run (self)
 Initializer function.
 
 set_nodes_of_interest (self, nodes)
 Set nodes of interest function.
 

Public Attributes

 go = threading.Event()
 thread event
 
 lock = threading.Lock()
 thread lock
 
list pause_messages = []
 pause messages
 
bool quit = False
 quit indicator
 
 sim_helper = ns.PyViz()
 helper function
 
int target_time = 0
 in seconds
 
 viz = viz
 Visualizer object.
 

Detailed Description

SimulationThread.

Definition at line 651 of file core.py.

Constructor & Destructor Documentation

◆ __init__()

visualizer.core.SimulationThread.__init__ ( self,
viz )

Initializer function.

Parameters
selfclass object.
vizclass object.

Definition at line 666 of file core.py.

References __init__().

Referenced by __init__().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ run()

visualizer.core.SimulationThread.run ( self)

Initializer function.

Parameters
selfclass object.
Returns
none

Definition at line 698 of file core.py.

References go, ns3::Simulator.IsFinished(), lock, pause_messages, quit, sim_helper, target_time, and viz.

+ Here is the call graph for this function:

◆ set_nodes_of_interest()

visualizer.core.SimulationThread.set_nodes_of_interest ( self,
nodes )

Set nodes of interest function.

Parameters
selfclass object.
nodesclass object.
Returns

Definition at line 684 of file core.py.

References lock, and sim_helper.

Member Data Documentation

◆ go

visualizer.core.SimulationThread.go = threading.Event()

thread event

Definition at line 677 of file core.py.

Referenced by run().

◆ lock

visualizer.core.SimulationThread.lock = threading.Lock()

thread lock

Definition at line 676 of file core.py.

Referenced by run(), and set_nodes_of_interest().

◆ pause_messages

list visualizer.core.SimulationThread.pause_messages = []

pause messages

Definition at line 682 of file core.py.

Referenced by run().

◆ quit

bool visualizer.core.SimulationThread.quit = False

quit indicator

Definition at line 680 of file core.py.

Referenced by run().

◆ sim_helper

visualizer.core.SimulationThread.sim_helper = ns.PyViz()

helper function

Definition at line 681 of file core.py.

Referenced by run(), and set_nodes_of_interest().

◆ target_time

visualizer.core.SimulationThread.target_time = 0

in seconds

Definition at line 679 of file core.py.

Referenced by run().

◆ viz

visualizer.core.SimulationThread.viz = viz

Visualizer object.

Definition at line 675 of file core.py.

Referenced by run(), and visualizer.hud.Axes.update_view().


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