public class Online_evProc_congestionControlDual extends com.net2plan.interfaces.simulation.IEventProcessor
fig_sec10_4_congestionControlDual.m
MATLAB file used for generating the graph/s of the case study in the
book using this algorithm.
To simulate a network with this module, use the Online_evGen_doNothing
generator.
|
Constructor and Description |
---|
Online_evProc_congestionControlDual() |
Modifier and Type | Method and Description |
---|---|
String |
finish(StringBuilder st,
double simTime)
Returns an algorithm-specific report.
|
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 currentNetPlan,
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_congestionControlDual()
public String finish(StringBuilder st, double simTime)
com.net2plan.interfaces.simulation.IEventProcessor
finish
in class com.net2plan.interfaces.simulation.IEventProcessor
st
- Container for the reportsimTime
- Current simulation timenull
, or an empty output
to omit it)public 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 currentNetPlan, 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
currentNetPlan
- 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