be.ac.ulg.montefiore.run.totem.trafficMatrix.model
Interface LoadData

All Known Subinterfaces:
CosIPLoadData, CosLoadData, CosMPLSLoadData, HybridLoadData, IPLoadData, MPLSLoadData
All Known Implementing Classes:
AbstractLoadData, SettableCosMPLSLoadData, SettableHybridLoadData, SettableIPLoadData

public interface LoadData

Represent a view of the computed load for links in a domain.

Creation date: 29/01/2008

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
 void addListener(LoadDataListener listener)
          Adds a listener that signals change in the data.
 double getDroppedTraffic()
          Gets the total dropped traffic.
 double getDroppedTraffic(Node node)
          Gets total traffic dropped at node node.
 TrafficMatrix getDroppedTrafficMatrix()
          Returns a new traffic matrix whose value for (src, dst) corresponds to the total dropped traffic when routing traffic from src to dst.
 TrafficMatrix getDroppedTrafficMatrix(Node node)
          Returns a new traffic matrix whose value for (src, dst) corresponds to the traffic dropped by node node when routing traffic from src to dst.
 double[] getLoad()
          Returns an newly created array that represent links load.
 double getLoad(Link link)
          Returns the load calculated for the given link or 0 if the link is not found.
 double[] getUtilization()
          Returns an newly created array that represent links utilisation (link load / link cpacity).
 double getUtilization(Link link)
          Returns the utilisation calculated for the given link or 0 if the link is not found.
 void notifyDataChange()
          Tells all the listeners that data has changed.
 void removeListener(LoadDataListener listener)
          Remove a listener.
 

Method Detail

getLoad

double[] getLoad()
Returns an newly created array that represent links load. For each link lnkof class Link in the domain, the corresponding load is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.

Returns:
links load for all links in the domain.

getLoad

double getLoad(Link link)
Returns the load calculated for the given link or 0 if the link is not found.

Parameters:
link -
Returns:
Return the load calculated for the given link.

getUtilization

double[] getUtilization()
Returns an newly created array that represent links utilisation (link load / link cpacity). For each link lnkof class Link in the domain, the corresponding utilisation is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.

Returns:
links load for all links in the domain.

getUtilization

double getUtilization(Link link)
Returns the utilisation calculated for the given link or 0 if the link is not found.

Parameters:
link -
Returns:
Return the utilisation calculated for the given link.

getDroppedTrafficMatrix

TrafficMatrix getDroppedTrafficMatrix(Node node)
Returns a new traffic matrix whose value for (src, dst) corresponds to the traffic dropped by node node when routing traffic from src to dst.

Parameters:
node -
Returns:

getDroppedTrafficMatrix

TrafficMatrix getDroppedTrafficMatrix()
Returns a new traffic matrix whose value for (src, dst) corresponds to the total dropped traffic when routing traffic from src to dst.

Returns:

getDroppedTraffic

double getDroppedTraffic(Node node)
Gets total traffic dropped at node node.

Parameters:
node -
Returns:

getDroppedTraffic

double getDroppedTraffic()
Gets the total dropped traffic.

Returns:

addListener

void addListener(LoadDataListener listener)
Adds a listener that signals change in the data.

Parameters:
listener -

removeListener

void removeListener(LoadDataListener listener)
Remove a listener.

Parameters:
listener -

notifyDataChange

void notifyDataChange()
Tells all the listeners that data has changed.



Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.