A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
visualizer.base Namespace Reference


class  InformationWindow
class  Link
class  NetDeviceTraits
class  PyVizObject


def load_plugins
def lookup_netdevice_traits
def register_plugin
def transform_distance_canvas_to_simulation
def transform_distance_simulation_to_canvas
def transform_point_canvas_to_simulation
def transform_point_simulation_to_canvas


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

Function Documentation

def visualizer.base.load_plugins ( )

Definition at line 93 of file base.py.

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

Referenced by visualizer.core.start().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def visualizer.base.lookup_netdevice_traits (   class_type)

Definition at line 50 of file base.py.

Referenced by visualizer.core.Visualizer.scan_topology().

+ Here is the caller graph for this function:

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

Referenced by visualizer.base.load_plugins().

+ Here is the caller graph for this function:

def visualizer.base.transform_distance_canvas_to_simulation (   d)

Definition at line 68 of file base.py.

Referenced by visualizer.core.Visualizer.node_drag_motion(), and wifi_intrastructure_link.WifiLink.tooltip_query().

+ Here is the caller graph for this function:

def visualizer.base.transform_distance_simulation_to_canvas (   d)

Definition at line 62 of file base.py.

Referenced by visualizer.core.Node._update_appearance(), and visualizer.core.Node.set_svg_icon().

+ Here is the caller graph for this function:

def visualizer.base.transform_point_canvas_to_simulation (   x,

Definition at line 71 of file base.py.

def visualizer.base.transform_point_simulation_to_canvas (   x,

Variable Documentation

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

float visualizer.base.PIXELS_PER_METER = 3.0

Definition at line 15 of file base.py.

dictionary visualizer.base.plugin_modules = {}

Definition at line 78 of file base.py.

list visualizer.base.plugins = []
visualizer.base.plugins_loaded = False

Definition at line 92 of file base.py.