org.quilt.graph
Class BinaryConnector

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

public class BinaryConnector
extends Connector

A Connector holding two edges. Implementation detail: we assume that in laying out bytecode the 'else' code appears immediately after the if but the 'then' code is accessed using a goto.

Author:
Jim Dixon

Constructor Summary
BinaryConnector(Connector conn, Edge otherE)
           
BinaryConnector(Edge e, Edge otherE)
           
 
Method Summary
 Edge getEdge()
          Get the preferred edge.
 Edge getOtherEdge()
          Get the other edge.
 Vertex getOtherTarget()
          Get the target of the other edge
 Vertex getTarget()
          Get the target of the preferred edge.
 void setOtherTarget(Vertex v)
          Set the target of the other edge.
 void setTarget(Vertex v)
          Change the target of the preferred edge.
 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

BinaryConnector

public BinaryConnector(Edge e,
                       Edge otherE)

BinaryConnector

public BinaryConnector(Connector conn,
                       Edge otherE)
Method Detail

getEdge

public Edge getEdge()
Get the preferred edge.

Specified by:
getEdge in class Connector

getTarget

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

Specified by:
getTarget in class Connector

setTarget

public void setTarget(Vertex v)
Change the target of the preferred edge.

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

getOtherEdge

public Edge getOtherEdge()
Get the other edge.


getOtherTarget

public Vertex getOtherTarget()
Get the target of the other edge


setOtherTarget

public void setOtherTarget(Vertex v)
Set the target of the other edge.



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