|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.graph.Connector | +--org.quilt.graph.MultiConnector
A Connector holding a array of edges, where the array has at least one member. The first element of the array is preferred.
Constructor Summary | |
MultiConnector(Connector conn,
int n)
Constructor initialized from an existing UnaryConnector. |
|
MultiConnector(Edge seed,
int n)
Constructor for fixed-size array of edges. |
Method Summary | |
Edge |
getEdge()
Get the outgoing edge. |
Edge |
getEdge(int n)
|
Vertex |
getTarget()
Get the target of the preferred edge. |
Vertex |
getTarget(int n)
|
void |
setTarget(Vertex v)
Set the target of the connector's preferred edge. |
void |
setTarget(Vertex v,
int n)
|
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 |
public MultiConnector(Edge seed, int n)
public MultiConnector(Connector conn, int n)
Method Detail |
public Edge getEdge()
Connector
getEdge
in class Connector
public Vertex getTarget()
Connector
getTarget
in class Connector
public void setTarget(Vertex v)
Connector
setTarget
in class Connector
public Edge getEdge(int n)
public Vertex getTarget(int n)
public void setTarget(Vertex v, int n)
public int size()
Connector
size
in class Connector
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |