Package ons
Class EONLightPath
java.lang.Object
ons.LightPath
ons.EONLightPath
public class EONLightPath extends LightPath
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EONLightPath(long id, int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation, int slotSize)
EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize)
EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, int[] cores, java.lang.String typeProtection)
EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, java.lang.String typeProtection)
-
Method Summary
Modifier and Type Method Description void
acabalp()
void
addFlowOnLightPath(int bw)
Add a Flow in the Lightpathint
getBw()
int
getBwAvailable()
int[]
getCores()
int
getFirstSlot()
int
getLastSlot()
int
getModulation()
int
getNumCores()
Retrieves the number of cores in this linkint
getSlots()
Returns the number of slots containing the lightpath.boolean
isEmpty()
void
removeFlowOnLightPath(int bw)
Remove a Flow on the Lighpathjava.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
-
EONLightPath
public EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize) -
EONLightPath
public EONLightPath(long id, int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation, int slotSize) -
EONLightPath
public EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, java.lang.String typeProtection) -
EONLightPath
public EONLightPath(long id, int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, int slotSize, int[] cores, java.lang.String typeProtection)
-
-
Method Details
-
getFirstSlot
public int getFirstSlot() -
getLastSlot
public int getLastSlot() -
getCores
public int[] getCores() -
getNumCores
public int getNumCores()Retrieves the number of cores in this link- Returns:
- the number of cores in this link
-
getSlots
public int getSlots()Returns the number of slots containing the lightpath.- Returns:
- the number of slots in this lightpath
-
getModulation
public int getModulation() -
getBwAvailable
public int getBwAvailable() -
isEmpty
public boolean isEmpty() -
getBw
public int getBw() -
addFlowOnLightPath
public void addFlowOnLightPath(int bw)Add a Flow in the Lightpath- Parameters:
bw
- the Mbps value
-
acabalp
public void acabalp() -
removeFlowOnLightPath
public void removeFlowOnLightPath(int bw)Remove a Flow on the Lighpath- Parameters:
bw
- the Mbps value
-
toString
public java.lang.String toString()Description copied from class:LightPath
Prints all information related to a given LightPath, starting with its ID, to make it easier to identify. -
toTrace
public java.lang.String toTrace()
-