|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadData
Represent a view of the computed load for links in a domain.
Creation date: 29/01/2008
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 |
---|
double[] getLoad()
lnk
of class Link in the domain,
the corresponding load is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.
double getLoad(Link link)
link
-
double[] getUtilization()
lnk
of class Link in the domain,
the corresponding utilisation is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.
double getUtilization(Link link)
link
-
TrafficMatrix getDroppedTrafficMatrix(Node node)
node
when routing traffic from src to dst.
node
-
TrafficMatrix getDroppedTrafficMatrix()
double getDroppedTraffic(Node node)
node
.
node
-
double getDroppedTraffic()
void addListener(LoadDataListener listener)
listener
- void removeListener(LoadDataListener listener)
listener
- void notifyDataChange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |