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

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

Variables

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

Function Documentation

◆ load_plugins()

def visualizer.base.load_plugins ( )

Definition at line 115 of file base.py.

References list, and visualizer.base.register_plugin().

Referenced by visualizer.core.start().

◆ lookup_netdevice_traits()

def visualizer.base.lookup_netdevice_traits (   class_type)

Definition at line 72 of file base.py.

◆ register_plugin()

def 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 102 of file base.py.

Referenced by visualizer.base.load_plugins().

◆ transform_distance_canvas_to_simulation()

def visualizer.base.transform_distance_canvas_to_simulation (   d)

Definition at line 90 of file base.py.

Referenced by wifi_intrastructure_link.WifiLink.tooltip_query().

◆ transform_distance_simulation_to_canvas()

def visualizer.base.transform_distance_simulation_to_canvas (   d)

◆ transform_point_canvas_to_simulation()

def visualizer.base.transform_point_canvas_to_simulation (   x,
  y 
)

Definition at line 93 of file base.py.

◆ transform_point_simulation_to_canvas()

def visualizer.base.transform_point_simulation_to_canvas (   x,
  y 
)

Definition at line 87 of file base.py.

Referenced by visualizer.core.set_bounds().

Variable Documentation

◆ netdevice_traits

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

Definition at line 59 of file base.py.

◆ PIXELS_PER_METER

float visualizer.base.PIXELS_PER_METER = 3.0

Definition at line 15 of file base.py.

◆ plugin_modules

dictionary visualizer.base.plugin_modules = {}

Definition at line 100 of file base.py.

◆ plugins

list visualizer.base.plugins = []

◆ plugins_loaded

bool visualizer.base.plugins_loaded = False

Definition at line 114 of file base.py.