Package | Description |
---|---|
com.net2plan.research.niw.networkModel |
Modifier and Type | Method and Description |
---|---|
WFiber |
WAbstractNetworkElement.getAsFiber()
Casts this element to a WFiber object (fails if it is not an object of such type)
|
WFiber |
WFiber.getBidirectionalPair()
If this fiber is part of a bidirectional fiber pair, returns the opposite fiber.
|
Modifier and Type | Method and Description |
---|---|
Pair<WFiber,WFiber> |
WNet.addFiber(WNode a,
WNode b,
List<Integer> validOpticalSlotRanges,
double lengthInKm,
boolean isBidirectional)
Adds a fiber to the design
|
Pair<WFiber,WFiber> |
WNet.addFiber(WNode a,
WNode b,
List<Integer> validOpticalSlotRanges,
double lengthInKm,
boolean isBidirectional)
Adds a fiber to the design
|
List<WFiber> |
WNet.getFibers()
Returns the list of fibers, in increasing order according to its id
|
SortedSet<WFiber> |
WNode.getIncomingFibers()
Returns the set of incoming fibers to the node
|
List<List<WFiber>> |
WNet.getKShortestWdmPath(int k,
WNode a,
WNode b,
Optional<Map<WFiber,Double>> optionalCostMapOrElseLatency)
Returns a ranking with the k-shortest paths composed as a sequence of WFiber links in the network, given the origin and end nodes of the paths.
|
SortedMap<WFiber,SortedSet<Integer>> |
OpticalSpectrumManager.getOccupiedResources(WLightpathRequest lp)
Given a lightpath request, returns the optical slots occupied in the traversed fibers
|
SortedSet<WFiber> |
WNode.getOutgoingFibers()
Returns the set of outgoing fibers of the node
|
List<List<WFiber>> |
OpticalSpectrumManager.getRegenerationPoints(List<WFiber> seqFibers,
double maxUnregeneratedDistanceInKm)
Given a sequence of fibers (i.e.
|
List<WFiber> |
WLightpathUnregenerated.getSeqFibers()
Returns the sequence of fibers traversed by this lp
|
Modifier and Type | Method and Description |
---|---|
SortedSet<Integer> |
OpticalSpectrumManager.getIdleOpticalSlotIds(WFiber wdmLink)
Returns the optical slots that are usable (valid and idle) in the given fiber
|
SortedSet<Integer> |
OpticalSpectrumManager.getOccupiedOpticalSlotIds(WFiber fiber)
Given a fiber, returns the set of optical slots occupied by at least one traversing lightpath
|
SortedMap<Integer,SortedSet<WLightpathUnregenerated>> |
OpticalSpectrumManager.getOccupiedResources(WFiber fiber)
Given a fiber, returns a map with the occupied optical slot ids, mapped to the set of lightpaths that occupy it.
|
boolean |
OpticalSpectrumManager.isOpticalSlotIdsValidAndIdle(WFiber wdmLink,
SortedSet<Integer> slotsIds)
Indicates if the optical slots are usable (valid and idle) in the given fiber
|
Modifier and Type | Method and Description |
---|---|
WLightpathUnregenerated |
WLightpathRequest.addLightpathUnregenerated(List<WFiber> sequenceFibers,
SortedSet<Integer> occupiedSlots,
boolean isBackupRoute)
Adds a lightpath realizing this lightpath request.
|
boolean |
OpticalSpectrumManager.allocateOccupation(WLightpathUnregenerated lp,
Collection<WFiber> wdmLinks,
SortedSet<Integer> slotIds)
Accounts for the occupation of a lightpath, updating the information in the spectrum manager
|
SortedSet<Integer> |
OpticalSpectrumManager.getAvailableSlotIds(Collection<WFiber> wdmLinks)
Returns the set of the optical slots ids that are idle in ALL the fibers provided
|
List<List<WFiber>> |
WNet.getKShortestWdmPath(int k,
WNode a,
WNode b,
Optional<Map<WFiber,Double>> optionalCostMapOrElseLatency)
Returns a ranking with the k-shortest paths composed as a sequence of WFiber links in the network, given the origin and end nodes of the paths.
|
static Pair<Integer,Integer> |
OpticalSpectrumManager.getMinimumAndMaximumValidSlotIdsInTheGrid(Collection<WFiber> wdmLinks)
For the provided collection of fibers, indicates the minimum and maximum optical slot id that is valid for all the
fibers in the collection
|
List<List<WFiber>> |
OpticalSpectrumManager.getRegenerationPoints(List<WFiber> seqFibers,
double maxUnregeneratedDistanceInKm)
Given a sequence of fibers (i.e.
|
boolean |
OpticalSpectrumManager.isAllocatable(Collection<WFiber> wdmLinks,
SortedSet<Integer> slotIds)
Given a set of fibers and a set of optical slots, returns true if ALL the optical slots are idle in ALL the fibers
|
void |
WLightpathUnregenerated.setSeqFibers(List<WFiber> newSeqFibers)
Changes the sequence of fibers traversed by this lightpath
|
Optional<SortedSet<Integer>> |
OpticalSpectrumManager.spectrumAssignment_firstFit(Collection<WFiber> seqFibers,
int numContiguousSlotsRequired,
Optional<Integer> minimumInitialSlotId)
Searches for a first-fit assignment.
|
Optional<Pair<SortedSet<Integer>,SortedSet<Integer>>> |
OpticalSpectrumManager.spectrumAssignment_firstFitTwoRoutes(Collection<WFiber> seqFibers_1,
Collection<WFiber> seqFibers_2,
int numContiguousSlotsRequired)
Searches for a first-fit assignment for the two given paths, so optical slots can be different for each.
|
Optional<Pair<SortedSet<Integer>,SortedSet<Integer>>> |
OpticalSpectrumManager.spectrumAssignment_firstFitTwoRoutes(Collection<WFiber> seqFibers_1,
Collection<WFiber> seqFibers_2,
int numContiguousSlotsRequired)
Searches for a first-fit assignment for the two given paths, so optical slots can be different for each.
|
Copyright © 2018. All rights reserved.