TopologicalNode

public class TopologicalNode

Represents an topological network node that retrieves its information from a topological-generated file (eg. topology-generator)

Author:Thomas Hohnstein

Constructors

TopologicalNode

public TopologicalNode()

Creates a network topology node with ID equals to zero.

TopologicalNode

public TopologicalNode(int nodeId)

Creates a network topology node with a specific ID.

Parameters:
  • nodeId – The BRITE id of the node inside the network

TopologicalNode

public TopologicalNode(int nodeId, Point2D worldCoordinates)

Creates a network topology node including world-coordinates.

Parameters:
  • nodeId – The BRITE id of the node inside the network
  • worldCoordinates – the x,y world-coordinates of the Node

TopologicalNode

public TopologicalNode(int nodeId, String nodeName, Point2D worldCoordinates)

Creates a network topology node including world-coordinates and the nodeName.

Parameters:
  • nodeId – 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

Methods

getNodeId

public int getNodeId()

Gets the BRITE id of the node inside the network.

Returns:the nodeId

getNodeName

public String getNodeName()

Gets the name of the node

Returns:name of the node

getWorldCoordinates

public Point2D getWorldCoordinates()

Gets the x,y world coordinates of this network-node.

Returns:the x,y world coordinates

setNodeId

public void setNodeId(int nodeId)

setNodeName

public void setNodeName(String nodeName)

setWorldCoordinates

public void setWorldCoordinates(Point2D worldCoordinates)