net.clackrouter.router.graph
Class Wire

java.lang.Object
  extended by DefaultGraphCell
      extended by net.clackrouter.router.graph.Wire
Direct Known Subclasses:
RouterWire, TopoWire

public abstract class Wire
extends DefaultGraphCell

Cell object for a JGraph GraphModel that represents an edge between two ComponentCells.


Nested Class Summary
static class Wire.WireRouting
           
 
Field Summary
protected  java.lang.Object source
          Source and target of the edge.
protected  java.lang.Object target
          Source and target of the edge.
 
Constructor Summary
Wire(java.lang.String name, ClackView clackview)
           
 
Method Summary
 java.util.Map changeAttributes(java.util.Map change)
          Override parent method to ensure non-null points.
protected  void checkDefaults()
          Override parent method to ensure non-null points.
 java.lang.Object clone()
          Create a clone of the cell.
 ClackView getClackView()
           
 java.lang.Object getSource()
          Returns the source of the edge.
 java.lang.Object getTarget()
          Returns the target of the edge.
 void setSource(java.lang.Object port)
          Sets the source of the edge.
 void setTarget(java.lang.Object port)
          Returns the target of edge.
 void setWireView(WireView v)
           
 void wireUsed()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected java.lang.Object source
Source and target of the edge.


target

protected java.lang.Object target
Source and target of the edge.

Constructor Detail

Wire

public Wire(java.lang.String name,
            ClackView clackview)
Method Detail

getClackView

public ClackView getClackView()

setWireView

public void setWireView(WireView v)

wireUsed

public void wireUsed()

checkDefaults

protected void checkDefaults()
Override parent method to ensure non-null points.


changeAttributes

public java.util.Map changeAttributes(java.util.Map change)
Override parent method to ensure non-null points.


getSource

public java.lang.Object getSource()
Returns the source of the edge.


getTarget

public java.lang.Object getTarget()
Returns the target of the edge.


setSource

public void setSource(java.lang.Object port)
Sets the source of the edge.


setTarget

public void setTarget(java.lang.Object port)
Returns the target of edge.


clone

public java.lang.Object clone()
Create a clone of the cell. The cloning of the user object is deferred to the cloneUserObject() method.

Returns:
Object a clone of this object.