Class TopologicalLink

java.lang.Object
org.cloudbus.cloudsim.network.topologies.TopologicalLink

public class TopologicalLink
extends java.lang.Object
Represents a link (edge) of a network graph where the network topology was defined from a file in BRITE format.
Since:
CloudSim Toolkit 1.0
Author:
Thomas Hohnstein
  • Constructor Summary

    Constructors 
    Constructor Description
    TopologicalLink​(int srcNode, int destNode, double delay, double bandwidth)
    Creates a new Topological Link.
  • Method Summary

    Modifier and Type Method Description
    int getDestNodeID()
    Gets the BRITE id of the destination node of the link.
    double getLinkBw()
    Gets the bandwidth of the link.
    double getLinkDelay()
    Gets the delay of the link.
    int getSrcNodeID()
    Gets the BRITE id of the source node of the link.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TopologicalLink

      public TopologicalLink​(int srcNode, int destNode, double delay, double bandwidth)
      Creates a new Topological Link.
      Parameters:
      srcNode - the BRITE id of the source node of the link.
      destNode - the BRITE id of the destination node of the link.
      delay - the link delay of the connection.
      bandwidth - the link bandwidth (bw)
  • Method Details

    • getSrcNodeID

      public int getSrcNodeID()
      Gets the BRITE id of the source node of the link.
      Returns:
      nodeID
    • getDestNodeID

      public int getDestNodeID()
      Gets the BRITE id of the destination node of the link.
      Returns:
      nodeID
    • getLinkDelay

      public double getLinkDelay()
      Gets the delay of the link.
      Returns:
      the link delay
    • getLinkBw

      public double getLinkBw()
      Gets the bandwidth of the link.
      Returns:
      the bw