public interface ICACAlgorithm
Connection simulator
included within Net2Plan
.Modifier and Type | Method and Description |
---|---|
String |
finish(StringBuilder output,
double simTime)
Returns an algorithm-specific report.
|
String |
getDescription()
Returns the description.
|
List<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(NetPlan netPlan,
ConnectionNetState netState,
Map<String,String> algorithmParameters,
Map<String,String> net2planParameters)
Initializes the CAC algorithm (i.e. reading input parameters).
|
List<CACAction> |
processEvent(NetPlan netPlan,
ConnectionNetState netState,
CACEvent event)
Processes a new event.
|
String getDescription()
List<Triple<String,String,String>> getParameters()
void initialize(NetPlan netPlan, ConnectionNetState netState, Map<String,String> algorithmParameters, Map<String,String> net2planParameters)
netPlan
- Complete network design (including traffic demands)netState
- Current network statealgorithmParameters
- A key-value map with specific algorithm parameters.net2planParameters
- A key-value map with Net2Plan
-wide configuration optionsList<CACAction> processEvent(NetPlan netPlan, ConnectionNetState netState, CACEvent event)
netPlan
- Complete network design (including traffic demands)netState
- Current network stateevent
- A CAC event (connection request, connection release)String finish(StringBuilder output, double simTime)
output
- Container for the reportsimTime
- Current simulation timenull
to omit it)