Class TopologicalNode
java.lang.Object
org.cloudbus.cloudsim.network.topologies.TopologicalNode
public class TopologicalNode extends Object
Represents an topological network node that retrieves its information from a
topological-generated file (eg. topology-generator)
- Since:
- CloudSim Toolkit 1.0
- Author:
- Thomas Hohnstein
-
Constructor Summary
Constructors Constructor Description TopologicalNode()
Creates a network topology node with ID equals to zero.TopologicalNode(int id)
Creates a network topology node with a specific ID.TopologicalNode(int id, String nodeName, Point2D worldCoordinates)
Creates a network topology node including world-coordinates and the nodeName.TopologicalNode(int id, Point2D worldCoordinates)
Creates a network topology node including world-coordinates. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getId()
Gets the BRITE id of the node inside the network.String
getNodeName()
Gets the name of the nodePoint2D
getWorldCoordinates()
Gets the x,y world coordinates of this network-node.int
hashCode()
void
setId(int id)
void
setNodeName(String nodeName)
void
setWorldCoordinates(Point2D worldCoordinates)
-
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
Creates a network topology node including world-coordinates.- Parameters:
id
- The BRITE id of the node inside the networkworldCoordinates
- the x,y world-coordinates of the Node
-
TopologicalNode
Creates a network topology node including world-coordinates and the nodeName.- Parameters:
id
- The BRITE id of the node inside the networknodeName
- The name of the node inside the networkworldCoordinates
- 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
Gets the name of the node- Returns:
- name of the node
-
setNodeName
-
getWorldCoordinates
Gets the x,y world coordinates of this network-node.- Returns:
- the x,y world coordinates
-
setWorldCoordinates
-
equals
-
hashCode
public int hashCode()
-