Package ons
Class WDMPhysicalTopology
java.lang.Object
ons.PhysicalTopology
ons.WDMPhysicalTopology
public class WDMPhysicalTopology extends PhysicalTopology
-
Field Summary
Fields Modifier and Type Field Description protected intwavelengthsFields inherited from class ons.PhysicalTopology
adjMatrix, configurationTimeOXC, datacenters, links, linkVector, mensageProcessingTime, nodes, nodeVector, olaExpenditure, oxcAddDropDegreeExpenditure, oxcNodeDegreeExpenditure, oxcOperationExpenditure, oxcSleepModeExpenditure, oxcTransitionTime, propagationDelayTime, spanSize, switchTime, trIdleExpenditure, trOverloadExpenditure -
Constructor Summary
Constructors Constructor Description WDMPhysicalTopology(org.w3c.dom.Element xml) -
Method Summary
Modifier and Type Method Description voidaddRate(int rate, LightPath lightpath)booleancanAddRate(int rate, LightPath lightpath)booleancanCreatePhysicalLightpath(LightPath lightpath)voidcreatePhysicalLightpath(LightPath lightpath)intgetBW(LightPath lightpath)intgetBWAvailable(LightPath lightpath)intgetNumWavelengths()Retrieves the number of wavelengths in a given PhysicalTopology.WeightedGraphgetWeightedGraph(int wvl, int bw)Returns a weighted graph with vertices representing the physical network nodes, and the edges representing the physical links.voidremovePhysicalLightpath(LightPath lightpath)voidremoveRate(int rate, LightPath lightpath)intusedConverters(WDMLightPath lightpath)Retrieves the number of wavelength converters a given LightPath object uses.Methods inherited from class ons.PhysicalTopology
checkLinkPath, getAdjMatrix, getAllFreeGroomingInputPorts, getDatacenterGroup, getDatacentersGroup, getLink, getLink, getNode, getNumLinks, getNumNodes, getSpanSize, getTopologyName, getTransponderGraph, getWeightedGraph, hasLink, printXpressInputFile, toString
-
Field Details
-
wavelengths
protected int wavelengths
-
-
Constructor Details
-
WDMPhysicalTopology
public WDMPhysicalTopology(org.w3c.dom.Element xml)
-
-
Method Details
-
getNumWavelengths
public int getNumWavelengths()Retrieves the number of wavelengths in a given PhysicalTopology.- Returns:
- the value of the PhysicalTopology's wavelengths attribute
-
createPhysicalLightpath
- Specified by:
createPhysicalLightpathin classPhysicalTopology
-
removePhysicalLightpath
- Specified by:
removePhysicalLightpathin classPhysicalTopology
-
canCreatePhysicalLightpath
- Specified by:
canCreatePhysicalLightpathin classPhysicalTopology
-
getBWAvailable
- Specified by:
getBWAvailablein classPhysicalTopology
-
addRate
- Specified by:
addRatein classPhysicalTopology
-
getBW
- Specified by:
getBWin classPhysicalTopology
-
usedConverters
Retrieves the number of wavelength converters a given LightPath object uses.- Parameters:
lightpath- the LightPath object- Returns:
- the number of converters the lightpath uses
-
getWeightedGraph
Returns a weighted graph with vertices representing the physical network nodes, and the edges representing the physical links. The weight of each edge receives the same value of the original link weight if the wavelength wvl in that link has at least bw Mbps of bandwidth available. Otherwise it has no edges.- Parameters:
wvl- the wavelength idbw- the amount of bandwidth to be established- Returns:
- an WeightedGraph class object
-
canAddRate
- Specified by:
canAddRatein classPhysicalTopology
-
removeRate
- Specified by:
removeRatein classPhysicalTopology
-