net.clackrouter.router.graph
Class RouterWire

java.lang.Object
  extended by DefaultGraphCell
      extended by net.clackrouter.router.graph.Wire
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.clackrouter.router.graph.Wire
Wire.WireRouting
 
Field Summary
 ClackComponent sourceComponent
           
 int sourcePortNum
           
 ClackComponent targetComponent
           
 int targetPortNum
           
 
Fields inherited from class net.clackrouter.router.graph.Wire
source, target
 
Constructor Summary
RouterWire(java.lang.String name, RouterView view, ClackComponent srcComp, int srcPort, ClackComponent targetComp, int targetPort)
           
 
Method Summary
 ClackComponent getSourceComponent()
           
 int getSourcePortNum()
           
 ClackComponent getTargetComponent()
           
 int getTargetPortNum()
           
static int getUniqueCount()
           
 
Methods inherited from class net.clackrouter.router.graph.Wire
changeAttributes, checkDefaults, clone, getClackView, getSource, getTarget, setSource, setTarget, setWireView, wireUsed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceComponent

public ClackComponent sourceComponent

targetComponent

public ClackComponent targetComponent

sourcePortNum

public int sourcePortNum

targetPortNum

public int targetPortNum
Constructor Detail

RouterWire

public RouterWire(java.lang.String name,
                  RouterView view,
                  ClackComponent srcComp,
                  int srcPort,
                  ClackComponent targetComp,
                  int targetPort)
Method Detail

getSourceComponent

public ClackComponent getSourceComponent()

getTargetComponent

public ClackComponent getTargetComponent()

getSourcePortNum

public int getSourcePortNum()

getTargetPortNum

public int getTargetPortNum()

getUniqueCount

public static int getUniqueCount()