Package repast.simphony.space.graph
Class DefaultEdgeCreator<T>
java.lang.Object
repast.simphony.space.graph.DefaultEdgeCreator<T>
- All Implemented Interfaces:
EdgeCreator<RepastEdge<T>,
T>
Default implementation of EdgeCreator that return RepastEdge.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEdge
(T source, T target, boolean isDirected, double weight) Creates an Edge with the specified source, target, direction and weight.Gets the edge type produced by this EdgeCreator.
-
Constructor Details
-
DefaultEdgeCreator
public DefaultEdgeCreator()
-
-
Method Details
-
createEdge
Creates an Edge with the specified source, target, direction and weight.- Specified by:
createEdge
in interfaceEdgeCreator<RepastEdge<T>,
T> - Parameters:
source
- the edge sourcetarget
- the edge targetisDirected
- whether or not the edge is directedweight
- the weight of the edge- Returns:
- the created edge.
-
getEdgeType
Gets the edge type produced by this EdgeCreator.- Specified by:
getEdgeType
in interfaceEdgeCreator<RepastEdge<T>,
T> - Returns:
- the edge type produced by this EdgeCreator.
-