Package repast.simphony.space.graph
Interface EdgeCreator<E extends RepastEdge,T>
- All Known Implementing Classes:
DefaultEdgeCreator,DelegatingEdgeCreator,ReLogoEdgeCreator,TrackingEdgeCreator
public interface EdgeCreator<E extends RepastEdge,T>
Factory class for creating edges.
- Author:
- Nick Collier
-
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.
-
Method Details
-
getEdgeType
Class getEdgeType()Gets the edge type produced by this EdgeCreator.- Returns:
- the edge type produced by this EdgeCreator.
-
createEdge
Creates an Edge with the specified source, target, direction and weight.- Parameters:
source- the edge sourcetarget- the edge targetisDirected- whether or not the edge is directedweight- the weight of the edge- Returns:
- the created edge.
-