parameters: (self)
docstring: !
          Update function.
          @param self this object
          @return none
docstring_summary: !
          Update function.
docstring_tokens: ! Update function .
function: def update(self):
          """!
          Update function.
          @param self this object
          @return none
          """
          node = ns.network.NodeList.GetNode(self.node_index)
          stats_list = self.statistics_collector.get_interface_statistics(self.node_index)
          self.table_model.clear()
          for iface, stats in enumerate(stats_list):
              tree_iter = self.table_model.append()
              netdevice = node.GetDevice(iface)
              interface_name = ns.core.Names.FindName(netdevice)
              if not interface_name:
                  interface_name = "(interface %i)" % iface
              self.table_model.set(tree_iter,
                                   self.COLUMN_INTERFACE, interface_name,
  
                                   self.COLUMN_TX_PACKETS, str(stats.txPackets),
                                   self.COLUMN_TX_BYTES, str(stats.txBytes),
                                   self.COLUMN_TX_PACKET_RATE, str(stats.txPacketRate),
                                   self.COLUMN_TX_BIT_RATE, str(stats.txBitRate),
  
                                   self.COLUMN_RX_PACKETS, str(stats.rxPackets),
                                   self.COLUMN_RX_BYTES, str(stats.rxBytes),
                                   self.COLUMN_RX_PACKET_RATE, str(stats.rxPacketRate),
                                   self.COLUMN_RX_BIT_RATE, str(stats.rxBitRate)
                                   )
function_tokens: def update ( self ) : node = ns . network . NodeList . GetNode ( self . node_index ) stats_list = self . statistics_collector . get_interface_statistics ( self . node_index ) self . table_model . clear ( ) for iface , stats in enumerate ( stats_list ) : tree_iter = self . table_model . append ( ) netdevice = node . GetDevice ( iface ) interface_name = ns . core . Names . FindName ( netdevice ) if not interface_name : interface_name = "(interface %i)" % iface self . table_model . set ( tree_iter , self . COLUMN_INTERFACE , interface_name , self . COLUMN_TX_PACKETS , str ( stats . txPackets ) , self . COLUMN_TX_BYTES , str ( stats . txBytes ) , self . COLUMN_TX_PACKET_RATE , str ( stats . txPacketRate ) , self . COLUMN_TX_BIT_RATE , str ( stats . txBitRate ) , self . COLUMN_RX_PACKETS , str ( stats . rxPackets ) , self . COLUMN_RX_BYTES , str ( stats . rxBytes ) , self . COLUMN_RX_PACKET_RATE , str ( stats . rxPacketRate ) , self . COLUMN_RX_BIT_RATE , str ( stats . rxBitRate ) )