be.ac.ulg.montefiore.run.totem.repository.CSPF
Class BhandariElem
java.lang.Object
be.ac.ulg.montefiore.run.totem.repository.CSPF.BhandariElem
- All Implemented Interfaces:
- PriorityQueueObjectInt
public class BhandariElem
- extends java.lang.Object
- implements PriorityQueueObjectInt
Contains the Bhandari information
This class is used to populate a priority queue structure and implement the
PriorityQueueObject
.
Creation date: 1-Jan-2004
- Author:
- Fabian Skivee (skivee@run.montefiore.ulg.ac.be)
Constructor Summary |
BhandariElem(int nodeId,
float cost,
int nextHop,
float bandwidth,
int linkId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BhandariElem
public BhandariElem(int nodeId,
float cost,
int nextHop,
float bandwidth,
int linkId)
getId
public int getId()
- Get the id of the object
- Specified by:
getId
in interface PriorityQueueObjectInt
- Returns:
- the object's id
getKey
public double getKey()
- Get the key of the object
- Specified by:
getKey
in interface PriorityQueueObjectInt
- Returns:
- the object's key
getNodeId
public int getNodeId()
setNodeId
public void setNodeId(int nodeId)
getCost
public float getCost()
getNextHop
public int getNextHop()
getBandwidth
public float getBandwidth()
getLinkId
public int getLinkId()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.