ShowInterfaceStatistics class. More...
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 | |
ShowInterfaceStatistics class.
Definition at line 107 of file interface_statistics.py.
interface_statistics.ShowInterfaceStatistics.__init__ | ( | self, | |
visualizer, | |||
node_index, | |||
statistics_collector ) |
Initializer.
self | this object |
visualizer | the visualizer object |
node_index | the node index |
statistics_collector | statistics collector class |
Definition at line 152 of file interface_statistics.py.
|
protected |
Response callback function.
self | this object |
win | the window |
response | the response |
Definition at line 198 of file interface_statistics.py.
References visualizer, interface_statistics.StatisticsCollector.visualizer, visualizer.core.Node.visualizer, and win.
interface_statistics.ShowInterfaceStatistics.update | ( | self | ) |
Update function.
self | this object |
Reimplemented from visualizer.base.InformationWindow.
Definition at line 209 of file interface_statistics.py.
References COLUMN_INTERFACE, COLUMN_RX_BIT_RATE, COLUMN_RX_BYTES, COLUMN_RX_PACKET_RATE, COLUMN_RX_PACKETS, COLUMN_TX_BIT_RATE, COLUMN_TX_BYTES, COLUMN_TX_PACKET_RATE, COLUMN_TX_PACKETS, node_index, visualizer.core.Node.node_index, statistics_collector, and table_model.
|
protected |
_response_cb function
Definition at line 166 of file interface_statistics.py.
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().
interface_statistics.ShowInterfaceStatistics.COLUMN_RX_BIT_RATE |
COLUMN_RX_BIT_RATE constant.
Definition at line 193 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_RX_BYTES |
COLUMN_RX_BYTES constant.
Definition at line 191 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_RX_PACKET_RATE |
COLUMN_RX_PACKET_RATE constant.
Definition at line 192 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_RX_PACKETS |
COLUMN_RX_PACKETS constant.
Definition at line 190 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_TX_BIT_RATE |
COLUMN_TX_BIT_RATE constant.
Definition at line 188 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_TX_BYTES |
COLUMN_TX_BYTES constant.
Definition at line 186 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_TX_PACKET_RATE |
COLUMN_TX_PACKET_RATE constant.
Definition at line 187 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.COLUMN_TX_PACKETS |
COLUMN_TX_PACKETS constant.
Definition at line 185 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.node_index = node_index |
node index
Definition at line 170 of file interface_statistics.py.
Referenced by update(), ipv4_routing_table.ShowIpv4RoutingTable.update(), and olsr.ShowOlsrRoutingTable.update().
interface_statistics.ShowInterfaceStatistics.statistics_collector = statistics_collector |
statistics collector
Definition at line 169 of file interface_statistics.py.
Referenced by update().
interface_statistics.ShowInterfaceStatistics.table_model = Gtk.ListStore(*([str] * 13)) |
table model
Definition at line 173 of file interface_statistics.py.
Referenced by update(), ipv4_routing_table.ShowIpv4RoutingTable.update(), olsr.ShowOlsrRoutingTable.update(), and show_last_packets.ShowLastPackets.PacketList.update().
interface_statistics.ShowInterfaceStatistics.visualizer = visualizer |
visualizer
Definition at line 168 of file interface_statistics.py.
Referenced by _response_cb(), ipv4_routing_table.ShowIpv4RoutingTable._response_cb(), olsr.ShowOlsrRoutingTable._response_cb(), show_last_packets.ShowLastPackets._response_cb(), and show_last_packets.ShowLastPackets.update().
interface_statistics.ShowInterfaceStatistics.viz_node = visualizer.get_node(node_index) |
visualizer node
Definition at line 171 of file interface_statistics.py.
interface_statistics.ShowInterfaceStatistics.win |
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().