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 |
---|---|
NetPlan |
NetPlan.copy()
Returns a deep copy of the current design.
|
NetPlan |
NetworkElement.getNetPlan()
Returns the
NetPlan object to which this element is attached |
static NetPlan |
NetPlan.loadFromFile(File file)
Static factory method to get a
NetPlan object from a .n2p file. |
Modifier and Type | Method and Description |
---|---|
void |
NetPlan.assignFrom(NetPlan netPlan)
Assigns the information from the input
NetPlan . |
void |
NetworkElement.checkAttachedToNetPlanObject(NetPlan np)
Checks whether this element (demand, node, route...) was not already removed from the
NetPlan object. |
void |
NetPlan.copyFrom(NetPlan originNetPlan)
Removes all information from the current
NetPlan and copy the information from the input NetPlan . |
String |
IAlgorithm.executeAlgorithm(NetPlan netPlan,
Map<String,String> algorithmParameters,
Map<String,String> net2planParameters)
Execute the algorithm.
|
String |
IReport.executeReport(NetPlan netPlan,
Map<String,String> reportParameters,
Map<String,String> net2planParameters)
Executes a report.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
IEventProcessor.initialize(NetPlan initialNetPlan,
Map<String,String> algorithmParameters,
Map<String,String> simulationParameters,
Map<String,String> net2planParameters)
Initializes the algorithm (i.e. reading input parameters).
|
abstract void |
IEventGenerator.initialize(NetPlan initialNetPlan,
Map<String,String> algorithmParameters,
Map<String,String> simulationParameters,
Map<String,String> net2planParameters)
Initializes the algorithm (i.e. reading input parameters).
|
void |
ICombinedEventProcessor.initialize(NetPlan initialNetPlan,
Map<String,String> algorithmParameters,
Map<String,String> simulationParameters,
Map<String,String> net2planParameters) |
void |
ICombinedEventGenerator.initialize(NetPlan initialNetPlan,
Map<String,String> algorithmParameters,
Map<String,String> simulationParameters,
Map<String,String> net2planParameters) |
abstract void |
IEventProcessor.processEvent(NetPlan currentNetPlan,
SimEvent event)
Processes the next event in the future event list.
|
abstract void |
IEventGenerator.processEvent(NetPlan currentNetPlan,
SimEvent event)
Processes the next event in the future event list.
|
abstract void |
ICombinedEventProcessor.processEvent(NetPlan currentNetPlan,
SimEvent event) |
abstract void |
ICombinedEventGenerator.processEvent(NetPlan currentNetPlan,
SimEvent event) |
Modifier and Type | Method and Description |
---|---|
static void |
WDMUtils.checkConsistency(NetPlan netPlan,
boolean countDownLightpathResources,
NetworkLayer... optionalLayerParameter)
Performs extra checks to those applicable to every network design, especially
focused on WDM networks.
|
static List<String> |
NetworkPerformanceMetrics.checkNetworkState(NetPlan netPlan,
Map<String,String> net2planParameters)
Checks the current network state and, maybe, returns some warnings about
link oversubscription, demand blocking, and so on.
|
static Quadruple<DoubleMatrix2D,DoubleMatrix2D,DoubleMatrix1D,DoubleMatrix1D> |
IPUtils.computeCarriedTrafficFromIGPWeights(NetPlan netPlan,
DoubleMatrix1D linkWeightVector,
NetworkLayer... optionalLayer)
Computes the resulting carried traffic according to a link weight setting
and OSPF/ECMP routing.
|
static void |
SRGUtils.configureSRGs(NetPlan netPlan,
double defaultMTTF,
double defaultMTTR,
SRGUtils.SharedRiskModel sharedRiskModel,
boolean removeExistingSRGs,
NetworkLayer... optionalLayerParameter)
Configures the SRGs into the network design at the given layer.
|
static DoubleMatrix1D |
IPUtils.getLinkWeightVector(NetPlan netPlan,
NetworkLayer... optionalLayer)
Obtains the vector of ink weights from a given a network design.
|
static DoubleMatrix2D |
WDMUtils.getMatrixWavelength2FiberOccupancy(NetPlan netPlan,
boolean countDownLightpathResources,
NetworkLayer... optionalLayerParameter)
Returns the fiber occupied (columns) in each wavelength (rows).
|
static Pair<Double,Double> |
SRGUtils.getSRGDisjointnessPercentage(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the percentage of SRG disjointness of traffic routes and
protection segments.
|
static String |
SRGUtils.getSRGModel(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Indicates whether SRG definition follows one of the predefined models (per
node, per link...), or 'Mixed' otherwise (or 'None' if no SRGs are defined).
|
static Triple<Double,Double,Double> |
TrafficComputationEngine.getTrafficProtectionDegree(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the statistics for protection degree carried traffic.
|
static DoubleMatrix1D |
WDMUtils.getVectorFiberNumWavelengths(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the total number of wavelengths in each fiber.
|
static DoubleMatrix1D |
WDMUtils.getVectorNodeRegeneratorOccupancy(NetPlan netPlan,
boolean countDownLightpathResources,
NetworkLayer... optionalLayerParameter)
Returns the number of regenerators installed per node.
|
static DoubleMatrix1D |
TrafficMatrixGenerationModels.normalizeTraffic_linkCapacity_xde(NetPlan netPlan,
String solverName,
String solverLibraryName,
NetworkLayer... optionalLayerParameter)
Returns the maximum scaled version of the offered traffic vector that
can be carried by the network, provided that no link is oversubscribed.
|
static DoubleMatrix1D |
TrafficMatrixGenerationModels.normalizeTraffic_networkCapacity(NetPlan netPlan,
NetworkLayer... optionalLayerParameter)
Returns the maximum scaled version of the offered traffic vector so
that the network capacity (summation of capacity of all links) is exhausted.
|
static void |
IPUtils.setECMPForwardingRulesFromLinkWeights(NetPlan netPlan,
DoubleMatrix1D linkWeightMap,
NetworkLayer... optionalLayer)
Sets the OSPF/ECMP forwarding rules in the given design, according to the
given IGP weight setting.
|
static void |
WDMUtils.setFibersNumWavelengths(NetPlan netPlan,
int[] w_f,
NetworkLayer... optionalLayerParameter)
Sets the number of wavelengths available in each fiber.
|
static void |
WDMUtils.setFibersNumWavelengths(NetPlan netPlan,
int numWavelengths,
NetworkLayer... optionalLayerParameter)
Sets the number of wavelengths available in each fiber to the same value.
|
static void |
IPUtils.setLinkWeights(NetPlan netPlan,
DoubleMatrix1D linkWeightVector,
NetworkLayer... optionalLayer)
Sets the weight associated to each link.
|
static void |
IPUtils.setLinkWeights(NetPlan netPlan,
double linkWeight,
NetworkLayer... optionalLayer)
Sets the weight associated to every link.
|