Package repast.simphony.space.graph
Class RepastEdge<T>
- java.lang.Object
-
- repast.simphony.space.graph.RepastEdge<T>
-
- Direct Known Subclasses:
Link
,TrackingEdge
public class RepastEdge<T> extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepastEdge()
RepastEdge(T source, T target, boolean directed)
RepastEdge(T source, T target, boolean directed, double weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getSource()
Get the source of this edge.T
getTarget()
Gets the target of this edge.double
getWeight()
Gets the weight of this edge.boolean
isDirected()
protected void
setDirected(boolean directed)
void
setWeight(double weight)
Sets the weight of this edge.
-
-
-
Method Detail
-
getWeight
public double getWeight()
Gets the weight of this edge.- Returns:
- the weight of this edge.
-
setDirected
protected void setDirected(boolean directed)
-
getSource
public T getSource()
Get the source of this edge.- Returns:
- the source of this edge.
-
getTarget
public T getTarget()
Gets the target of this edge.- Returns:
- the target of this edge.
-
isDirected
public boolean isDirected()
- Returns:
- true if this edge is directed, otherwise false.
-
setWeight
public void setWeight(double weight)
Sets the weight of this edge.- Parameters:
weight
- the weight edge
-
-