|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.repository.tomography.utils.LinkTrafficMatrix
public class LinkTrafficMatrix
A data structure (Square Matrix) for representation of link-to-link traffic matrices. This struture is associated with a LinkLoadData structure that contain all the info about the link in the matrix.
Creation date: 29-mars-2006
Constructor Summary | |
---|---|
LinkTrafficMatrix(LinkLoadData linkData)
|
Method Summary | |
---|---|
TrafficMatrix |
convertToNodeTM(Domain domain)
This method convert the link traffic matrix in a node traffic matrix |
int |
length()
As the traffic matrix is square only one dimension is needed |
void |
print()
This method print the link traffic matrix |
void |
setElement(int orig,
int dest,
double value)
This method is used to set a cell in the link tm |
void |
setElement(java.lang.String orig,
java.lang.String dest,
double value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkTrafficMatrix(LinkLoadData linkData)
linkData
- The structure containing all info about link (SNMP way)Method Detail |
---|
public void setElement(int orig, int dest, double value) throws NotYetImplementedException
orig
- the int id of the orig link (id is the same as in the
linkLoadData structure)dest
- the int id of the dest link (id is the same as in the
linkLoadData structure)value
- the value to set
NotYetImplementedException
public void setElement(java.lang.String orig, java.lang.String dest, double value)
orig
- the id of the orig linkdest
- the id of the dest linkvalue
- the value to setpublic int length()
public TrafficMatrix convertToNodeTM(Domain domain) throws InvalidDomainException, NodeNotFoundException
domain
- the domain where the tm is computed
InvalidDomainException
NodeNotFoundException
public void print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |