public class WLightpathUnregenerated extends WAbstractNetworkElement
Modifier and Type | Method and Description |
---|---|
void |
addBackupLightpath(WLightpathUnregenerated backup)
Adds a backup lightpath to this lightpath
|
WNode |
getA()
The origin node of the lighptath, that must the origin node of the associated lightpath request
|
WNode |
getB()
The destination node of the lighptath, that must the destination node of the associated lightpath request
|
double |
getLengthInKm()
Returns the length in km of this lighptath, as the sum of the lengths of the traversed fibers
|
WLightpathRequest |
getLightpathRequest()
Returns the associated lightpath request
|
String |
getModulationId()
Returns the user-defined identifier of the modulation associated to the transponder realizing this lightpath
|
Route |
getNe()
Returns the underlying Net2Plan object.
|
double |
getNumberOccupiedSlotIds()
Returns the number of optical slots occupied by the lightpath
|
SortedSet<Integer> |
getOpticalSlotIds()
Returns the set of optical slots occupied in all the traversed fibers of this lightpath
|
double |
getPropagationDelayInMs()
Returns the propagation delay in ms of this lighptath, as the sum of the propagation delays of the traversed fibers
|
List<WFiber> |
getSeqFibers()
Returns the sequence of fibers traversed by this lp
|
boolean |
isBackupLightpath()
Indicates if this is a backup lightpath, of a main path in the same lightpath request
|
boolean |
isMainLightpathWithBackupRoutes()
Indicates if this is a main lightpath that has a backup lightpath in the same lightpath request
|
boolean |
isUp()
Indicates if this lightpath is up (does not traverse any failed fiber/node)
|
void |
remove()
Removes this lightpath
|
void |
removeBackupLightpath(WLightpathUnregenerated backup)
Removes a backup lightpath
|
void |
setAsBackupLightpath(WLightpathUnregenerated mainLp)
Sets this lightpath as a backup lightpath of other lightpath in this request
|
void |
setModulationId(String modulationId)
Sets the user-defined identifier of the modulation associated to the transponder realizing this lightpath
|
void |
setOpticalSlotIds(SortedSet<Integer> slotsIds)
Changes the set of optical slots occupied in all the traversed fibers of this lightpath
|
void |
setSeqFibers(List<WFiber> newSeqFibers)
Changes the sequence of fibers traversed by this lightpath
|
String |
toString() |
compareTo, equals, getAsFiber, getAsIpLayer, getAsIpLink, getAsLightpathRequest, getAsLightpathUnregenerated, getAsNode, getAsServiceChain, getAsServiceChainRequest, getAsVnfInstance, getAsWdmLayer, getId, getNet, getNetPlan, isFiber, isLayerIp, isLayerWdm, isLightpathRequest, isLightpathUnregenerated, isNode, isServiceChain, isServiceChainRequest, isVnfInstance, isWIpLink, wasRemoved
public void addBackupLightpath(WLightpathUnregenerated backup)
backup
- see abovepublic WNode getA()
public WNode getB()
public double getLengthInKm()
public WLightpathRequest getLightpathRequest()
public String getModulationId()
public Route getNe()
WAbstractNetworkElement
getNe
in class WAbstractNetworkElement
public double getNumberOccupiedSlotIds()
public SortedSet<Integer> getOpticalSlotIds()
public double getPropagationDelayInMs()
public List<WFiber> getSeqFibers()
public boolean isBackupLightpath()
public boolean isMainLightpathWithBackupRoutes()
public boolean isUp()
public void remove()
public void removeBackupLightpath(WLightpathUnregenerated backup)
backup
- see abovepublic void setAsBackupLightpath(WLightpathUnregenerated mainLp)
mainLp
- see abovepublic void setModulationId(String modulationId)
modulationId
- see abovepublic void setOpticalSlotIds(SortedSet<Integer> slotsIds)
slotsIds
- see abovepublic void setSeqFibers(List<WFiber> newSeqFibers)
newSeqFibers
- see aboveCopyright © 2018. All rights reserved.