Class GraphIteratorEvent.PathFetched<N,​E>

java.lang.Object
xyz.cofe.collection.graph.GraphIteratorEvent<N,​E>
xyz.cofe.collection.graph.GraphIteratorEvent.PathFetched<N,​E>
Type Parameters:
N - Тип вершины
E - Тип ребра
Enclosing class:
GraphIteratorEvent<N,​E>

public static class GraphIteratorEvent.PathFetched<N,​E>
extends GraphIteratorEvent<N,​E>
Событие получения очередного пути в графе
  • Nested Class Summary

    Nested classes/interfaces inherited from class xyz.cofe.collection.graph.GraphIteratorEvent

    GraphIteratorEvent.FetchFinish<N,​E>, GraphIteratorEvent.PathFetched<N,​E>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Path<N,​E> path  
    protected boolean terminal  

    Fields inherited from class xyz.cofe.collection.graph.GraphIteratorEvent

    iterator
  • Constructor Summary

    Constructors 
    Constructor Description
    PathFetched​(GraphIterator<N,​E> iterator, Path<N,​E> path)  
  • Method Summary

    Modifier and Type Method Description
    Path<N,​E> getPath()
    Возвращает очередной путь
    boolean isTerminal()
    Указывает является ли путь терминальным - т.е. из данного пути нет исходящих вершин
    void setTerminal​(boolean terminal)
    Указывает является ли путь терминальным - т.е. из данного пути нет исходящих вершин

    Methods inherited from class xyz.cofe.collection.graph.GraphIteratorEvent

    getIterator

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getPath

      public Path<N,​E> getPath()
      Возвращает очередной путь
      Returns:
      путь
    • isTerminal

      public boolean isTerminal()
      Указывает является ли путь терминальным - т.е. из данного пути нет исходящих вершин
      Returns:
      true - путь терминальный
    • setTerminal

      public void setTerminal​(boolean terminal)
      Указывает является ли путь терминальным - т.е. из данного пути нет исходящих вершин
      Parameters:
      terminal - true - путь терминальный