org.javanetworkanalyzer.model
Class Edge<E extends Edge>
java.lang.Object
org.jgrapht.graph.DefaultEdge
org.jgrapht.graph.DefaultWeightedEdge
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()
|
| Methods inherited from class org.jgrapht.graph.DefaultEdge |
getSource, getTarget, toString |
Edge
public Edge()
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.