Class TopologicalNode

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

public class TopologicalNode extends Object
Represents a topological network node that retrieves its information from a topological-generated file (e.g. topology-generator)
Since:
CloudSim Toolkit 1.0
Author:
Thomas Hohnstein
  • Constructor Details

    • TopologicalNode

      public TopologicalNode()
      Creates a network topology node with ID equals to zero.
    • TopologicalNode

      public TopologicalNode(int id)
      Creates a network topology node with a specific ID.
      Parameters:
      id - The BRITE id of the node inside the network
    • TopologicalNode

      public TopologicalNode(int id, Point2D worldCoordinates)
      Creates a network topology node including world-coordinates.
      Parameters:
      id - The BRITE id of the node inside the network
      worldCoordinates - the x,y world-coordinates of the Node
    • TopologicalNode

      public TopologicalNode(int id, String nodeName, Point2D worldCoordinates)
      Creates a network topology node including world-coordinates and the nodeName.
      Parameters:
      id - The BRITE id of the node inside the network
      nodeName - The name of the node inside the network
      worldCoordinates - the x,y world-coordinates of the Node
  • Method Details

    • getId

      public int getId()
      Gets the BRITE id of the node inside the network.
      Returns:
      the nodeId
    • setId

      public void setId(int id)
    • getNodeName

      public String getNodeName()
      Gets the name of the node
      Returns:
      name of the node
    • setNodeName

      public void setNodeName(String nodeName)
    • getWorldCoordinates

      public Point2D getWorldCoordinates()
      Gets the x,y world coordinates of this network-node.
      Returns:
      the x,y world coordinates
    • setWorldCoordinates

      public void setWorldCoordinates(Point2D worldCoordinates)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object