Class VertexTraversalEvent<V>

java.lang.Object
java.util.EventObject
org.jgrapht.event.VertexTraversalEvent<V>
Type Parameters:
V - the graph vertex type
All Implemented Interfaces:
java.io.Serializable

public class VertexTraversalEvent<V>
extends java.util.EventObject
A traversal event for a graph vertex.
Author:
Barak Naveh
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected V vertex
    The traversed vertex.

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors 
    Constructor Description
    VertexTraversalEvent​(java.lang.Object eventSource, V vertex)
    Creates a new VertexTraversalEvent.
  • Method Summary

    Modifier and Type Method Description
    V getVertex()
    Returns the traversed vertex.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

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

    • vertex

      protected V vertex
      The traversed vertex.
  • Constructor Details

    • VertexTraversalEvent

      public VertexTraversalEvent​(java.lang.Object eventSource, V vertex)
      Creates a new VertexTraversalEvent.
      Parameters:
      eventSource - the source of the event.
      vertex - the traversed vertex.
  • Method Details

    • getVertex

      public V getVertex()
      Returns the traversed vertex.
      Returns:
      the traversed vertex.