Class TopologicalNode
java.lang.Object
org.cloudbus.cloudsim.network.topologies.TopologicalNode
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 Summary
ConstructorDescriptionCreates 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 TypeMethodDescriptionboolean
int
getId()
Gets the BRITE id of the node inside the network.Gets the name of the nodeGets 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()
-