A Discrete-Event Network Simulator
API
Classes | Public Member Functions | Public Attributes | List of all members
interface_statistics.StatisticsCollector Class Reference

StatisticsCollector class. More...

+ Inheritance diagram for interface_statistics.StatisticsCollector:

Classes

class  NetDevStats
 NetDevStats class. More...
 

Public Member Functions

def __init__ (self, visualizer)
 
def get_interface_statistics (self, nodeId)
 Get interface statistics function. More...
 
def simulation_periodic_update (self, viz)
 Simulation Periodic Update function. More...
 

Public Attributes

 node_statistics
 node statistics More...
 
 visualizer
 visualizer More...
 

Detailed Description

StatisticsCollector class.

Collects interface statistics for all nodes.

Definition at line 10 of file interface_statistics.py.

Constructor & Destructor Documentation

◆ __init__()

def interface_statistics.StatisticsCollector.__init__ (   self,
  visualizer 
)
Collects interface statistics for all nodes.
@param self this object
@param visualizer visualizer object

Definition at line 26 of file interface_statistics.py.

Member Function Documentation

◆ get_interface_statistics()

def interface_statistics.StatisticsCollector.get_interface_statistics (   self,
  nodeId 
)

Get interface statistics function.

Parameters
selfthis object
nodeIdnode ID
Returns
the statistics

Definition at line 53 of file interface_statistics.py.

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

◆ simulation_periodic_update()

def interface_statistics.StatisticsCollector.simulation_periodic_update (   self,
  viz 
)

Simulation Periodic Update function.

Parameters
selfthis object
vizvisualizer object
Returns
none

Definition at line 35 of file interface_statistics.py.

References interface_statistics.StatisticsCollector.node_statistics.

Member Data Documentation

◆ node_statistics

interface_statistics.StatisticsCollector.node_statistics

◆ visualizer

interface_statistics.StatisticsCollector.visualizer

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