Package | Description |
---|---|
com.net2plan.interfaces.cacSimulation |
Provides a set of classes and interfaces for the connection simulator tool.
|
com.net2plan.interfaces.networkDesign |
Provides a set of classes and interfaces for the network design tool.
|
com.net2plan.interfaces.resilienceSimulation |
Provides a set of classes and interfaces for the resilience simulator tool.
|
com.net2plan.interfaces.timeVaryingTrafficSimulation |
Provides a set of classes and interfaces for the time-varying traffic simulator tool.
|
com.net2plan.libraries |
Provides a set of useful libraries to develop algorithms and reports.
|
Modifier and Type | Method and Description |
---|---|
NetPlan |
ConnectionNetState.convertToNetPlan()
Returns a network design from the current network state.
|
Modifier and Type | Method and Description |
---|---|
void |
ICACAlgorithm.initialize(NetPlan netPlan,
ConnectionNetState netState,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the CAC algorithm (i.e. reading input parameters).
|
java.util.List<CACEvent> |
IConnectionEventGenerator.initialize(NetPlan netPlan,
ConnectionNetState netState,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the connection generator (i.e. reading input parameters)
|
java.util.List<CACAction> |
ICACAlgorithm.processEvent(NetPlan netPlan,
ConnectionNetState netState,
CACEvent event)
Processes a new event.
|
java.util.List<CACEvent> |
IConnectionEventGenerator.processEvent(NetPlan netPlan,
ConnectionNetState netState,
CACEvent event)
Processes a new event.
|
Constructor and Description |
---|
ConnectionNetState(NetPlan netPlan)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
NetPlan |
NetPlan.copy()
Returns a deep copy of the current design.
|
NetPlan |
NetPlan.unmodifiableView() |
Modifier and Type | Method and Description |
---|---|
void |
NetPlan.addDemandsFrom(NetPlan demands)
Adds to the current network plan the traffic demand set from other network plan.
|
void |
NetPlan.copyFrom(NetPlan netPlan)
Removes all the current information from the
NetPlan object and copy the
information from the input NetPlan . |
java.lang.String |
IAlgorithm.executeAlgorithm(NetPlan netPlan,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Execute the algorithm.
|
java.lang.String |
IReport.executeReport(NetPlan netPlan,
java.util.Map<java.lang.String,java.lang.String> reportParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Executes a report.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
IAlgorithmMultiLayer.executeAlgorithm(java.util.List<NetPlan> netPlans,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Execute the algorithm.
|
Modifier and Type | Method and Description |
---|---|
NetPlan |
ResilienceNetState.convertToNetPlan()
Returns a network design from the current network state.
|
Modifier and Type | Method and Description |
---|---|
void |
IProvisioningAlgorithm.initialize(NetPlan netPlan,
ResilienceNetState netState,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the provisioning algorithm (i.e. reading input parameters).
|
java.util.List<ResilienceEvent> |
IResilienceEventGenerator.initialize(NetPlan netPlan,
ResilienceNetState netState,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the event algorithm (i.e. reading input parameters).
|
java.util.List<ProvisioningAction> |
IProvisioningAlgorithm.processEvent(NetPlan netPlan,
ResilienceNetState netState,
ResilienceEvent event)
Executes the provisioning algorithm.
|
java.util.List<ResilienceEvent> |
IResilienceEventGenerator.processEvent(NetPlan netPlan,
ResilienceNetState netState,
ResilienceEvent event)
Executes the event generator.
|
Constructor and Description |
---|
ResilienceNetState(NetPlan netPlan)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
NetPlan |
TimeVaryingNetState.convertToNetPlan()
Returns a network design from the current network state.
|
Modifier and Type | Method and Description |
---|---|
double[] |
ITrafficGenerator.execute(NetPlan netPlan,
java.util.Calendar currentDate)
Processes a new event.
|
void |
ITrafficGenerator.initialize(NetPlan netPlan,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the traffic generator (i.e. reading input parameters)
|
void |
ITrafficAllocationAlgorithm.initialize(NetPlan netPlan,
TimeVaryingNetState netState,
java.util.Map<java.lang.String,java.lang.String> algorithmParameters,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Initializes the allocation algorithm (i.e. reading input parameters).
|
java.util.List<TrafficAllocationAction> |
ITrafficAllocationAlgorithm.processEvent(NetPlan netPlan,
TimeVaryingNetState netState,
double[] h_d,
java.util.Calendar currentDate)
Processes a new event.
|
Constructor and Description |
---|
TimeVaryingNetState(NetPlan netPlan)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
WDMUtils.checkConsistency(NetPlan physicalLayer,
java.util.Map<java.lang.String,java.lang.String> net2planParameters)
Performs extra checks to those applicable to every network design, especially
focused on WDM networks.
|
static DoubleMatrixND |
GraphUtils.computeDemand2PathAssignmentMatrix(NetPlan netPlan)
Returns the demand-path incidence matrix (a DxP matrix in which an element δdp is equal to 1 if traffic route p is able to carry traffic from demand d).
|
static DoubleMatrixND |
GraphUtils.computeLink2PathAssignmentMatrix(NetPlan netPlan)
Returns the link-path incidence matrix (an ExP matrix in which an element δep is equal to the number of times which traffic route p traverses link e).
|
static void |
SRGUtils.configureSRGs(NetPlan netPlan,
double defaultMTTF,
double defaultMTTR,
SRGUtils.SharedRiskModel sharedRiskModel,
boolean removeExistingSRGs)
Configures the SRGs into the network design.
|
static |
GraphUtils.JGraphTUtils.getDemandLayerGraph(NetPlan netPlan)
Returns a graph representing the traffic demands (nodes and links) of the network plan.
|
static |
GraphUtils.JUNGUtils.getDemandLayerGraph(NetPlan netPlan)
Returns a graph representing the traffic demands (nodes and links) of the network plan.
|
static int[] |
GraphUtils.getDemandPathVector(NetPlan netPlan)
Returns the demand-path vector (a 1xP vector in which an element d(p) is equal to the demand identifier for path p).
|
static int[] |
WDMUtils.getFiberNumWavelengthsAttributes(NetPlan physicalLayer)
Returns the total number of wavelengths on each fiber.
|
static int[] |
WDMUtils.getLightpathSeqRegeneratorsAttribute(NetPlan physicalLayer,
int lpId)
Returns the sequence of regenerators/wavelength converters for the given lightpath.
|
static int[] |
WDMUtils.getLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId)
Returns the sequence of wavelengths for the given lightpath.
|
static java.util.List<int[]> |
WDMUtils.getLightpathSeqWavelengthsAttributes(NetPlan physicalLayer)
Returns the sequence of wavelengths for each lighptath.
|
static double[] |
IPUtils.getLinkWeightAttributes(NetPlan netPlan)
Obtains the set of link weights (link attribute 'linkWeight', default: 1) from a given a network design.
|
static DoubleMatrixND |
GraphUtils.getNodeAdjacencyMatrix(NetPlan netPlan)
Returns the node adjacency matrix (a NxN matrix in which an element aij is equal to the number of links from node i to node j).
|
static DoubleMatrixND |
GraphUtils.getNodeDemandIncidenceMatrix(NetPlan netPlan)
Returns the node-demand incidence matrix (a NxD matrix in which an element wnd is equal to 1 if node n is the ingress node of demand d, -1 if node n is the egress node of demand d, and zero otherwise).
|
static DoubleMatrixND |
GraphUtils.getNodeLinkIncidenceMatrix(NetPlan netPlan)
Returns the node-link incidence matrix (a NxE matrix in which an element ane is equal to 1 if node n is the origin node of link e, -1 if node n is the destination node of link e, and zero otherwise).
|
static |
GraphUtils.JGraphTUtils.getPhysicalLayerGraph(NetPlan netPlan)
Returns a graph representing the physical topology (nodes and links) of the network plan.
|
static |
GraphUtils.JUNGUtils.getPhysicalLayerGraph(NetPlan netPlan)
Returns a graph representing the physical topology (nodes and links) of the network plan.
|
static int[] |
WDMUtils.getProtectionLightpathSeqRegeneratorsAttribute(NetPlan physicalLayer,
int lpId)
Returns the sequence of regenerators/wavelength converters for the given lightpath.
|
static int[] |
WDMUtils.getProtectionLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId)
Returns the sequence of wavelengths for a given protection lightpath.
|
static int[] |
WDMUtils.getRegeneratorOccupancy(NetPlan physicalLayer)
Returns the number of regenerators installed per node.
|
static double[][] |
IPUtils.getRoutingTableMatrix(NetPlan netPlan)
Obtains a destination-based routing from a given network design.
|
static java.util.List<java.util.Set<java.lang.Integer>> |
WDMUtils.getWavelengthOccupancy(NetPlan physicalLayer)
Returns the set of used wavelengths per fiber.
|
static boolean |
GraphUtils.hasRoutingLoops(NetPlan netPlan,
GraphUtils.CheckRoutingCycleType checkCycles)
Indicates whether routing has loops (a node is visited more than once).
|
static boolean |
GraphUtils.isBidirectional(NetPlan netPlan)
Checks whether the physical topology has the same number of links between each node pair in both directions (assuming multi-digraphs).
|
static boolean |
GraphUtils.isConnected(NetPlan netPlan)
Check whether the physical topology is connected, that is, if it is possible to connect every node to each other.
|
static boolean |
GraphUtils.isConnected(NetPlan netPlan,
int[] nodes)
Check whether the physical topology is connected, that is, if it is possible to connect every node to each other, but only in a subset of nodes (subgraph).
|
static boolean |
GraphUtils.isSimple(NetPlan netPlan)
Check whether the physical topology is simple, that is, if it has at most one unidirectional link from a node to each other.
|
static boolean |
GraphUtils.isWeightedBidirectional(NetPlan netPlan,
double[] linkWeight)
Checks whether the physical topology has the same number of links between each node pair in both directions (assuming multi-digraphs) and same weights per direction.
|
static double[] |
TrafficMatrixGenerationModels.normalizeTraffic_linkCapacity_xde(NetPlan netPlan,
java.lang.String solverName,
java.lang.String solverLibraryName)
Returns the maximum scaled version of the offered traffic vector that
can be carried by the network, provided that no link is oversubscribed.
|
static double[] |
TrafficMatrixGenerationModels.normalizeTraffic_networkCapacity(NetPlan netPlan,
Constants.ShortestPathType shortestPathType)
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 |
WDMUtils.setFiberNumWavelengthsAttributes(NetPlan physicalLayer,
int numWavelengths)
Sets the number of wavelengths available on each fiber to the same value.
|
static void |
WDMUtils.setFiberNumWavelengthsAttributes(NetPlan physicalLayer,
int[] w_f)
Sets the number of wavelengths available on each fiber.
|
static void |
WDMUtils.setLightpathSeqRegeneratorsAttribute(NetPlan physicalLayer,
int lpId,
int[] seqRegenerators)
Sets the sequence of regenerators/wavelength converters for a given lightpath.
|
static void |
WDMUtils.setLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId,
int wavelengthId)
Sets the current wavelength for the given lightpath, assuming no wavelength conversion.
|
static void |
WDMUtils.setLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId,
int[] seqWavelengths)
Sets the sequence of wavelengths for the given lightpath.
|
static void |
IPUtils.setLinkWeightAttributes(NetPlan netPlan,
double linkWeight)
Adds a 'linkWeight' attribute to each link with an associated link weight.
|
static void |
IPUtils.setLinkWeightAttributes(NetPlan netPlan,
double[] linkWeights)
Adds a 'linkWeight' attribute to each link with an associated link weight.
|
static void |
WDMUtils.setProtectionLightpathSeqRegeneratorsAttribute(NetPlan physicalLayer,
int lpId,
int[] seqRegenerators)
Sets the sequence of regenerators/wavelength converters for a given protection lightpath.
|
static void |
WDMUtils.setProtectionLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId,
int wavelengthId)
Sets the sequence of wavelengths for a protection lightpath, assuming no wavelength conversion.
|
static void |
WDMUtils.setProtectionLightpathSeqWavelengthsAttribute(NetPlan physicalLayer,
int lpId,
int[] seqWavelengths)
Sets the sequence of wavelengths for a protection lightpath.
|
static void |
IPUtils.setRoutesFromRoutingTableMatrix(NetPlan netPlan,
double[][] f_te)
Generates routes from the demand set of a given a network design using a given set of routing tables.
|
Modifier and Type | Method and Description |
---|---|
static void |
MultiLayerUtils.checkLayerConsistency(java.util.List<NetPlan> netPlans)
Check for consistency between a list of hierarchical layers.
|
Constructor and Description |
---|
CandidatePathList(NetPlan netPlan,
boolean useRoutesWithinNetPlan,
double[] weights,
java.lang.String... paramValuePairs)
Initializes the candidate path list, computing all the paths for each
demand.
|
CandidatePathList(NetPlan netPlan,
boolean useRoutesWithinNetPlan,
java.lang.String... paramValuePairs)
Initializes the candidate path list, computing all the paths for each
demand.
|
CandidatePathList(NetPlan netPlan,
double[] weights,
java.lang.String... paramValuePairs)
Initializes the candidate path list, computing all the paths for each
demand.
|
CandidatePathList(NetPlan netPlan,
java.io.File f)
Initializes the candidate path list, previously stored in a system file.
|
CandidatePathList(NetPlan netPlan,
java.lang.String... paramValuePairs)
Initializes the candidate path list, computing all the paths for each
demand.
|
NetworkPerformanceMetrics(NetPlan netPlan,
java.util.Map<java.lang.String,java.lang.String> net2planParameters,
java.lang.String... paramValuePairs)
Default constructor.
|