com.sun.electric.tool.logicaleffort
Class Instance

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

public class Instance
extends java.lang.Object

An Instance represents a logical effort node.

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

Author:
gainsley

Nested Class Summary
protected static class Instance.Type
          Type is a typesafe enum class that describes the type of Instance this is
 
Constructor Summary
protected Instance(java.lang.String name, Instance.Type type, float leSU, float leX, Nodable no)
          Creates a new instance of Instance
 
Method Summary
protected  java.util.ArrayList<Pin> getAllPins()
          Return list of bidirectional pins;
protected  VarContext getContext()
          Get VarContext
protected  java.util.ArrayList getInoutPins()
          Get inout pins
protected  java.util.ArrayList getInputPins()
          Get input pins
protected  float getLeSU()
          Get the step-up/delay
protected  int getLevel()
          Get the level of the gate
protected  float getLeX()
          Get the size of the gate
protected  double getMfactor()
          Get mfactor
protected  java.lang.String getName()
          Get name of gate
protected  Nodable getNodable()
          Get the Nodable
protected  java.util.ArrayList<Pin> getOutputPins()
          Get output pins
protected  int getParallelGroup()
          Get parallelGroup
protected  Instance.Type getType()
          Get Type of leGate
protected  boolean isGate()
          True if this is a gate
protected  boolean isLeGate()
          True if this is a sizable gate
protected  void print()
           
protected  float printLoadInfo(Pin pin, float alpha)
           
protected  void printShortInfo()
           
protected  void setContext(VarContext context)
          Set VarContext
protected  void setLeSU(float leSU)
          Set the step-up/delay
protected  void setLevel(int level)
          Set the level of the gate
protected  void setLeX(float LeX)
          Set the size of the gate
protected  void setMfactor(double m)
          Set mfactor
protected  void setParallelGroup(int group)
          Set parallelGroup
protected  void setPins(java.util.ArrayList<Pin> pins)
          Set the pin list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instance

protected Instance(java.lang.String name,
                   Instance.Type type,
                   float leSU,
                   float leX,
                   Nodable no)
Creates a new instance of Instance

Method Detail

getAllPins

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


getOutputPins

protected java.util.ArrayList<Pin> getOutputPins()
Get output pins


getInputPins

protected java.util.ArrayList getInputPins()
Get input pins


getInoutPins

protected java.util.ArrayList getInoutPins()
Get inout pins


isLeGate

protected boolean isLeGate()
True if this is a sizable gate


isGate

protected boolean isGate()
True if this is a gate


getType

protected Instance.Type getType()
Get Type of leGate


getName

protected java.lang.String getName()
Get name of gate


getLevel

protected int getLevel()
Get the level of the gate


setLevel

protected void setLevel(int level)
Set the level of the gate


getLeSU

protected float getLeSU()
Get the step-up/delay


setLeSU

protected void setLeSU(float leSU)
Set the step-up/delay


getLeX

protected float getLeX()
Get the size of the gate


setLeX

protected void setLeX(float LeX)
Set the size of the gate


getContext

protected VarContext getContext()
Get VarContext


setContext

protected void setContext(VarContext context)
Set VarContext


getNodable

protected Nodable getNodable()
Get the Nodable


getParallelGroup

protected int getParallelGroup()
Get parallelGroup


setParallelGroup

protected void setParallelGroup(int group)
Set parallelGroup


getMfactor

protected double getMfactor()
Get mfactor


setMfactor

protected void setMfactor(double m)
Set mfactor


setPins

protected void setPins(java.util.ArrayList<Pin> pins)
Set the pin list


print

protected void print()

printShortInfo

protected void printShortInfo()

printLoadInfo

protected float printLoadInfo(Pin pin,
                              float alpha)