Package org.jgrapht.event
Class EdgeTraversalEvent<E>
- java.lang.Object
-
- java.util.EventObject
-
- org.jgrapht.event.EdgeTraversalEvent<E>
-
- Type Parameters:
E
- the graph edge type
- All Implemented Interfaces:
java.io.Serializable
public class EdgeTraversalEvent<E> extends java.util.EventObject
A traversal event for a graph edge.- Author:
- Barak Naveh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EdgeTraversalEvent(java.lang.Object eventSource, E edge)
Creates a new EdgeTraversalEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getEdge()
Returns the traversed edge.
-
-
-
Field Detail
-
edge
protected E edge
The traversed edge.
-
-
Constructor Detail
-
EdgeTraversalEvent
public EdgeTraversalEvent(java.lang.Object eventSource, E edge)
Creates a new EdgeTraversalEvent.- Parameters:
eventSource
- the source of the event.edge
- the traversed edge.
-
-
Method Detail
-
getEdge
public E getEdge()
Returns the traversed edge.- Returns:
- the traversed edge.
-
-