Interface DynamicDepthUpdater<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>

  • Type Parameters:
    PT - is the type of node in the graph
    ST - is the type of edge in the graph
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface DynamicDepthUpdater<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>
    This interface represents an dynamic updater of the iterator depth that is used when iterating on graph elements.
    Since:
    16.0
    Version:
    17.0 2020-01-04 14:41:42
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathgraph
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double updateDepth​(ST previousSegment, ST segment, PT point, double distanceToReach, double distanceToConsume)
      Invoked when a segment was added to a subgraph.
    • Method Detail

      • updateDepth

        double updateDepth​(ST previousSegment,
                           ST segment,
                           PT point,
                           double distanceToReach,
                           double distanceToConsume)
        Invoked when a segment was added to a subgraph.
        Parameters:
        previousSegment - is the previous element that permits to reach this object during an iteration
        segment - is the current segment
        point - is the point on which the iteration arrived on the current segment.
        distanceToReach - is the distance that is already consumed to reach the segment.
        distanceToConsume - is the rest of distance to consume including the segment.
        Returns:
        the new depth.