DelayMatrix

public class DelayMatrix

This class represents a delay matrix between every pair or nodes inside a network topology, storing every distance between connected nodes.

Author:Thomas Hohnstein

Constructors

DelayMatrix

public DelayMatrix()

DelayMatrix

public DelayMatrix(TopologicalGraph graph, boolean directed)

Creates an correctly initialized double-Delay-Matrix.

Parameters:
  • graph – the network topological graph
  • directed – indicates if an directed matrix should be computed (true) or not (false)

Methods

getDelay

public double getDelay(int srcID, int destID)

Gets the delay between two nodes.

Parameters:
  • srcID – the id of the source node
  • destID – the id of the destination node
Returns:

the delay between the given two nodes

toString

public String toString()