public interface IConnectionEventGenerator
Contract that must be fulfilled such that a connection event generator can be run in the Connection simulator
included within Net2Plan
.
Modifier and Type | Method and Description |
---|---|
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.
|
List<CACEvent> |
initialize(NetPlan netPlan,
ConnectionNetState netState,
Map<String,String> algorithmParameters,
Map<String,String> net2planParameters)
Initializes the connection generator (i.e. reading input parameters)
|
List<CACEvent> |
processEvent(NetPlan netPlan,
ConnectionNetState netState,
CACEvent event)
Processes a new event.
|
String getDescription()
List<Triple<String,String,String>> getParameters()
List<CACEvent> 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<CACEvent> 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)