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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description E
createEdge(T source, T target, boolean isDirected, double weight)
Creates an Edge with the specified source, target, direction and weight.Class
getEdgeType()
Gets the edge type produced by this EdgeCreator.
-
-
-
Method Detail
-
getEdgeType
Class getEdgeType()
Gets the edge type produced by this EdgeCreator.- Returns:
- the edge type produced by this EdgeCreator.
-
createEdge
E createEdge(T source, T target, boolean isDirected, double weight)
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.
-
-