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

Classes

class  InformationWindow
 InformationWindow class. More...
 
class  Link
 Link class. More...
 
class  NetDeviceTraits
 NetDeviceTraits class. More...
 
class  PyVizObject
 PyVizObject class. More...
 

Functions

 load_plugins ()
 
 lookup_netdevice_traits (class_type)
 
 register_plugin (plugin_init_func, plugin_name=None, plugin_module=None)
 
 transform_distance_canvas_to_simulation (d)
 
 transform_distance_simulation_to_canvas (d)
 
 transform_point_canvas_to_simulation (x, y)
 
 transform_point_simulation_to_canvas (x, y)
 

Variables

dict netdevice_traits
 
float PIXELS_PER_METER = 3.0
 
dict plugin_modules = {}
 
list plugins = []
 
bool plugins_loaded = False
 

Function Documentation

◆ load_plugins()

visualizer.base.load_plugins ( )

Definition at line 120 of file base.py.

◆ lookup_netdevice_traits()

visualizer.base.lookup_netdevice_traits ( class_type)

Definition at line 69 of file base.py.

◆ register_plugin()

visualizer.base.register_plugin ( plugin_init_func,
plugin_name = None,
plugin_module = None )
Register a plugin.

@param plugin: a callable object that will be invoked whenever a
Visualizer object is created, like this: plugin(visualizer)

Definition at line 104 of file base.py.

◆ transform_distance_canvas_to_simulation()

visualizer.base.transform_distance_canvas_to_simulation ( d)

Definition at line 92 of file base.py.

◆ transform_distance_simulation_to_canvas()

visualizer.base.transform_distance_simulation_to_canvas ( d)

Definition at line 84 of file base.py.

◆ transform_point_canvas_to_simulation()

visualizer.base.transform_point_canvas_to_simulation ( x,
y )

Definition at line 96 of file base.py.

◆ transform_point_simulation_to_canvas()

visualizer.base.transform_point_simulation_to_canvas ( x,
y )

Definition at line 88 of file base.py.

Variable Documentation

◆ netdevice_traits

dict visualizer.base.netdevice_traits
Initial value:
1= {
2 ns.PointToPointNetDevice: NetDeviceTraits(is_wireless=False),
3 ns.CsmaNetDevice: NetDeviceTraits(is_wireless=False),
4 ns.WifiNetDevice: NetDeviceTraits(is_wireless=True),
5 ns.BridgeNetDevice: NetDeviceTraits(is_virtual=True),
6 ns.LoopbackNetDevice: NetDeviceTraits(is_virtual=True, is_wireless=False),
7 ns.MeshPointDevice: NetDeviceTraits(is_virtual=True),
8 ns.SubscriberStationNetDevice: NetDeviceTraits(is_wireless=True),
9 ns.BaseStationNetDevice: NetDeviceTraits(is_wireless=True),
10 ns.LteUeNetDevice: NetDeviceTraits(is_wireless=True),
11 ns.LteEnbNetDevice: NetDeviceTraits(is_wireless=True),
12}

Definition at line 55 of file base.py.

◆ PIXELS_PER_METER

float visualizer.base.PIXELS_PER_METER = 3.0

Definition at line 6 of file base.py.

◆ plugin_modules

dict visualizer.base.plugin_modules = {}

Definition at line 101 of file base.py.

◆ plugins

list visualizer.base.plugins = []

Definition at line 100 of file base.py.

◆ plugins_loaded

bool visualizer.base.plugins_loaded = False

Definition at line 117 of file base.py.