A Discrete-Event Network Simulator
API
visualizer.core.Channel Class Reference

Channel. More...

+ Inheritance diagram for visualizer.core.Channel:
+ Collaboration diagram for visualizer.core.Channel:

Public Member Functions

def __init__ (self, channel)
 Initializer function. More...
 
def get_position (self)
 Initializer function. More...
 
def set_position (self, x, y)
 Initializer function. More...
 
- Public Member Functions inherited from visualizer.base.PyVizObject
def tooltip_query (self, tooltip)
 Returns tooltip text string. More...
 

Public Attributes

 canvas_item
 canvas More...
 
 channel
 channel More...
 
 links
 list of links More...
 

Detailed Description

Channel.

Definition at line 562 of file core.py.

Constructor & Destructor Documentation

◆ __init__()

def visualizer.core.Channel.__init__ (   self,
  channel 
)

Initializer function.

Parameters
selfclass object.
channelchannel.

Definition at line 570 of file core.py.

Member Function Documentation

◆ get_position()

def visualizer.core.Channel.get_position (   self)

Initializer function.

Parameters
selfclass object.
Returns
x / y position.

Definition at line 605 of file core.py.

References visualizer.core.Node.canvas_item, visualizer.core.Channel.canvas_item, visualizer.core.WiredLink.canvas_item, and wifi_intrastructure_link.WifiLink.canvas_item.

Referenced by visualizer.core.Node._update_position().

+ Here is the caller graph for this function:

◆ set_position()

def visualizer.core.Channel.set_position (   self,
  x,
  y 
)

Initializer function.

Parameters
selfclass object.
xx position.
yy position.
Returns

Definition at line 590 of file core.py.

References visualizer.core.Node.canvas_item, visualizer.core.Channel.canvas_item, visualizer.core.WiredLink.canvas_item, wifi_intrastructure_link.WifiLink.canvas_item, visualizer.core.Node.links, and visualizer.core.Channel.links.

Referenced by visualizer.core.Node._update_position().

+ Here is the caller graph for this function:

Member Data Documentation

◆ canvas_item

◆ channel

visualizer.core.Channel.channel

channel

Definition at line 577 of file core.py.

◆ links

visualizer.core.Channel.links

The documentation for this class was generated from the following file: