Package ons
Class WDMLightPath
java.lang.Object
ons.LightPath
ons.WDMLightPath
public class WDMLightPath extends LightPath
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WDMLightPath(long id, int src, int dst, int[] links, int[] wavelengths)
Creates a new LightPath object.WDMLightPath(long id, int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)
Creates a new LightPath object. -
Method Summary
Modifier and Type Method Description int[]
getWavelengths()
Retrieves the LightPath's vector containing the wavelengths that the fiber links in the path use.java.lang.String
toString()
Prints all information related to a given LightPath, starting with its ID, to make it easier to identify.java.lang.String
toTrace()
Methods inherited from class ons.LightPath
addBatch, addBulk, addFlow, addLpBackup, getBatchs, getBulks, getDestination, getFlows, getHops, getID, getLinks, getLpBackup, getRx, getSnr, getSource, getTx, getTypeProtection, getTypeProtection, getTypeProtection, isBackup, isBackupShared, isReserved, removeBatch, removeBulk, removeFlow, setBackup, setId, setReserved, setRx, setSnr, setTx, setTypeProtection
-
Constructor Details
-
WDMLightPath
public WDMLightPath(long id, int src, int dst, int[] links, int[] wavelengths)Creates a new LightPath object.- Parameters:
id
- unique identifiersrc
- source nodedst
- destination nodelinks
- fyberlinks list composing the pathwavelengths
- wavelengths list used in fiberlinks
-
WDMLightPath
public WDMLightPath(long id, int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)Creates a new LightPath object.- Parameters:
id
- unique identifiersrc
- source nodedst
- destination nodelinks
- fyberlinks list composing the pathwavelengths
- wavelengths list used in fiberlinks
-
-
Method Details
-
getWavelengths
public int[] getWavelengths()Retrieves the LightPath's vector containing the wavelengths that the fiber links in the path use.- Returns:
- a vector of integer that represent wavelengths
-
toString
public java.lang.String toString()Prints all information related to a given LightPath, starting with its ID, to make it easier to identify. -
toTrace
public java.lang.String toTrace()
-