A Discrete-Event Network Simulator
API
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

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

Variables

 _import_error = e
 
int BITRATE_FONT_SIZE = 10
 
float DEFAULT_NODE_SIZE = 1.0
 
tuple DEFAULT_TRANSMISSIONS_MEMORY
 
list initialization_hooks = []
 
 ipython_view = None
 
string 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
 
string SHELL_FONT = "Lucida Console 9"
 
 svgitem = None
 

Function Documentation

◆ add_initialization_hook()

def 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 1965 of file core.py.

Referenced by visualizer.core.set_bounds().

+ Here is the caller graph for this function:

◆ set_bounds()

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

Definition at line 1975 of file core.py.

References visualizer.core.add_initialization_hook(), and visualizer.base.transform_point_simulation_to_canvas().

+ Here is the call graph for this function:

◆ start()

def visualizer.core.start ( )

Definition at line 1987 of file core.py.

References visualizer.base.load_plugins().

+ Here is the call graph for this function:

Variable Documentation

◆ _import_error

visualizer.core._import_error = e
private

Definition at line 66 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 1962 of file core.py.

◆ ipython_view

visualizer.core.ipython_view = None

Definition at line 73 of file core.py.

◆ LAYOUT_ALGORITHM

string 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 90 of file core.py.

◆ PI_TIMES_2

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

Definition at line 91 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

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

Definition at line 21 of file core.py.

◆ svgitem

visualizer.core.svgitem = None

Definition at line 55 of file core.py.