Class DelegatingEdgeCreator

java.lang.Object
repast.simphony.xml.DelegatingEdgeCreator
All Implemented Interfaces:
EdgeCreator

public class DelegatingEdgeCreator extends Object implements EdgeCreator
Edge creator that delegates the actual edge creation to a specified delegate.
Author:
Nick Collier
  • Constructor Details

    • DelegatingEdgeCreator

      public DelegatingEdgeCreator()
  • Method Details

    • initDelegate

      public void initDelegate(EdgeCreator delegate)
      Sets the delegate to the specified EdgeCreator.
      Parameters:
      delegate -
    • getEdgeType

      public Class<?> getEdgeType()
      Description copied from interface: EdgeCreator
      Gets the edge type produced by this EdgeCreator.
      Specified by:
      getEdgeType in interface EdgeCreator
      Returns:
      the edge type produced by this EdgeCreator.
    • createEdge

      public RepastEdge<?> createEdge(Object source, Object target, boolean isDirected, double weight)
      Description copied from interface: EdgeCreator
      Creates an Edge with the specified source, target, direction and weight.
      Specified by:
      createEdge in interface EdgeCreator
      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.