A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
interface_statistics.ShowInterfaceStatistics Class Reference

ShowInterfaceStatistics class. More...

+ Inheritance diagram for interface_statistics.ShowInterfaceStatistics:
+ Collaboration diagram for interface_statistics.ShowInterfaceStatistics:

Public Member Functions

 __init__ (self, visualizer, node_index, statistics_collector)
 Initializer.
 
 update (self)
 Update function.
 

Public Attributes

 COLUMN_INTERFACE = Gtk.TreeViewColumn(descr, Gtk.CellRendererText(), text=colid)
 COLUMN_INTERFACE constant.
 
 COLUMN_RX_BIT_RATE
 COLUMN_RX_BIT_RATE constant.
 
 COLUMN_RX_BYTES
 COLUMN_RX_BYTES constant.
 
 COLUMN_RX_PACKET_RATE
 COLUMN_RX_PACKET_RATE constant.
 
 COLUMN_RX_PACKETS
 COLUMN_RX_PACKETS constant.
 
 COLUMN_TX_BIT_RATE
 COLUMN_TX_BIT_RATE constant.
 
 COLUMN_TX_BYTES
 COLUMN_TX_BYTES constant.
 
 COLUMN_TX_PACKET_RATE
 COLUMN_TX_PACKET_RATE constant.
 
 COLUMN_TX_PACKETS
 COLUMN_TX_PACKETS constant.
 
 node_index = node_index
 node index
 
 statistics_collector = statistics_collector
 statistics collector
 
 table_model = Gtk.ListStore(*([str] * 13))
 table model
 
 visualizer = visualizer
 visualizer
 
 viz_node = visualizer.get_node(node_index)
 visualizer node
 
 win
 window
 

Protected Member Functions

 _response_cb (self, win, response)
 Response callback function.
 

Protected Attributes

 _response_cb
 _response_cb function
 

Detailed Description

ShowInterfaceStatistics class.

Definition at line 107 of file interface_statistics.py.

Constructor & Destructor Documentation

◆ __init__()

interface_statistics.ShowInterfaceStatistics.__init__ ( self,
visualizer,
node_index,
statistics_collector )

Initializer.

Parameters
selfthis object
visualizerthe visualizer object
node_indexthe node index
statistics_collectorstatistics collector class

Definition at line 152 of file interface_statistics.py.

Member Function Documentation

◆ _response_cb()

interface_statistics.ShowInterfaceStatistics._response_cb ( self,
win,
response )
protected

Response callback function.

Parameters
selfthis object
winthe window
responsethe response
Returns
none

Definition at line 198 of file interface_statistics.py.

References visualizer, interface_statistics.StatisticsCollector.visualizer, visualizer.core.Node.visualizer, and win.

◆ update()

interface_statistics.ShowInterfaceStatistics.update ( self)

Member Data Documentation

◆ _response_cb

interface_statistics.ShowInterfaceStatistics._response_cb
protected

_response_cb function

Definition at line 166 of file interface_statistics.py.

◆ COLUMN_INTERFACE

interface_statistics.ShowInterfaceStatistics.COLUMN_INTERFACE = Gtk.TreeViewColumn(descr, Gtk.CellRendererText(), text=colid)

COLUMN_INTERFACE constant.

Definition at line 183 of file interface_statistics.py.

Referenced by update(), and show_last_packets.ShowLastPackets.PacketList.update().

◆ COLUMN_RX_BIT_RATE

interface_statistics.ShowInterfaceStatistics.COLUMN_RX_BIT_RATE

COLUMN_RX_BIT_RATE constant.

Definition at line 193 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_RX_BYTES

interface_statistics.ShowInterfaceStatistics.COLUMN_RX_BYTES

COLUMN_RX_BYTES constant.

Definition at line 191 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_RX_PACKET_RATE

interface_statistics.ShowInterfaceStatistics.COLUMN_RX_PACKET_RATE

COLUMN_RX_PACKET_RATE constant.

Definition at line 192 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_RX_PACKETS

interface_statistics.ShowInterfaceStatistics.COLUMN_RX_PACKETS

COLUMN_RX_PACKETS constant.

Definition at line 190 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_TX_BIT_RATE

interface_statistics.ShowInterfaceStatistics.COLUMN_TX_BIT_RATE

COLUMN_TX_BIT_RATE constant.

Definition at line 188 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_TX_BYTES

interface_statistics.ShowInterfaceStatistics.COLUMN_TX_BYTES

COLUMN_TX_BYTES constant.

Definition at line 186 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_TX_PACKET_RATE

interface_statistics.ShowInterfaceStatistics.COLUMN_TX_PACKET_RATE

COLUMN_TX_PACKET_RATE constant.

Definition at line 187 of file interface_statistics.py.

Referenced by update().

◆ COLUMN_TX_PACKETS

interface_statistics.ShowInterfaceStatistics.COLUMN_TX_PACKETS

COLUMN_TX_PACKETS constant.

Definition at line 185 of file interface_statistics.py.

Referenced by update().

◆ node_index

interface_statistics.ShowInterfaceStatistics.node_index = node_index

◆ statistics_collector

interface_statistics.ShowInterfaceStatistics.statistics_collector = statistics_collector

statistics collector

Definition at line 169 of file interface_statistics.py.

Referenced by update().

◆ table_model

interface_statistics.ShowInterfaceStatistics.table_model = Gtk.ListStore(*([str] * 13))

◆ visualizer

◆ viz_node

interface_statistics.ShowInterfaceStatistics.viz_node = visualizer.get_node(node_index)

visualizer node

Definition at line 171 of file interface_statistics.py.

◆ win

interface_statistics.ShowInterfaceStatistics.win
Initial value:
= Gtk.Dialog(
parent=visualizer.window,
flags=Gtk.DialogFlags.DESTROY_WITH_PARENT,
buttons=("_Close", Gtk.ResponseType.CLOSE),
)

window

Definition at line 161 of file interface_statistics.py.

Referenced by _response_cb(), ipv4_routing_table.ShowIpv4RoutingTable._response_cb(), olsr.ShowOlsrRoutingTable._response_cb(), and show_last_packets.ShowLastPackets._response_cb().


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