org.quilt.graph
Class UnaryConnector

java.lang.Object
  |
  +--org.quilt.graph.Connector
        |
        +--org.quilt.graph.UnaryConnector

public class UnaryConnector
extends Connector

A Connector holding a single edge.

Author:
Jim Dixon

Constructor Summary
UnaryConnector(Edge e)
           
 
Method Summary
 Edge getEdge()
          Get the edge.
 Vertex getTarget()
          Get the target of the connection.
 void setTarget(Vertex v)
          Set the target of the connection.
 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

UnaryConnector

public UnaryConnector(Edge e)
Method Detail

getEdge

public Edge getEdge()
Get the edge.

Specified by:
getEdge in class Connector

getTarget

public Vertex getTarget()
Get the target of the connection. Convenience method.

Specified by:
getTarget in class Connector

setTarget

public void setTarget(Vertex v)
Set the target of the connection. Convenience method.

Specified by:
setTarget in class Connector

size

public int size()
Description copied from class: Connector
Returns total number of edges in the connector.

Specified by:
size in class Connector


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