Class TopologicalLink

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

public class TopologicalLink extends 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 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 (in seconds).
      bandwidth - the link bandwidth (in Megabits/s)
  • 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 (in seconds)
    • getLinkBw

      public double getLinkBw()
      Gets the bandwidth of the link.
      Returns:
      the bandwidth in Megabits/s.