org.progeeks.graph
Interface EdgeDefinition

All Superinterfaces:
org.apache.commons.collections.Predicate
All Known Implementing Classes:
DefaultEdgeDefinition, SimpleEdgeDefinition

public interface EdgeDefinition
extends org.apache.commons.collections.Predicate

Associates a traverser filter with the ability to create new edges that match that filter. This is used as the backing for a graph-based meta-object that can be used to provide a mutable meta-object view of a node in a graph.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Method Summary
 boolean evaluate(java.lang.Object obj)
          Evaluates an edge to see if it matches this edge definition.
 java.lang.Object getEdgeUserObject(java.lang.Object tail, java.lang.Object head)
          Capable of creating user objects appropriate for edges of the type associated with this edge defition.
 org.apache.commons.collections.Predicate getTraverserPredicate()
          Returns a filter capable of filtering edges of the type associated with this edge definition.
 boolean isDirected()
          Returns true if the edges are directed.
 

Method Detail

getTraverserPredicate

org.apache.commons.collections.Predicate getTraverserPredicate()
Returns a filter capable of filtering edges of the type associated with this edge definition.


evaluate

boolean evaluate(java.lang.Object obj)
Evaluates an edge to see if it matches this edge definition. This is suitable for passing to getEdge(), edgeIterator(), etc..

Specified by:
evaluate in interface org.apache.commons.collections.Predicate

isDirected

boolean isDirected()
Returns true if the edges are directed.


getEdgeUserObject

java.lang.Object getEdgeUserObject(java.lang.Object tail,
                                   java.lang.Object head)
Capable of creating user objects appropriate for edges of the type associated with this edge defition.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.