Package | Description |
---|---|
com.net2plan.interfaces.networkDesign |
Provides a set of classes and interfaces for the network design tool.
|
com.net2plan.interfaces.simulation |
Provides a set of classes for the online simulator tool.
|
com.net2plan.libraries |
Provides a set of useful libraries to develop algorithms and reports.
|
Modifier and Type | Method and Description |
---|---|
ProtectionSegment |
NetPlan.addProtectionSegment(List<Link> sequenceOfLinks,
double reservedCapacity,
Map<String,String> attributes)
Adds a new protection segment.
|
ProtectionSegment |
NetPlan.getProtectionSegment(int index,
NetworkLayer... optionalLayerParameter)
Returns the protection segment with the given index in the given layer. if no layer is provided, default layer is assumed.
|
ProtectionSegment |
NetPlan.getProtectionSegmentFromId(long uid)
Returns the protection segment with the given unique identifier.
|
Modifier and Type | Method and Description |
---|---|
Set<ProtectionSegment> |
SharedRiskGroup.getAffectedProtectionSegments()
Returns the set of protection segments affected by the SRG (fail, when the SRG is in failure state).
|
Set<ProtectionSegment> |
SharedRiskGroup.getAffectedProtectionSegments(NetworkLayer layer)
Returns the set of protection segments in the given layer affected by the SRG (fail, when the SRG is in failure state)
|
Set<ProtectionSegment> |
Node.getAssociatedProtectionSegments(NetworkLayer... optionalLayerParameter)
Returns the set of protection segments that start, end or traverse this node, in the given layer.
|
List<ProtectionSegment> |
Route.getCurrentlyTraversedProtectionSegments()
Returns a list with the currently traversed protection segments for this route, in the same order in which they are traversed.
|
Set<ProtectionSegment> |
NetPlan.getNodePairProtectionSegments(Node originNode,
Node destinationNode,
boolean returnSegmentsInBothDirections,
NetworkLayer... optionalLayerParameter)
Return the set of protection segments at the given layer for the given nodes (if
returnSegmentsInBothDirections is true , also the reversed protection segments are included)
If no layer is provided, default layer is assumed. |
Set<ProtectionSegment> |
Route.getPotentialBackupProtectionSegments()
Returns the list of protection segments that are registered as potential segmet backups to this route
|
List<ProtectionSegment> |
NetPlan.getProtectionSegments(NetworkLayer... optionalLayerParameter)
Returns the array of protection segmets for the given layer (i-th position, corresponds to index i).
|
Set<ProtectionSegment> |
NetPlan.getProtectionSegmentsDown(NetworkLayer... optionalLayerParameter)
Returns the set of protection segments that are down (traverse a link or node that is failed).
|
Set<ProtectionSegment> |
ProtectionSegment.getTraversingProtectionSegments()
This method cannot be called for protection segments (raises an exception)
|
Set<ProtectionSegment> |
Link.getTraversingProtectionSegments()
Returns the
Protection Segments traversing the link. |
Modifier and Type | Method and Description |
---|---|
void |
Route.addProtectionSegment(ProtectionSegment segment)
Adds a protection segment to the list of backup protection segments (both must belong to the same layer).
|
void |
Route.removeProtectionSegmentFromBackupSegmentList(ProtectionSegment segment)
Removes a protection segment from the list of backup protection segments of a route.
|
Modifier and Type | Field and Description |
---|---|
ProtectionSegment |
SimEvent.SegmentRemove.segment |
ProtectionSegment |
SimEvent.SegmentAdd.segmentAddedToFillByProcessor |
Constructor and Description |
---|
SegmentRemove(ProtectionSegment segment)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static ProtectionSegment |
WDMUtils.addLightpathAsProtectionSegmentAndUpdateOccupancy(List<Link> seqFibers,
int[] seqWavelengths,
DoubleMatrix2D wavelengthFiberOccupancy)
Creates a new protection lightpath and updates the wavelength occupancy.
|
static ProtectionSegment |
WDMUtils.addLightpathAsProtectionSegmentAndUpdateOccupancy(List<Link> seqFibers,
int[] seqWavelengths,
int[] seqRegenerators,
DoubleMatrix2D wavelengthFiberOccupancy,
DoubleMatrix1D nodeRegeneratorOccupancy)
Creates a new protection lightpath and updates the wavelength occupancy.
|
static ProtectionSegment |
WDMUtils.addLightpathAsProtectionSegmentAndUpdateOccupancy(List<Link> seqFibers,
int wavelengthId,
DoubleMatrix2D wavelengthFiberOccupancy)
Creates a new protection lightpath and updates the wavelength occupancy.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
WDMUtils.getLightpathSeqRegenerators(ProtectionSegment segment)
Returns the sequence of regenerators/wavelength converters for the given lightpath.
|
static int[] |
WDMUtils.getLightpathSeqWavelengths(ProtectionSegment segment)
Returns the sequence of wavelengths for the given lightpath.
|
static int[] |
WDMUtils.getProtectionLightpathSeqRegenerators(ProtectionSegment segment)
Returns the sequence of regenerators/wavelength converters for the given lightpath.
|
static int[] |
WDMUtils.getProtectionLightpathSeqWavelengths(ProtectionSegment segment)
Returns the sequence of wavelengths for a given protection lightpath.
|
static void |
WDMUtils.removeLightpathAndUpdateOccupancy(ProtectionSegment lp,
DoubleMatrix2D wavelengthFiberOccupancy)
Removes a protection lightpath and updates the occupancy.
|
static void |
WDMUtils.removeLightpathAndUpdateOccupancy(ProtectionSegment lp,
DoubleMatrix2D wavelengthFiberOccupancy,
DoubleMatrix1D nodeRegeneratorOccupancy)
Removes a protection lightpath and updates the occupancy.
|
static void |
WDMUtils.setLightpathSeqRegenerators(ProtectionSegment lp,
int[] seqRegenerators)
Sets the sequence of regenerators/wavelength converters for a given lightpath.
|
static void |
WDMUtils.setLightpathSeqWavelengths(ProtectionSegment lp,
int[] seqWavelengths)
Sets the current wavelength for the given lightpath, assuming no wavelength conversion.
|
static void |
WDMUtils.setProtectionLightpathSeqRegenerators(ProtectionSegment segment,
int[] seqRegenerators)
Sets the sequence of regenerators/wavelength converters for a given protection lightpath.
|
static void |
WDMUtils.setProtectionLightpathSeqWavelengths(ProtectionSegment segment,
int wavelengthId)
Sets the given wavelength for all fibers traversing a protection lightpath.
|
static void |
WDMUtils.setProtectionLightpathSeqWavelengths(ProtectionSegment segment,
int[] seqWavelengths)
Sets the sequence of wavelengths for a protection lightpath.
|