Class DelayMatrix

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

public class DelayMatrix
extends java.lang.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 Summary

    Constructors 
    Constructor Description
    DelayMatrix()  
    DelayMatrix​(TopologicalGraph graph, boolean directed)
    Creates an correctly initialized double-Delay-Matrix.
  • Method Summary

    Modifier and Type Method Description
    double getDelay​(int srcID, int destID)
    Gets the delay between two nodes.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object