Class 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 Detail

      • 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 Detail

      • 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