com.sun.electric.tool.logicaleffort
Class Pin

java.lang.Object
  extended by com.sun.electric.tool.logicaleffort.Pin

public class Pin
extends java.lang.Object

A Pin is connection between a network and an instance. A Pin's direction is relative to the node (Instance, etc) it connects to, not the network it connects to.

This should only be used in the context of the Logical Effort Tool.

Author:
gainsley

Nested Class Summary
protected static class Pin.Dir
          Dir is a typesafe enum class that describes the direction of the pin
 
Constructor Summary
protected Pin(java.lang.String name, Pin.Dir dir, float le, java.lang.String netName)
          Create new pin.
 
Method Summary
protected  Pin.Dir getDir()
          Return the direction of the pin.
protected static java.util.ArrayList<Pin> getInoutPins(java.util.ArrayList<Pin> pins)
          Return list of bidirectional pins;
protected static java.util.ArrayList<Pin> getInputPins(java.util.ArrayList<Pin> pins)
          Return list of input pins;
protected  Instance getInstance()
          Return the instance that is attached to the pin.
protected  float getLE()
          Return the logical effort of the pin.
protected  java.lang.String getName()
          Return the name of the pin.
protected  Net getNet()
          Return the net attached to pin.
protected  java.lang.String getNetName()
          Return the net name
protected static java.util.ArrayList<Pin> getOutputPins(java.util.ArrayList<Pin> pins)
          Return list of output pins;
protected static java.util.ArrayList<Pin> getPinListType(java.util.ArrayList<Pin> pins, Pin.Dir dir)
          Return list of specified pins
protected  void setInstance(Instance instance)
          Set the instance to which the pin is attached.
protected  void setNet(Net net)
          Set the net attached to pin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pin

protected Pin(java.lang.String name,
              Pin.Dir dir,
              float le,
              java.lang.String netName)
Create new pin.

Parameters:
name - name of pin
dir - pin direction (Pin.INPUT, Pin.OUTPUT, Pin.INOUT, Pin.NODIR)
netName - net pin is on
Method Detail

getDir

protected Pin.Dir getDir()
Return the direction of the pin.


getName

protected java.lang.String getName()
Return the name of the pin.


getLE

protected float getLE()
Return the logical effort of the pin.


getNetName

protected java.lang.String getNetName()
Return the net name


getInstance

protected Instance getInstance()
Return the instance that is attached to the pin.


setInstance

protected void setInstance(Instance instance)
Set the instance to which the pin is attached.


getNet

protected Net getNet()
Return the net attached to pin.


setNet

protected void setNet(Net net)
Set the net attached to pin.


getPinListType

protected static java.util.ArrayList<Pin> getPinListType(java.util.ArrayList<Pin> pins,
                                                         Pin.Dir dir)
Return list of specified pins


getInoutPins

protected static java.util.ArrayList<Pin> getInoutPins(java.util.ArrayList<Pin> pins)
Return list of bidirectional pins;


getInputPins

protected static java.util.ArrayList<Pin> getInputPins(java.util.ArrayList<Pin> pins)
Return list of input pins;


getOutputPins

protected static java.util.ArrayList<Pin> getOutputPins(java.util.ArrayList<Pin> pins)
Return list of output pins;