|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.trafficMatrix.model.AbstractLoadData
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.SettableHybridLoadData
public class SettableHybridLoadData
Class to represent IP and MPLS load separately. With this class, traffic is always considered to be dropped at source node.
Creation date: 29/01/2008
Constructor Summary | |
---|---|
SettableHybridLoadData(Domain domain)
|
Method Summary | |
---|---|
void |
addDroppedTraffic(Node src,
Node dst,
double traffic)
Add traffic from flows from src to dst dropped at node src. |
void |
addIPTraffic(Link link,
double traffic)
Add some ip traffic on the given link. |
void |
addMPLSTraffic(Lsp lsp,
double traffic)
Add traffic follow the working path of the lsp. |
void |
clear()
Clear the data and rebuild data structures. |
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[] |
getIPLoad()
Same as LoadData.getLoad() but returns only the ip load. |
double |
getIPLoad(Link link)
Same as LoadData.getLoad(be.ac.ulg.montefiore.run.totem.domain.model.Link) but returns the only the ip load
(traffic not routed on LSPs). |
double[] |
getLoad()
Returns an newly created array that represent links load. |
double |
getLoad(Link lnk)
Returns the load calculated for the given link or 0 if the link is not found. |
double[] |
getMPLSLoad()
Same as LoadData.getLoad() but returns the only the mpls load
(traffic that is routed on LSPs). |
double |
getMPLSLoad(Link link)
Same as LoadData.getLoad(be.ac.ulg.montefiore.run.totem.domain.model.Link) but returns the only the mpls load
(traffic that is routed on LSPs). |
double |
getMPLSLoad(Lsp lsp)
Returns an newly created array that represent load on the lsp. |
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. |
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.AbstractLoadData |
---|
addListener, notifyDataChange, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LoadData |
---|
addListener, notifyDataChange, removeListener |
Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LoadData |
---|
addListener, notifyDataChange, removeListener |
Constructor Detail |
---|
public SettableHybridLoadData(Domain domain)
Method Detail |
---|
public void clear()
public void addMPLSTraffic(Lsp lsp, double traffic)
lsp
- traffic
- public void addIPTraffic(Link link, double traffic)
link
- traffic
- public void addDroppedTraffic(Node src, Node dst, double traffic)
src
- dst
- traffic
- public double[] getLoad()
LoadData
lnk
of class Link in the domain,
the corresponding load is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.
getLoad
in interface LoadData
public double getLoad(Link lnk)
LoadData
getLoad
in interface LoadData
public double[] getUtilization()
LoadData
lnk
of class Link in the domain,
the corresponding utilisation is located at the index domain.getConvertor().getLinkId(lnk.getId()) of the returned array.
getUtilization
in interface LoadData
public double getUtilization(Link link)
LoadData
getUtilization
in interface LoadData
public double[] getIPLoad()
IPLoadData
LoadData.getLoad()
but returns only the ip load.
(traffic not routed on LSPs).
getIPLoad
in interface IPLoadData
public TrafficMatrix getDroppedTrafficMatrix()
LoadData
getDroppedTrafficMatrix
in interface LoadData
public TrafficMatrix getDroppedTrafficMatrix(Node node)
LoadData
node
when routing traffic from src to dst.
getDroppedTrafficMatrix
in interface LoadData
public double getDroppedTraffic(Node node)
LoadData
node
.
getDroppedTraffic
in interface LoadData
public double getDroppedTraffic()
LoadData
getDroppedTraffic
in interface LoadData
public double getIPLoad(Link link)
IPLoadData
LoadData.getLoad(be.ac.ulg.montefiore.run.totem.domain.model.Link)
but returns the only the ip load
(traffic not routed on LSPs).
getIPLoad
in interface IPLoadData
public double[] getMPLSLoad()
MPLSLoadData
LoadData.getLoad()
but returns the only the mpls load
(traffic that is routed on LSPs).
getMPLSLoad
in interface MPLSLoadData
public double getMPLSLoad(Link link)
MPLSLoadData
LoadData.getLoad(be.ac.ulg.montefiore.run.totem.domain.model.Link)
but returns the only the mpls load
(traffic that is routed on LSPs).
getMPLSLoad
in interface MPLSLoadData
public double getMPLSLoad(Lsp lsp)
MPLSLoadData
lsp
in the domain,
the corresponding load is located at the index domain.getConvertor().getLspId(lsp.getId()) of the returned array.
The load corresponds to the traffic routed on the working path
(Lsp.getWorkingPath()
) of the lsp at the moment of
creation of the data. It is to the user to ensure that the working path hasn't changed since.
getMPLSLoad
in interface MPLSLoadData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |