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

Classes

class  Channel
 Channel. More...
 
class  Node
 Node class. More...
 
class  ShowTransmissionsMode
 ShowTransmissionsMode. More...
 
class  SimulationThread
 SimulationThread. More...
 
class  Visualizer
 Visualizer. More...
 
class  WiredLink
 WiredLink. More...
 

Functions

 add_initialization_hook (hook, *args)
 
 set_bounds (x1, y1, x2, y2)
 
 start ()
 

Variables

 _import_error = e
 
bool _run_once = False
 
int BITRATE_FONT_SIZE = 10
 
float DEFAULT_NODE_SIZE = 1.0
 
tuple DEFAULT_TRANSMISSIONS_MEMORY
 
list initialization_hooks = []
 
 ipython_view = None
 
str LAYOUT_ALGORITHM = "neato"
 
int PI_OVER_2 = math.pi / 2
 
int PI_TIMES_2 = math.pi * 2
 
int PRIORITY_UPDATE_MODEL = -100
 
int PRIORITY_UPDATE_VIEW = 200
 
int REPRESENT_CHANNELS_AS_NODES = 1
 
float SAMPLE_PERIOD = 0.1
 
str SHELL_FONT = "Lucida Console 9"
 
 svgitem = None
 

Function Documentation

◆ add_initialization_hook()

visualizer.core.add_initialization_hook ( hook,
* args )
Adds a callback to be called after
the visualizer is initialized, like this::
   initialization_hook(visualizer, *args)

Definition at line 1959 of file core.py.

◆ set_bounds()

visualizer.core.set_bounds ( x1,
y1,
x2,
y2 )

Definition at line 1969 of file core.py.

◆ start()

visualizer.core.start ( )

Definition at line 1984 of file core.py.

Variable Documentation

◆ _import_error

visualizer.core._import_error = e
protected

Definition at line 62 of file core.py.

◆ _run_once

bool visualizer.core._run_once = False
protected

Definition at line 1981 of file core.py.

◆ BITRATE_FONT_SIZE

int visualizer.core.BITRATE_FONT_SIZE = 10

Definition at line 10 of file core.py.

◆ DEFAULT_NODE_SIZE

float visualizer.core.DEFAULT_NODE_SIZE = 1.0

Definition at line 6 of file core.py.

◆ DEFAULT_TRANSMISSIONS_MEMORY

tuple visualizer.core.DEFAULT_TRANSMISSIONS_MEMORY
Initial value:
1= (
2 5 # default number of of past intervals whose transmissions are remembered
3)

Definition at line 7 of file core.py.

◆ initialization_hooks

list visualizer.core.initialization_hooks = []

Definition at line 1956 of file core.py.

◆ ipython_view

visualizer.core.ipython_view = None

Definition at line 69 of file core.py.

◆ LAYOUT_ALGORITHM

str visualizer.core.LAYOUT_ALGORITHM = "neato"

Definition at line 4 of file core.py.

◆ PI_OVER_2

int visualizer.core.PI_OVER_2 = math.pi / 2

Definition at line 86 of file core.py.

◆ PI_TIMES_2

int visualizer.core.PI_TIMES_2 = math.pi * 2

Definition at line 87 of file core.py.

◆ PRIORITY_UPDATE_MODEL

int visualizer.core.PRIORITY_UPDATE_MODEL = -100

Definition at line 14 of file core.py.

◆ PRIORITY_UPDATE_VIEW

int visualizer.core.PRIORITY_UPDATE_VIEW = 200

Definition at line 15 of file core.py.

◆ REPRESENT_CHANNELS_AS_NODES

int visualizer.core.REPRESENT_CHANNELS_AS_NODES = 1

Definition at line 5 of file core.py.

◆ SAMPLE_PERIOD

float visualizer.core.SAMPLE_PERIOD = 0.1

Definition at line 13 of file core.py.

◆ SHELL_FONT

str visualizer.core.SHELL_FONT = "Lucida Console 9"

Definition at line 21 of file core.py.

◆ svgitem

visualizer.core.svgitem = None

Definition at line 51 of file core.py.