Package org.cloudbus.cloudsim.network
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
-
Constructor Details
-
DelayMatrix
public DelayMatrix() -
DelayMatrix
Creates an correctly initialized double-Delay-Matrix.- Parameters:
graph
- the network topological graphdirected
- 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 nodedestID
- the id of the destination node- Returns:
- the delay between the given two nodes
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-