A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
show_last_packets.ShowLastPackets Class Reference

ShowLastPackets class. More...

+ Inheritance diagram for show_last_packets.ShowLastPackets:
+ Collaboration diagram for show_last_packets.ShowLastPackets:

Classes

class  PacketList
 

Public Member Functions

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

Public Attributes

 drop_list = self.PacketList()
 packet drop list
 
 node = ns.NodeList.GetNode(node_index)
 the node
 
 op_AND_button = GObject.new(Gtk.RadioButton, label="AND", visible=True)
 AND button.
 
 op_OR_button
 OR button.
 
 packet_capture_options = ns.PyViz.PacketCaptureOptions()
 packet capture options
 
list packet_filter_list = []
 list of TypeIdConfig instances
 
 packet_filter_widget
 packet filter widget
 
 rx_list = self.PacketList()
 packet receive list
 
 tx_list = self.PacketList()
 packet transmit list
 
 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

ShowLastPackets class.

Definition at line 21 of file show_last_packets.py.

Constructor & Destructor Documentation

◆ __init__()

show_last_packets.ShowLastPackets.__init__ ( self,
visualizer,
node_index )

Initializer.

Parameters
selfthis object
visualizerthe visualizer object
node_indexthe node index

Definition at line 124 of file show_last_packets.py.

Member Function Documentation

◆ _response_cb()

◆ update()

show_last_packets.ShowLastPackets.update ( self)

Update function.

Parameters
selfthis object
Returns
none

Reimplemented from visualizer.base.InformationWindow.

Definition at line 310 of file show_last_packets.py.

References drop_list, Ns2MobilityHelperTest::ReferencePoint.node, node, rx_list, tx_list, update(), interface_statistics.ShowInterfaceStatistics.visualizer, interface_statistics.StatisticsCollector.visualizer, ipv4_routing_table.ShowIpv4RoutingTable.visualizer, olsr.ShowOlsrRoutingTable.visualizer, visualizer, and visualizer.core.Node.visualizer.

Referenced by update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _response_cb

show_last_packets.ShowLastPackets._response_cb
protected

_response_cb function

Definition at line 137 of file show_last_packets.py.

◆ drop_list

show_last_packets.ShowLastPackets.drop_list = self.PacketList()

packet drop list

Definition at line 176 of file show_last_packets.py.

Referenced by update().

◆ node

show_last_packets.ShowLastPackets.node = ns.NodeList.GetNode(node_index)

the node

Definition at line 141 of file show_last_packets.py.

Referenced by update().

◆ op_AND_button

show_last_packets.ShowLastPackets.op_AND_button = GObject.new(Gtk.RadioButton, label="AND", visible=True)

AND button.

Definition at line 278 of file show_last_packets.py.

◆ op_OR_button

show_last_packets.ShowLastPackets.op_OR_button
Initial value:
= GObject.new(
Gtk.RadioButton, label="OR", visible=True, group=self.op_AND_button
)

OR button.

Definition at line 279 of file show_last_packets.py.

◆ packet_capture_options

show_last_packets.ShowLastPackets.packet_capture_options = ns.PyViz.PacketCaptureOptions()

packet capture options

Definition at line 187 of file show_last_packets.py.

◆ packet_filter_list

show_last_packets.ShowLastPackets.packet_filter_list = []

list of TypeIdConfig instances

Definition at line 215 of file show_last_packets.py.

◆ packet_filter_widget

show_last_packets.ShowLastPackets.packet_filter_widget
Initial value:
= ObjectList(
[
Column("selected", title="Sel.", data_type=bool, editable=True),
Column("name", title="Header"),
],
sortable=True,
)

packet filter widget

Definition at line 202 of file show_last_packets.py.

◆ rx_list

show_last_packets.ShowLastPackets.rx_list = self.PacketList()

packet receive list

Definition at line 168 of file show_last_packets.py.

Referenced by update().

◆ tx_list

show_last_packets.ShowLastPackets.tx_list = self.PacketList()

packet transmit list

Definition at line 160 of file show_last_packets.py.

Referenced by update().

◆ visualizer

show_last_packets.ShowLastPackets.visualizer = visualizer

visualizer

Definition at line 139 of file show_last_packets.py.

Referenced by _response_cb(), and update().

◆ viz_node

show_last_packets.ShowLastPackets.viz_node = visualizer.get_node(node_index)

visualizer node

Definition at line 140 of file show_last_packets.py.

◆ win

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

window

Definition at line 132 of file show_last_packets.py.

Referenced by _response_cb().


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