public class Online_evProc_ipOverWdm extends com.net2plan.interfaces.simulation.IEventProcessor
Online_evProv_wdm
and Online_evProc_ipOspf
modules. The coordination actions are basically during the
failure processes, propagating the failures and repairs at the WDM layer, as links down/up events in the IP layer.
The algorithm reacts to the following events:
Online_evGen_ipOverWdm
generator for simulating IP over WDM designs.
See the technology conventions used in Net2Plan built-in algorithms and libraries to represent IP and WDM networks.
|
Constructor and Description |
---|
Online_evProc_ipOverWdm() |
Modifier and Type | Method and Description |
---|---|
String |
finish(StringBuilder output,
double simTime)
Returns an algorithm-specific report.
|
void |
finishTransitory(double simTime)
Performs some transitory-finished action.
|
String |
getDescription()
Returns the description.
|
List<com.net2plan.utils.Triple<String,String,String>> |
getParameters()
Returns the list of required parameters, where the first item of each element
is the parameter name, the second one is the parameter value, and the third
one is the parameter description.
|
void |
initialize(com.net2plan.interfaces.networkDesign.NetPlan initialNetPlan,
Map<String,String> algorithmParameters,
Map<String,String> simulationParameters,
Map<String,String> net2planParameters)
Initializes the algorithm (i.e. reading input parameters).
|
void |
processEvent(com.net2plan.interfaces.networkDesign.NetPlan currentNetPlan,
com.net2plan.interfaces.simulation.SimEvent event)
Processes the next event in the future event list.
|
public Online_evProc_ipOverWdm()
public String finish(StringBuilder output, double simTime)
com.net2plan.interfaces.simulation.IEventProcessor
finish
in class com.net2plan.interfaces.simulation.IEventProcessor
output
- Container for the reportsimTime
- Current simulation timenull
, or an empty output
to omit it)public void finishTransitory(double simTime)
com.net2plan.interfaces.simulation.IEventProcessor
finishTransitory
in class com.net2plan.interfaces.simulation.IEventProcessor
simTime
- Current timepublic String getDescription()
com.net2plan.interfaces.simulation.IEventProcessor
getDescription
in interface com.net2plan.internal.IExternal
getDescription
in class com.net2plan.interfaces.simulation.IEventProcessor
public List<com.net2plan.utils.Triple<String,String,String>> getParameters()
com.net2plan.interfaces.simulation.IEventProcessor
Returns the list of required parameters, where the first item of each element is the parameter name, the second one is the parameter value, and the third one is the parameter description.
It is possible to define type-specific parameters if the default value is set according to the following rules (but user is responsible of checking in its own code):
.class
or .jar
file where the code is located, the class name,
and a set of parameters (pair of key-values separated by commas, where individual
key and value are separated with an equal symbol. The same applies to reports (#report#),
event generators (#eventGenerator#) and event processors (#eventProcessor#).getParameters
in interface com.net2plan.internal.IExternal
getParameters
in class com.net2plan.interfaces.simulation.IEventProcessor
public void initialize(com.net2plan.interfaces.networkDesign.NetPlan initialNetPlan, Map<String,String> algorithmParameters, Map<String,String> simulationParameters, Map<String,String> net2planParameters)
com.net2plan.interfaces.simulation.IEventProcessor
initialize
in class com.net2plan.interfaces.simulation.IEventProcessor
initialNetPlan
- Initial network planalgorithmParameters
- A key-value map with specific algorithm parameters.simulationParameters
- A key-value map with simulation parametersnet2planParameters
- A key-value map with Net2Plan
-wide configuration optionspublic void processEvent(com.net2plan.interfaces.networkDesign.NetPlan currentNetPlan, com.net2plan.interfaces.simulation.SimEvent event)
com.net2plan.interfaces.simulation.IEventProcessor
scheduleEvent
method.processEvent
in class com.net2plan.interfaces.simulation.IEventProcessor
currentNetPlan
- Current network planevent
- Current event to be processed