net.clackrouter.router.graph
Class RouterWire
java.lang.Object
DefaultGraphCell
net.clackrouter.router.graph.Wire
net.clackrouter.router.graph.RouterWire
public class RouterWire
- extends Wire
A RouterWire is essentially a DefaultEdge with a small amount of functionality built on top
to remember what components and specific ports within the route that it represents a
connection between. Since we have only completely connected wires allowed in our graphs,
this is pretty straightforward.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceComponent
public ClackComponent sourceComponent
targetComponent
public ClackComponent targetComponent
sourcePortNum
public int sourcePortNum
targetPortNum
public int targetPortNum
RouterWire
public RouterWire(java.lang.String name,
RouterView view,
ClackComponent srcComp,
int srcPort,
ClackComponent targetComp,
int targetPort)
getSourceComponent
public ClackComponent getSourceComponent()
getTargetComponent
public ClackComponent getTargetComponent()
getSourcePortNum
public int getSourcePortNum()
getTargetPortNum
public int getTargetPortNum()
getUniqueCount
public static int getUniqueCount()