com.sun.electric.tool.logicaleffort
Class LEPin

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

public class LEPin
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 LEPin.Dir
          Dir is a typesafe enum class that describes the direction of the pin
 
Constructor Summary
protected LEPin(java.lang.String name, LEPin.Dir dir, float le, Network net, LENodable instance)
          Create new pin.
 
Method Summary
protected  LEPin.Dir getDir()
          Return the direction of the pin.
protected static java.util.ArrayList<LEPin> getInoutPins(java.util.List<LEPin> pins)
          Return list of bidirectional pins;
protected static java.util.ArrayList<LEPin> getInputPins(java.util.List<LEPin> pins)
          Return list of input pins;
protected  LENodable 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  Network getNetwork()
          Return the Network this pin is on
protected static java.util.ArrayList<LEPin> getOutputPins(java.util.List<LEPin> pins)
          Return list of output pins;
protected static java.util.ArrayList<LEPin> getPinListType(java.util.List<LEPin> pins, LEPin.Dir dir)
          Return list of specified pins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LEPin

protected LEPin(java.lang.String name,
                LEPin.Dir dir,
                float le,
                Network net,
                LENodable instance)
Create new pin.

Parameters:
name - name of pin
dir - pin direction (Pin.INPUT, Pin.OUTPUT, Pin.INOUT, Pin.NODIR)
instance - the instance this belongs to
Method Detail

getDir

protected LEPin.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.


getInstance

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


getNetwork

protected Network getNetwork()
Return the Network this pin is on


getPinListType

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


getInoutPins

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


getInputPins

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


getOutputPins

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