Class DelayMatrix

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

public class DelayMatrix extends Object
Represents matrix containing the delay (in seconds) between every pair or nodes inside a network topology. It stores every distance between connected nodes.
Since:
CloudSim Toolkit 1.0
Author:
Thomas Hohnstein
  • Constructor Details

    • DelayMatrix

      public DelayMatrix()
      Creates an empty matrix with no columns or rows.
    • DelayMatrix

      public DelayMatrix(TopologicalGraph graph, boolean directed)
      Creates a Delay Matrix for a given network topology graph.
      Parameters:
      graph - the network topological graph
      directed - indicates if a 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