edu.jhu.ece.iacl.jist.pipeline.graph
Class PipeModuleEdge

java.lang.Object
  extended by DefaultEdge
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeModuleEdge

public class PipeModuleEdge
extends DefaultEdge

Edge cell to display on graph.

Author:
Blake Lucas (bclucas@jhu.edu)

Field Summary
protected static AvoidanceRouting avoidanceRouting
          The Constant avoidanceRouting.
protected  PipeConnector connector
          The connector.
 
Constructor Summary
protected PipeModuleEdge()
          Instantiates a new pipe module edge.
  PipeModuleEdge(PipeConnector connector)
          Instantiates a new pipe module edge.
 
Method Summary
 PipeModuleEdge clone()
          Create a clone of the cell.
protected  java.util.Map createEdgeAttributes()
          Creates the edge attributes.
 PipeConnector getConnector()
          Get connector associated with edge.
 void setConnector(PipeConnector connector)
          Set connector associated with edge.
 void setEditable(boolean editable)
          Set whether connector will have spinner and be editable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

avoidanceRouting

protected static final transient AvoidanceRouting avoidanceRouting
The Constant avoidanceRouting.


connector

protected PipeConnector connector
The connector.

Constructor Detail

PipeModuleEdge

protected PipeModuleEdge()
Instantiates a new pipe module edge.


PipeModuleEdge

public PipeModuleEdge(PipeConnector connector)
Instantiates a new pipe module edge.

Parameters:
connector - the connector
Method Detail

clone

public PipeModuleEdge clone()
Create a clone of the cell. The cloning of the user object is deferred to the cloneUserObject() method. The source and target references are set to null.

Returns:
Object a clone of this object.

createEdgeAttributes

protected java.util.Map createEdgeAttributes()
Creates the edge attributes.

Returns:
the map

getConnector

public PipeConnector getConnector()
Get connector associated with edge.

Returns:
connector

setConnector

public void setConnector(PipeConnector connector)
Set connector associated with edge.

Parameters:
connector - connector

setEditable

public void setEditable(boolean editable)
Set whether connector will have spinner and be editable.

Parameters:
editable - true if editable