Class DelayMatrix

java.lang.Object
org.cloudbus.cloudsim.network.DelayMatrix

public class DelayMatrix
extends Object
This class represents a delay matrix between every pair or nodes inside a network topology, storing every distance between connected nodes.
Since:
CloudSim Toolkit 1.0
Author:
Thomas Hohnstein
  • Constructor Details

    • 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)
  • Method Details

    • 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()
      Overrides:
      toString in class Object