BriteNetworkTopology¶
-
public final class
BriteNetworkTopology
implements NetworkTopology¶ Implements a network layer by reading the topology from a file in the BRITE format, the Boston university Representative Topology gEnerator, and generates a topological network from it. Information of this network is used to simulate latency in network traffic of CloudSim.
The topology file may contain more nodes than the number of entities in the simulation. It allows users to increase the scale of the simulation without changing the topology file. Nevertheless, each CloudSim entity must be mapped to one (and only one) BRITE node to allow proper work of the network simulation. Each BRITE node can be mapped to only one entity at a time.
Author: Rodrigo N. Calheiros, Anton Beloglazov See also:
.getInstance(String)
Constructors¶
BriteNetworkTopology¶
-
public
BriteNetworkTopology
()¶ Instantiates a Network Topology.
See also:
.BriteNetworkTopology(String)
,.BriteNetworkTopology(InputStreamReader)
,.getInstance(String)
BriteNetworkTopology¶
-
public
BriteNetworkTopology
(String filePath)¶ Instantiates a Network Topology if a given file exists and can be successfully parsed. File is written in the BRITE format and contains topological information on simulation entities.
Parameters: - filePath – the path of the BRITE file
See also:
.BriteNetworkTopology()
,.BriteNetworkTopology(InputStreamReader)
,.getInstance(String)
Methods¶
getBwMatrix¶
-
public double[][]
getBwMatrix
()¶ Gets acopy of the matrix containing the bandwidth between every pair of nodes in the network.
getInstance¶
-
public static BriteNetworkTopology
getInstance
(String fileName)¶ Instantiates a Network Topology from a file inside the application’s resource directory.
Parameters: - fileName – the relative name of the BRITE file
Returns: the BriteNetworkTopology instance.
getTopologycalGraph¶
-
public TopologicalGraph
getTopologycalGraph
()¶