A Discrete-Event Network Simulator
API
interface_statistics.StatisticsCollector Class Reference

StatisticsCollector class. More...

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

Classes

class  NetDevStats
 NetDevStats class. More...
 

Public Member Functions

def __init__ (self, visualizer)
 Collects interface statistics for all nodes. More...
 
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.

Parameters
selfthis object
visualizervisualizer object

Definition at line 25 of file interface_statistics.py.

Member Function Documentation

◆ get_interface_statistics()

def interface_statistics.StatisticsCollector.get_interface_statistics (   self,
  nodeId 
)

◆ 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 34 of file interface_statistics.py.

References interface_statistics.StatisticsCollector.node_statistics.

Member Data Documentation

◆ node_statistics

interface_statistics.StatisticsCollector.node_statistics

◆ visualizer


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