Class 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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • vertex

        protected V vertex
        The traversed vertex.
    • Constructor Detail

      • 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 Detail

      • getVertex

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