JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class AcceptableSecondVertex

java.lang.Object
  extended bygov.nasa.javaGenes.graph.AcceptableSecondVertex
All Implemented Interfaces:
Predicate, java.io.Serializable

public class AcceptableSecondVertex
extends java.lang.Object
implements Predicate

Used to find a vertex to make an edge to.

See Also:
Serialized Form

Field Summary
protected  Vertex vertex
          vertex seeking a vertex to have an edge with
 
Constructor Summary
AcceptableSecondVertex(Vertex v)
           
 
Method Summary
 boolean execute(java.lang.Object object)
          executes this predicate on object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertex

protected Vertex vertex
vertex seeking a vertex to have an edge with

Constructor Detail

AcceptableSecondVertex

public AcceptableSecondVertex(Vertex v)
Parameters:
v - seeking a vertex to have an edge with
Method Detail

execute

public boolean execute(java.lang.Object object)
Description copied from interface: Predicate
executes this predicate on object

Specified by:
execute in interface Predicate
Parameters:
object - Vertex object. Can this be connected to vertex with an edge?

JavaGenes, NASA Ames. Written largely by Al Globus