public interface IReport
extends com.net2plan.internal.IExternal
Contract that must be fulfilled such that a report can be run in Net2Plan
.
Integration of new reports follows a similar scheme as for IAlgorithm
.
Modifier and Type | Method and Description |
---|---|
String |
executeReport(NetPlan netPlan,
Map<String,String> reportParameters,
Map<String,String> net2planParameters)
Executes a 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.
|
String |
getTitle()
Returns the title.
|
String executeReport(NetPlan netPlan, Map<String,String> reportParameters, Map<String,String> net2planParameters)
netPlan
- A network planreportParameters
- A key-value map with specific report parameters.
Important: The algorithm developer is responsible to convert values from String to their respective type, and to check that values
net2planParameters
- A key-value map with Net2Plan
-wide configuration optionsString
with HTML codeString getDescription()
getDescription
in interface com.net2plan.internal.IExternal
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.
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
String getTitle()
Copyright © 2018. All rights reserved.