org.quilt.graph
Class Connector

java.lang.Object
  |
  +--org.quilt.graph.Connector
Direct Known Subclasses:
BinaryConnector, ComplexConnector, MultiConnector, UnaryConnector

public abstract class Connector
extends java.lang.Object

Connector holding one or more edges. Used to connect a vertex to the rest of a graph. There is always a preferred edge which is visited first when walking the graph.

Author:
< a href="jddixon@users.sourceforge.net">Jim Dixon

Constructor Summary
Connector()
           
 
Method Summary
abstract  Edge getEdge()
          Get the outgoing edge.
abstract  Vertex getTarget()
          Get the target of the preferred edge.
abstract  void setTarget(Vertex v)
          Set the target of the connector's preferred edge.
abstract  int size()
          Returns total number of edges in the connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Method Detail

getEdge

public abstract Edge getEdge()
Get the outgoing edge. If this is not a UnaryConnector, this will be the preferred edge. What 'preferred' means depends upon the type of connector.


getTarget

public abstract Vertex getTarget()
Get the target of the preferred edge.


setTarget

public abstract void setTarget(Vertex v)
Set the target of the connector's preferred edge.


size

public abstract int size()
Returns total number of edges in the connector.



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.