org.javanetworkanalyzer.model
Class Edge<E extends Edge>

java.lang.Object
  extended by org.jgrapht.graph.DefaultEdge
      extended by org.jgrapht.graph.DefaultWeightedEdge
          extended by org.javanetworkanalyzer.model.Edge<E>
All Implemented Interfaces:
Serializable, Cloneable, EdgeID, EdgeSPT<E>
Direct Known Subclasses:
EdgeCent

public class Edge<E extends Edge>
extends org.jgrapht.graph.DefaultWeightedEdge
implements EdgeSPT<E>, EdgeID

Weighted edge for use in TraversalGraph.

Author:
Adam Gouge
See Also:
Serialized Form

Constructor Summary
Edge()
           
 
Method Summary
 E getBaseGraphEdge()
           
 int getID()
          Get this edge's id.
protected  double getWeight()
           
 void setBaseGraphEdge(E edgeCent)
           
 void setID(int id)
          Set this edge's id.
 Edge setWeight(double newWeight)
          Sets the weight of this edge.
 
Methods inherited from class org.jgrapht.graph.DefaultEdge
getSource, getTarget, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge()
Method Detail

setWeight

public Edge setWeight(double newWeight)
Sets the weight of this edge.


getWeight

protected double getWeight()
Overrides:
getWeight in class org.jgrapht.graph.DefaultWeightedEdge

getBaseGraphEdge

public E getBaseGraphEdge()
Specified by:
getBaseGraphEdge in interface EdgeSPT<E extends Edge>

setBaseGraphEdge

public void setBaseGraphEdge(E edgeCent)
Specified by:
setBaseGraphEdge in interface EdgeSPT<E extends Edge>

getID

public int getID()
Description copied from interface: EdgeID
Get this edge's id.

Specified by:
getID in interface EdgeID
Returns:
This edge's id

setID

public void setID(int id)
Description copied from interface: EdgeID
Set this edge's id.

Specified by:
setID in interface EdgeID
Parameters:
id - The id to set


Copyright © 2014. All Rights Reserved.