be.ac.ulg.montefiore.run.totem.repository.CSPF
Class CSPFElem

java.lang.Object
  extended by 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)

Constructor Summary
CSPFElem(Node node, float cost, Node nextHop, float bandwidth, Link link)
           
 
Method Summary
 void addLink(Link link)
           
 void addNextHop(Node nextHop)
           
 float getBandwidth()
           
 float getCost()
           
 java.lang.String getId()
          Get the id of the object
 float getKey()
          Get the key of the object
 Link getLink()
           
 java.util.List<Link> getLinks()
           
 Node getNextHop()
           
 java.util.List<Node> getNextHops()
           
 Node getNode()
           
 void setBandwidth(float bandwidth)
           
 void setCost(float cost)
           
 void setLink(Link link)
           
 void setNextHop(Node nextHop)
           
 void setNode(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSPFElem

public CSPFElem(Node node,
                float cost,
                Node nextHop,
                float bandwidth,
                Link link)
Method Detail

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.