|
||||||||||
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.LinkLoadData
public class LinkLoadData
Class that reprent all the data available about links. These data are collected from snmp There is no check on the validity of timeScale, only at the mapping of 0 is knowned
Creation date: 27-mars-2006
Constructor Summary | |
---|---|
LinkLoadData(int nbLink,
long start,
int nbSample,
int step)
|
Method Summary | |
---|---|
double[] |
getDomainMatrix(int stepFromBegining,
Domain domain)
|
double[] |
getDomainMatrix(long time,
Domain domain)
|
double |
getElement(int linkIndex,
int index)
Method to retreive the linkCount of the link linkName (index) at the
time time |
double |
getElement(int linkIndex,
long time)
Method to retreive the linkCount of the link linkName (index) at the
time time |
double |
getElement(java.lang.String linkName,
int index)
Method to retreive the linkCount of the link linkName at the
time time |
double |
getElement(java.lang.String linkName,
long time)
Method to retreive the linkCount of the link linkName at the
time time |
double |
getInAccess(int timeIndex)
|
int |
getIndex(java.lang.String linkName)
|
double |
getInPeering(int timeIndex)
|
LinkData |
getLink(int linkIndex)
|
LinkData |
getLink(java.lang.String linkName)
|
java.lang.String |
getLinkId(int index)
|
double[] |
getMatrix(int stepFromBegining)
|
double[] |
getMatrix(long time)
|
int |
getNbLink()
|
int |
getNbSample()
|
double |
getNodeLoadIn(java.lang.String nodeId,
int index)
|
double |
getOutAccess(int timeIndex)
|
double |
getOutPeering(int timeIndex)
|
long |
getStartTime()
|
int |
getStep()
|
boolean |
isIndexed(java.lang.String linkName)
|
void |
print()
|
void |
setNextLink(LinkData link)
Add the link at the next position available in the structure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkLoadData(int nbLink, long start, int nbSample, int step)
nbLink
- Number of links indexedstart
- The value of the time index 0end
- The value of the time index nbLink (the last index in fact)Method Detail |
---|
public void setNextLink(LinkData link) throws NotYetImplementedException
link
- The link added
NotYetImplementedException
public LinkData getLink(java.lang.String linkName)
linkName
- The id of the link we want to retreived
public LinkData getLink(int linkIndex)
linkIndex
- The index of the link we want to retreived (for easier access)
public double getElement(java.lang.String linkName, long time) throws NotYetImplementedException
linkName
at the
time time
linkName
- A string representing the id of the linktime
- The time since epoch (1-jan-1970)
linkName
at the time time
NotYetImplementedException
public double getElement(int linkIndex, long time) throws NotYetImplementedException
linkName
(index) at the
time time
linkIndex
- The link index (for a more direct access)time
- The time since epoch (1-jan-1970)
linkName
at the time time
NotYetImplementedException
public double getElement(java.lang.String linkName, int index) throws NotYetImplementedException
linkName
at the
time time
linkName
- A string representing the id of the linkindex
- The index of time expressed in integer (i.e. real time = index * step + startTime)
linkName
at the time time
NotYetImplementedException
public double getElement(int linkIndex, int index) throws NotYetImplementedException
linkName
(index) at the
time time
linkIndex
- The link index (for a more direct access)index
- The index of time expressed in integer (i.e. real time = index * step + startTime)
linkName
at the time time
NotYetImplementedException
public java.lang.String getLinkId(int index)
index
- The index associated with the link we want to know
index
public int getIndex(java.lang.String linkName)
linkName
- The link we want to know the index
linkName
public boolean isIndexed(java.lang.String linkName)
linkName
- The link we want to check the validity
true
if the link is indexed in the data structurepublic double[] getMatrix(long time) throws NotYetImplementedException
time
- The time since epoch (1-jan-1970)
time
NotYetImplementedException
public double[] getMatrix(int stepFromBegining) throws NotYetImplementedException
stepFromBegining
- The time in term of index
stepFromBegining
NotYetImplementedException
public double[] getDomainMatrix(long time, Domain domain) throws NotYetImplementedException
time
- The time since epoch (1-jan-1970)domain
- the domain where we compute the linkload
time
with only link in the domain
NotYetImplementedException
public double[] getDomainMatrix(int stepFromBegining, Domain domain) throws NotYetImplementedException
stepFromBegining
- The time in term of indexdomain
- the domain where we compute the linkload
stepFromBegining
with only link in the domain
NotYetImplementedException
public int getNbSample()
public int getNbLink()
public long getStartTime()
public int getStep()
public double getInAccess(int timeIndex)
public double getInPeering(int timeIndex)
public double getOutAccess(int timeIndex)
public double getOutPeering(int timeIndex)
public void print()
public double getNodeLoadIn(java.lang.String nodeId, int index) throws NotYetImplementedException
NotYetImplementedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |