Package repast.simphony.space.graph
Class RepastEdge<T>
java.lang.Object
repast.simphony.space.graph.RepastEdge<T>
- Direct Known Subclasses:
Link,TrackingEdge
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRepastEdge(T source, T target, boolean directed) RepastEdge(T source, T target, boolean directed, double weight) -
Method Summary
Modifier and TypeMethodDescriptionGet the source of this edge.Gets the target of this edge.doubleGets the weight of this edge.booleanprotected voidsetDirected(boolean directed) voidsetWeight(double weight) Sets the weight of this edge.
-
Field Details
-
source
-
target
-
directed
protected boolean directed
-
-
Constructor Details
-
RepastEdge
protected RepastEdge() -
RepastEdge
-
RepastEdge
-
-
Method Details
-
getWeight
public double getWeight()Gets the weight of this edge.- Returns:
- the weight of this edge.
-
setDirected
protected void setDirected(boolean directed) -
getSource
Get the source of this edge.- Returns:
- the source of this edge.
-
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
-