Interface NetworkTopology
- All Known Implementing Classes:
BriteNetworkTopology
public interface NetworkTopology
Implements a network layer by reading the topology from a file in a specific format
that is defined by each implementing class.
- Since:
- CloudSim Plus 1.0
- Author:
- Rodrigo N. Calheiros, Anton Beloglazov, Manoel Campos da Silva Filho
-
Field Summary
Fields Modifier and Type Field Description static NetworkTopology
NULL
An attribute that implements the Null Object Design Pattern forNetworkTopology
objects. -
Method Summary
-
Field Details
-
NULL
An attribute that implements the Null Object Design Pattern forNetworkTopology
objects.
-
-
Method Details
-
addLink
Adds a new link in the network topology. The CloudSim entities that represent the source and destination of the link will be mapped to BRITE entities.- Parameters:
src
- CloudSim entity that represents the link's source nodedest
- CloudSim entity that represents the link's destination nodebw
- Link's bandwidthlat
- link's latency
-
removeLink
-
getDelay
Calculates the delay between two nodes.- Parameters:
src
- CloudSim entity that represents the link's source nodedest
- CloudSim entity that represents the link's destination node- Returns:
- communication delay between the two nodes
-