com.sun.electric.tool.ncc.processing
Class SubcircuitInfo

java.lang.Object
  extended by com.sun.electric.tool.ncc.processing.SubcircuitInfo

public class SubcircuitInfo
extends java.lang.Object

Holds information necessary to treat this Cell as a primitive subcircuit when performing hierarchical netlist comparison at a higher level


Constructor Summary
SubcircuitInfo(java.lang.String name, int ID, Port[] refPorts)
          Create the first SubcircuitInfo for the reference Cell
SubcircuitInfo(SubcircuitInfo referenceInfo, java.util.Map<java.lang.String,java.lang.Integer> exportNameToPortIndex)
          Create SubcircuitInfos for all the rest of the Cells in the CellGroup
 
Method Summary
 int getID()
           
 java.lang.String getName()
           
 PinType[] getPinTypes()
           
 int[] getPortCoeffs()
           
 int getPortIndex(java.lang.String exportName)
           
 java.lang.String getPortName(int i)
           
 int numPorts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubcircuitInfo

public SubcircuitInfo(java.lang.String name,
                      int ID,
                      Port[] refPorts)
Create the first SubcircuitInfo for the reference Cell


SubcircuitInfo

public SubcircuitInfo(SubcircuitInfo referenceInfo,
                      java.util.Map<java.lang.String,java.lang.Integer> exportNameToPortIndex)
Create SubcircuitInfos for all the rest of the Cells in the CellGroup

Method Detail

getID

public int getID()
Returns:
the unique ID assigned to this subcircuit

getName

public java.lang.String getName()
Returns:
the name of this subcircuit

numPorts

public int numPorts()
Returns:
the number of subcircuit ports

getPortName

public java.lang.String getPortName(int i)
Returns:
the name of the ith port

getPortIndex

public int getPortIndex(java.lang.String exportName)
Returns:
the index of the port named exportName

getPortCoeffs

public int[] getPortCoeffs()
Returns:
an array of coefficients, one entry per port

getPinTypes

public PinType[] getPinTypes()
Returns:
array of PinTypes, one per Port