| java.lang.Object org.quilt.graph.Connector org.quilt.graph.ComplexConnector
ComplexConnector | public class ComplexConnector extends Connector (Code) | | A Connector holding a single edge plus a fixed size array of edges.
This is a combination of the UnaryConnector and MultiConnector.
author: Jim Dixon |
Method Summary | |
public Edge | getEdge() Get the single edge. | public Edge | getEdge(int n) Get the Nth edge from the array. | public Vertex | getTarget() Get the target of the single edge. | public Vertex | getTarget(int n) Get the target of the Nth edge. | public void | setTarget(Vertex v) Change the target of the single edge. | public void | setTarget(Vertex v, int n) Change the target of the Nth edge. | public int | size() Returns the number of edges in the connector EXCLUDING the
preferred edge. |
ComplexConnector | public ComplexConnector(Edge e, int n)(Code) | | Constructor for a Connector with a single edge plus a fixed-size
array of edges. The source of the single edge becomes the source
of the array of edges. All edges in the array are set to point
to the graph exit.
Parameters: e - Becomes preferred edge of the connector. Parameters: n - Number of edges in the array Parameters: graph - Graph this appears in. |
getEdge | public Edge getEdge()(Code) | | Get the single edge.
|
getEdge | public Edge getEdge(int n)(Code) | | Get the Nth edge from the array.
|
getTarget | public Vertex getTarget()(Code) | | Get the target of the single edge.
|
getTarget | public Vertex getTarget(int n)(Code) | | Get the target of the Nth edge.
|
setTarget | public void setTarget(Vertex v)(Code) | | Change the target of the single edge.
|
setTarget | public void setTarget(Vertex v, int n)(Code) | | Change the target of the Nth edge.
|
size | public int size()(Code) | | Returns the number of edges in the connector EXCLUDING the
preferred edge. This is the same number used in the
constructor as the size of the connector.
Total number of edges in the multiway part of the connector. |
|
|