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 |
---|---|
Route |
NetPlan.addRoute(Demand demand,
double carriedTraffic,
double occupiedLinkCapacity,
List<Link> sequenceOfLinks,
Map<String,String> attributes)
Adds a new traffic route
Important: Routing type must be
SOURCE_ROUTING . |
Route |
NetPlan.getRoute(int index,
NetworkLayer... optionalLayerParameter)
Returns the route with the given index in the given layer. if no layer is provided, default layer is assumed
|
Route |
NetPlan.getRouteFromId(long uid)
Returns the route with the given unique identifier.
|
Modifier and Type | Method and Description |
---|---|
Pair<Set<Route>,Double> |
Demand.computeShortestPathRoutes(double[] costs)
Returns the set of demand routes with shortest path (and its cost), using the cost per link array provided.
|
Set<Route> |
SharedRiskGroup.getAffectedRoutes()
Returns the set of routes affected by the SRG (fail, when the SRG is in failure state).
|
Set<Route> |
SharedRiskGroup.getAffectedRoutes(NetworkLayer layer)
Returns the set of routes in the given layer affected by the SRG (fail, when the SRG is in failure state)
|
Set<Route> |
Node.getAssociatedRoutes(NetworkLayer... optionalLayerParameter)
Returns the set of routes that start, end or traverse this node, in the given layer.
|
Set<Route> |
ProtectionSegment.getAssociatedRoutesToWhichIsBackup()
Returns the routes this segment is a potential backing up segment
|
Set<Route> |
Node.getIncomingRoutes(NetworkLayer... optionalLayerParameter)
Returns the set of routes ending in the node, in the given layer.
|
Set<Route> |
NetPlan.getNodePairRoutes(Node originNode,
Node destinationNode,
boolean returnRoutesInBothDirections,
NetworkLayer... optionalLayerParameter)
Gets the set of routes at the given layer from the given nodes (if
returnRoutesInBothDirections is true , also the reversed routes are included). |
Set<Route> |
Node.getOutgoingRoutes(NetworkLayer... optionalLayerParameter)
Returns the set of routes initiated in the node, in the given layer.
|
Set<Route> |
Demand.getRoutes()
Returns the routes associated to this demand.
|
List<Route> |
NetPlan.getRoutes(NetworkLayer... optionalLayerParameter)
Returns the array of route ids for the given layer (i-th position, corresponds to index i).
|
Set<Route> |
NetPlan.getRoutesDown(NetworkLayer... optionalLayerParameter)
Returns the set of routes that are down (traverse a link or node that is failed).
|
Set<Route> |
Link.getTraversingRoutes()
Returns the
Routes traversing the link. |
Modifier and Type | Field and Description |
---|---|
Route |
SimEvent.RouteRemove.route |
Route |
SimEvent.RouteModify.route |
Route |
SimEvent.RouteAdd.routeAddedToFillByProcessor |
Modifier and Type | Field and Description |
---|---|
Set<Route> |
SimEvent.SegmentAdd.associatedRoutes |
Constructor and Description |
---|
RouteModify(Route route,
List<Link> seqLinks,
double carriedTraffic,
double occupiedLinkCapacity)
Default constructor.
|
RouteRemove(Route route)
Default constructor.
|
Constructor and Description |
---|
SegmentAdd(Set<Route> associatedRoutes,
List<Link> seqLinks,
double reservedLinkCapacity)
Default constructor.
|
Modifier and Type | Field and Description |
---|---|
Route |
WDMUtils.LightpathRemove.lp |
Route |
WDMUtils.LightpathModify.lp |
Route |
WDMUtils.LightpathAdd.lpAddedToFillByProcessor |
Modifier and Type | Method and Description |
---|---|
static Route |
WDMUtils.addLightpathAndUpdateOccupancy(Demand demand,
List<Link> seqFibers,
double binaryRatePerChannel,
int[] seqWavelengths,
DoubleMatrix2D wavelengthFiberOccupancy)
Creates a new lightpath and updates the wavelength occupancy.
|
static Route |
WDMUtils.addLightpathAndUpdateOccupancy(Demand demand,
List<Link> seqFibers,
double binaryRatePerChannel,
int[] seqWavelengths,
int[] seqRegenerators,
DoubleMatrix2D wavelengthFiberOccupancy,
DoubleMatrix1D nodeRegeneratorOccupancy)
Creates a new lightpath and updates the wavelength occupancy.
|
static Route |
WDMUtils.addLightpathAndUpdateOccupancy(Demand demand,
List<Link> seqFibers,
double binaryRatePerChannel,
int wavelengthId,
DoubleMatrix2D wavelengthFiberOccupancy)
Creates a new lightpath and updates the wavelength occupancy.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
WDMUtils.getLightpathSeqRegenerators(Route route)
Returns the sequence of regenerators/wavelength converters for the given lightpath.
|
static int[] |
WDMUtils.getLightpathSeqWavelengths(Route route)
Returns the sequence of wavelengths for the given lightpath.
|
static int[] |
WDMUtils.getLightpathSeqWavelengthsInitialRoute(Route route)
Returns the initial sequence of wavelengths for the given lightpath (when it was created).
|
static void |
WDMUtils.removeLightpathAndUpdateOccupancy(Route lp,
DoubleMatrix2D wavelengthFiberOccupancy,
boolean releaseResourcesOfOriginalRoute)
Removes a lightpath and updates the occupancy.
|
static void |
WDMUtils.removeLightpathAndUpdateOccupancy(Route lp,
DoubleMatrix2D wavelengthFiberOccupancy,
DoubleMatrix1D nodeRegeneratorOccupancy,
boolean releaseResourcesOfOriginalRoute)
Removes a lightpath and updates the occupancy.
|
static void |
WDMUtils.setLightpathSeqRegenerators(Route lp,
int[] seqRegenerators)
Sets the sequence of regenerators/wavelength converters for a given lightpath.
|
static void |
WDMUtils.setLightpathSeqWavelengths(Route lp,
int wavelengthId)
Sets the current wavelength for the given lightpath, assuming no wavelength conversion.
|
static void |
WDMUtils.setLightpathSeqWavelengths(Route lp,
int[] seqWavelengths)
Sets the sequence of wavelengths for the given lightpath.
|
static void |
WDMUtils.setLightpathSeqWavelengthsInitialRoute(Route lp,
int[] seqWavelengths)
Sets the initial sequence of wavelengths for the given lightpath.
|
Modifier and Type | Method and Description |
---|---|
static DoubleMatrix2D |
GraphUtils.convert_xp2fte(List<Node> nodes,
List<Link> links,
List<Demand> demands,
List<Route> routes)
Given a set of traffic routes and their carried traffic returns a destination-based routing in the form fte (fractions of traffic in a node, that is forwarded through each of its output links).
|
static DoubleMatrix2D |
GraphUtils.convert_xp2xde(List<Link> links,
List<Demand> demands,
List<Route> routes)
Given a path-based routing, returns the amount of traffic for each demand d traversing each link e.
|
static DoubleMatrix2D |
GraphUtils.convert_xp2xte(List<Node> nodes,
List<Link> links,
List<Demand> demands,
List<Route> routes)
Given a set of traffic routes and their carried traffic returns a destination-based routing in the form x_te (amount of traffic targeted to node t, transmitted through link e).
|
static DoubleMatrix1D |
GraphUtils.convert_xp2ye(List<Link> links,
List<Route> routes)
Returns the carried traffic per link.
|
static double |
TrafficComputationEngine.getRouteAverageLength(List<Route> routes,
DoubleMatrix1D linkCostMap)
Obtains the average route length among the current routes according to
certain link cost metric.
|
Constructor and Description |
---|
LightpathModify(Route lp,
List<Link> seqLinks,
double carriedTraffic,
double occupiedLinkCapacity,
int[] seqWavelengths)
Constructor to generate a new
LightpathModify object. |
LightpathRemove(Route lp)
Constructor to generate a new
LightpathRemove object. |