be.ac.ulg.montefiore.run.totem.repository.CSPF
Class CSPFElem
java.lang.Object
be.ac.ulg.montefiore.run.totem.repository.CSPF.CSPFElem
- All Implemented Interfaces:
- PriorityQueueObject
public class CSPFElem
- extends java.lang.Object
- implements PriorityQueueObject
Contains the CSPF 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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSPFElem
public CSPFElem(Node node,
float cost,
Node nextHop,
float bandwidth,
Link link)
getId
public java.lang.String getId()
- Get the id of the object
- Specified by:
getId
in interface PriorityQueueObject
- Returns:
- the object's id
getKey
public float getKey()
- Get the key of the object
- Specified by:
getKey
in interface PriorityQueueObject
- Returns:
- the object's key
getNode
public Node getNode()
setNode
public void setNode(Node node)
getCost
public float getCost()
setCost
public void setCost(float cost)
getNextHop
public Node getNextHop()
setNextHop
public void setNextHop(Node nextHop)
getNextHops
public java.util.List<Node> getNextHops()
addNextHop
public void addNextHop(Node nextHop)
getBandwidth
public float getBandwidth()
setBandwidth
public void setBandwidth(float bandwidth)
addLink
public void addLink(Link link)
getLinks
public java.util.List<Link> getLinks()
getLink
public Link getLink()
setLink
public void setLink(Link link)
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.