Class DelegatingEdgeCreator

  • All Implemented Interfaces:

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

      • DelegatingEdgeCreator

        public DelegatingEdgeCreator()
    • Method Detail

      • initDelegate

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

        public Class<?> getEdgeType()
        Description copied from interface: EdgeCreator
        Gets the edge type produced by this EdgeCreator.
        Specified by:
        getEdgeType in interface EdgeCreator
        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
        source - the edge source
        target - the edge target
        isDirected - whether or not the edge is directed
        weight - the weight of the edge
        the created edge.