edu.uci.ics.jung.graph.predicates
Class NotInGraphEdgePredicate

java.lang.Object
  extended byedu.uci.ics.jung.graph.predicates.GPredicate
      extended byedu.uci.ics.jung.graph.predicates.EdgePredicate
          extended byedu.uci.ics.jung.graph.predicates.NotInGraphEdgePredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class NotInGraphEdgePredicate
extends EdgePredicate

A predicate that tests to see whether a specified edge is currently part of a graph. May be used as a constraint. AbstractSparseGraph includes this edge constraint by default. Should not be used as a subset specification.

Author:
Joshua O'Madadhain

Field Summary
 
Fields inherited from class edu.uci.ics.jung.graph.predicates.GPredicate
isInitializationPredicate
 
Constructor Summary
NotInGraphEdgePredicate(ArchetypeGraph ag)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean evaluateEdge(ArchetypeEdge e)
          Returns true if this edge is not currently part of graph ag.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.uci.ics.jung.graph.predicates.EdgePredicate
evaluate
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotInGraphEdgePredicate

public NotInGraphEdgePredicate(ArchetypeGraph ag)
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

evaluateEdge

public boolean evaluateEdge(ArchetypeEdge e)
Returns true if this edge is not currently part of graph ag.

Specified by:
evaluateEdge in class EdgePredicate