Package | Description |
---|---|
com.net2plan.libraries |
Provides a set of useful libraries to develop algorithms and reports.
|
com.net2plan.utils |
General utility static methods.
|
Modifier and Type | Method and Description |
---|---|
static Quadruple<Map<Pair<Long,Long>,Double>,Map<Pair<Long,Long>,Double>,Map<Long,Double>,Map<Long,Double>> |
IPUtils.computeCarriedTrafficFromIGPWeights(NetPlan netPlan,
long layerId,
Map<Long,Double> linkWeightMap)
Computes the resulting carried traffic according to a link weight setting
and OSPF/ECMP routing.
|
static Quadruple<Map<Pair<Long,Long>,Double>,Map<Pair<Long,Long>,Double>,Map<Long,Double>,Map<Long,Double>> |
IPUtils.computeCarriedTrafficFromIGPWeights(NetPlan netPlan,
Map<Long,Double> linkWeightMap)
Computes the resulting carried traffic according to a link weight setting
and OSPF/ECMP routing.
|
static Quadruple<Map<Pair<Long,Long>,Double>,Double,Map<Long,Double>,Constants.RoutingCycleType> |
GraphUtils.convert_fde2xde(long demandId,
Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
Map<Long,Pair<Long,Long>> demandMap,
Map<Long,Double> h_d,
Map<Pair<Long,Long>,Double> f_de)
Given a forwarding rule mapping (fractions of traffic entering a node from
demand 'd', leaving that node through link 'e'), and an offered
traffic to the network, it generates the resulting demand-link routing in
the form x_de (amount of traffic from demand d, transmitted through link e),
only for a given demand.
|
static Quadruple<cern.colt.matrix.tdouble.DoubleMatrix2D,double[],double[],Constants.RoutingCycleType[]> |
GraphUtils.convert_fde2xde(Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
Map<Long,Pair<Long,Long>> demandMap,
Map<Long,Double> h_d,
cern.colt.matrix.tdouble.DoubleMatrix2D f_de)
Given a forwarding rule mapping (fractions of traffic entering a node from
demand 'd', leaving that node through link 'e'), and an offered
traffic to the network, it generates the resulting demand-link routing in
the form x_de (amount of traffic from demand d, transmitted through link e).
|
static Quadruple<Map<Pair<Long,Long>,Double>,Map<Long,Double>,Map<Long,Double>,List<Constants.RoutingCycleType>> |
GraphUtils.convert_fde2xde(Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
Map<Long,Pair<Long,Long>> demandMap,
Map<Long,Double> h_d,
Map<Pair<Long,Long>,Double> f_de)
Given a forwarding rule mapping (fractions of traffic entering a node from
demand 'd', leaving that node through link 'e'), and an offered
traffic to the network, it generates the resulting demand-link routing in
the form x_de (amount of traffic from demand d, transmitted through link e).
|
static Quadruple<Map<Pair<Long,Long>,Double>,Map<Long,Double>,Map<Long,Double>,List<Constants.RoutingCycleType>> |
GraphUtils.convert_fte2xde(Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
Map<Long,Pair<Long,Long>> demandMap,
Map<Long,Double> h_d,
Map<Pair<Long,Long>,Double> f_te)
Given a destination-based routing in the form f_te (fractions of traffic in
a node, that is forwarded through each of its output links), and an offered
traffic to the network, it generates the resulting demand-link routing in
the form x_de (amount of traffic from demand d, transmitted through link e).
|
static Quadruple<cern.colt.matrix.tdouble.DoubleMatrix2D,double[],double[],Constants.RoutingCycleType[]> |
GraphUtils.convert_fte2xte(Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
cern.colt.matrix.tdouble.DoubleMatrix2D f_te,
cern.colt.matrix.tdouble.DoubleMatrix2D trafficMatrix)
Given a destination-based routing in the form f_te (fractions of traffic in a node, that is forwarded through each of its output links), and
an offered traffic to the network, it generates the resulting destination-based
routing in the form x_te (amount of traffic targeted to node t, transmitted through link e).
|
static Quadruple<Map<Pair<Long,Long>,Double>,Map<Long,Double>,Map<Long,Double>,List<Constants.RoutingCycleType>> |
GraphUtils.convert_fte2xte(Set<Long> nodeIds,
Map<Long,Pair<Long,Long>> linkMap,
Map<Pair<Long,Long>,Double> f_te,
cern.colt.matrix.tdouble.DoubleMatrix2D trafficMatrix)
Given a destination-based routing in the form f_te (fractions of traffic in a node, that is forwarded through each of its output links), and
an offered traffic to the network, it generates the resulting destination-based
routing in the form x_te (amount of traffic targeted to node t, transmitted through link e).
|
Modifier and Type | Method and Description |
---|---|
static <A,B,C,D> Quadruple<A,B,C,D> |
Quadruple.of(A a,
B b,
C c,
D d)
This factory allows a quadruple to be created using inference to obtain the generic types.
|
static <A,B,C,D> Quadruple<A,B,C,D> |
Quadruple.unmodifiableOf(A a,
B b,
C c,
D d)
This factory allows an unmodifiable pair to be created using inference to obtain the generic types.
|