|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ulg.montefiore.run.totem.chart.model.collectors.LinksLoadDataCollector
public class LinksLoadDataCollector
Compute the load of the links of a domain given a traffic matrix. The domain is, by default, the default domain at instantiation time. This can be overriden by a call to setParameters. The traffic matrix used is the one given to collectData or the default one if none is provided to collectData.
Creation date: 20 d�c. 2005
Constructor Summary | |
---|---|
LinksLoadDataCollector()
|
Method Summary | |
---|---|
double[] |
collectData(java.util.HashMap<java.lang.String,java.lang.String> params)
return a vector of link load computed with the given trafficMatrix using a SPF strategy. |
java.util.List<ParameterDescriptor> |
getDataParameters()
returns a list of parameters that can be given to the collectData method |
java.lang.String |
getDefaultSeriesName()
Returns the identifier of the default link load computer as default series name |
java.util.List<ParameterDescriptor> |
getParameters()
returns a list of parameters that can be given to the setParameters method |
void |
setParameters(java.util.HashMap<java.lang.String,java.lang.String> params)
The parameters are - asId : specify the asId of the domain to use for data collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinksLoadDataCollector()
Method Detail |
---|
public void setParameters(java.util.HashMap<java.lang.String,java.lang.String> params) throws ChartParameterException
setParameters
in interface ChartDataCollector
params
-
ChartParameterException
- if the given domain is not found in the InterDomainManagerpublic double[] collectData(java.util.HashMap<java.lang.String,java.lang.String> params) throws ChartParameterException
collectData
in interface ChartDataCollector
params
- : linkLoadComputerId (optional), id of the LinkLoadComputer object. If this parameter is set,
the others are ignored and the load is taken from an existing linkLoadComputer object.
tmId (optional), trafficMatrix id. The matrix must be loaded in the TraffixMatrixManager.
If ommitted, the default trafficatrix is used.
routingAlgo (optional), SPF routing algorihtm. The algorithm must be loaded in the repositoryManager
If ommited, default CSPF is used.
strategy (optional), the strategy to use. Can be IP for SPFLinkLoadStrategy or BIS for BasicIGPShortcut.
If ommited, IP is used.
ECMP (optional), Equal cost multi path. Can be true or false for enabled or disabled.
If ommited, disabled by default.
ChartParameterException
- if tmId is NaN or the corresponding TrafficMatrix is not loaded, or if the domain is nullpublic java.util.List<ParameterDescriptor> getDataParameters()
ChartDataCollector
getDataParameters
in interface ChartDataCollector
public java.lang.String getDefaultSeriesName()
getDefaultSeriesName
in interface ChartDataCollector
public java.util.List<ParameterDescriptor> getParameters()
ChartDataCollector
getParameters
in interface ChartDataCollector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |