be.ac.ulg.montefiore.run.totem.repository.tomography.utils
Class LinkData
java.lang.Object
be.ac.ulg.montefiore.run.totem.repository.tomography.utils.LinkData
public class LinkData
- extends java.lang.Object
This data structure reprensent all the necessary info about a link for
tomogravity purpose
Creation date: 29-mars-2006
- Author:
- Quentin Chevalier (quentin.chevalier@gmail.com)
Constructor Summary |
LinkData(double[] linkLoad,
java.lang.String linkType,
java.lang.String nodeInId,
java.lang.String nodeOutId,
java.lang.String way,
long timeIndex,
int step)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkData
public LinkData(double[] linkLoad,
java.lang.String linkType,
java.lang.String nodeInId,
java.lang.String nodeOutId,
java.lang.String way,
long timeIndex,
int step)
throws NotYetImplementedException
- Parameters:
linkLoad
- The array representing all snmp linkcount during timelinkType
- The type of the link (TYPE_CORE, TYPE_PEERING, TYPE_ACCESS)idStr
- The name of the linknodeInId
- The name of the node that is the source of the linknodeOutId
- The name of the node that is the destination of the linknodeInTypeStr
- The name of the node that is the source of the link (TYPE_CORE, TYPE_EDGE)nodeOutTypeStr
- The name of the node that is the source of the link (TYPE_CORE, TYPE_EDGE)
- Throws:
NotYetImplementedException
addLinkData
public void addLinkData(LinkData linkToAdd)
throws NotYetImplementedException
- This method is used to merge the linkcount array of two link with the same info
- Parameters:
linkToAdd
- the link with linkcount to add merge
- Throws:
NotYetImplementedException
getElement
public double getElement(int timeIndex)
throws NotYetImplementedException
- This method can retrieve the link Load of the link at a known time
- Parameters:
timeIndex
- The indexed value at witch we want the linkLoad
- Returns:
- The element at the position
timeIndex
- Throws:
NotYetImplementedException
getElement
public double getElement(long time)
getNbSample
public int getNbSample()
- Returns:
- The number of sample contained in the node
getId
public java.lang.String getId()
- Returns:
- Return the Link id
getSrcNode
public java.lang.String getSrcNode()
- Returns:
- Return the id of the source node of the link
getDstNode
public java.lang.String getDstNode()
- Returns:
- Return the id of the destination node of the link
getType
public java.lang.String getType()
- Returns:
- Return the type of the node (TYPE_CORE, TYPE_PEERING, TYPE_ACCESS)
getLinkWay
public java.lang.String getLinkWay()
- Returns:
- Returns the linkWay.
getTimeIndex
public long getTimeIndex()
- Returns:
- Returns the internalTimeIndex.
getStep
public int getStep()
- Returns:
- Returns the internalIndexStep.
print
public void print()
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.