public class WLightpathRequest extends WAbstractNetworkElement
Modifier and Type | Method and Description |
---|---|
WLightpathUnregenerated |
addLightpathUnregenerated(List<WFiber> sequenceFibers,
SortedSet<Integer> occupiedSlots,
boolean isBackupRoute)
Adds a lightpath realizing this lightpath request.
|
void |
coupleToIpLink(WIpLink ipLink)
Couples this lightpath request to an IP link
|
void |
decouple()
Decouples this lightpath request to the IP link it was coupled to, if any
|
WNode |
getA()
The lightpath request origin node
|
WNode |
getB()
The lightpath request destination node
|
WLightpathRequest |
getBidirectionalPair()
If the lightpath is part of a bidirectional pair, returns the opposite lightpath request, if not returns null
|
WIpLink |
getCoupledIpLink()
Gets the coupled IP links, or raises an exception if none
|
double |
getCurrentCapacityGbps()
Return the current lightpath request capacity: its nominal line rate if up, or zero if down
|
List<WLightpathUnregenerated> |
getLightpaths()
Returns the set of lightpaths realizing this request.
|
double |
getLineRateGbps()
Returns the line rate of the lighptath request in Gbps
|
Demand |
getNe()
Returns the underlying Net2Plan object.
|
double |
getWorstCaseLengthInKm()
Returns the length of this lightpath request, as the physical length of fibers traversed by the lightpaths carrying this request.
|
double |
getWorstCasePropagationDelayMs()
Returns the propagation delay in ms of this lightpath request, as the propagation delay of fibers traversed by the lightpaths carrying this request.
|
boolean |
hasLightpathsAssigned()
Indicates if this lighptath request has lightpaths assigned
|
boolean |
is11Protected()
Indicates if the lighptath request is supported by a 1+1 setting of two lightpaths
|
boolean |
isBidirectional()
Indicates if the lightpath is part of a bidirectinal pair of lighptaths
|
boolean |
isBlocked()
Indicates if the request is blocked, meaning (i) has no lightpaths assigned, or (ii) assigned lightpaths are all down
|
boolean |
isCoupledToIpLink()
Indicates if the lightpath is coupled to an IP link
|
boolean |
isToBe11Protected()
Indicates if the user has requested this lightpath request to be realized by a 1+1 setting
|
void |
remove()
Removes this lightpath request.
|
void |
setIsToBe11Protected(boolean isToBe11Protected)
Sets if this lightpath request has to be realized by a 1+1 setting or not
|
void |
setLineRateGbps(double lineRateGbps)
Sets the line rate of the lighptath request in Gbps
|
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 WLightpathUnregenerated addLightpathUnregenerated(List<WFiber> sequenceFibers, SortedSet<Integer> occupiedSlots, boolean isBackupRoute)
sequenceFibers
- the sequence of traversed fibersoccupiedSlots
- the setof occupied slotsisBackupRoute
- indicates if this is a backup route (needs a main lightpath to be already added to the request).public void coupleToIpLink(WIpLink ipLink)
ipLink
- see abovepublic void decouple()
public WNode getA()
public WNode getB()
public WLightpathRequest getBidirectionalPair()
public WIpLink getCoupledIpLink()
public double getCurrentCapacityGbps()
public List<WLightpathUnregenerated> getLightpaths()
public double getLineRateGbps()
public Demand getNe()
WAbstractNetworkElement
getNe
in class WAbstractNetworkElement
public double getWorstCaseLengthInKm()
public double getWorstCasePropagationDelayMs()
public boolean hasLightpathsAssigned()
public boolean is11Protected()
public boolean isBidirectional()
public boolean isBlocked()
public boolean isCoupledToIpLink()
public boolean isToBe11Protected()
public void remove()
public void setIsToBe11Protected(boolean isToBe11Protected)
isToBe11Protected
- see abovepublic void setLineRateGbps(double lineRateGbps)
lineRateGbps
- see aboveCopyright © 2018. All rights reserved.