org.quilt.graph
Class Exit

java.lang.Object
  |
  +--org.quilt.graph.Vertex
        |
        +--org.quilt.graph.Exit

public class Exit
extends Vertex

An exit vertex in a directed graph. This vertex always has an index of 1.

Author:
Jim Dixon

Field Summary
 
Fields inherited from class org.quilt.graph.Vertex
connector, graph, index, label_
 
Constructor Summary
protected Exit(Directed g)
          Constructor for the exit vertex for a Quilt directed graph.
 
Method Summary
 Connector getConnector()
          Get the connection, back to the entry vertex in a top-level graph.
 Edge getEdge()
          Get the outgoing edge.
 Vertex getTarget()
          Get its target.
 void setTarget(Vertex v)
          Set its target.
 java.lang.String toString()
           
 
Methods inherited from class org.quilt.graph.Vertex
above, checkForNull, getGraph, getIndex, getLabel, makeBinary, makeComplex, makeMulti, setConnector, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exit

protected Exit(Directed g)
Constructor for the exit vertex for a Quilt directed graph. This may be a subgraph. Only the entry vertex should use this constructor.

Parameters:
g - Reference to the parent Directed graph.
Method Detail

getConnector

public Connector getConnector()
Get the connection, back to the entry vertex in a top-level graph. XXX Perhaps we don't want to implement this.

Overrides:
getConnector in class Vertex

getEdge

public Edge getEdge()
Get the outgoing edge.

Overrides:
getEdge in class Vertex

getTarget

public Vertex getTarget()
Get its target.

Overrides:
getTarget in class Vertex

setTarget

public void setTarget(Vertex v)
Set its target.


toString

public java.lang.String toString()
Overrides:
toString in class Vertex
Returns:
A String in parent-index:my-index form.


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