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 Type
    Method
    Description
    createEdge(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

      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 source
      target - the edge target
      isDirected - whether or not the edge is directed
      weight - the weight of the edge
      Returns:
      the created edge.