|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.ncc.netlist.NetObject
com.sun.electric.tool.ncc.netlist.Part
public abstract class Part
Part is an intermediate abstract sub-class of NetObject. sub-classes of Part include Transistor, Resistor, (Capacitor), but NOT Port.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.electric.tool.ncc.netlist.NetObject |
|---|
NetObject.Type |
| Field Summary | |
|---|---|
protected static int |
BIPOLAR
|
protected Wire[] |
pins
|
protected static int |
RESISTOR
|
protected static int |
SUBCIRCUIT
|
protected static int |
TRANSISTOR
|
protected static int |
TYPE_FIELD_WIDTH
|
| Constructor Summary | |
|---|---|
protected |
Part(NccNameProxy.PartNameProxy name,
Wire[] pins)
|
| Method Summary | |
|---|---|
void |
checkMe(Circuit parent)
check that this Part is in proper form complain if it's wrong |
java.lang.Integer |
computeHashCode()
|
abstract java.lang.String |
connectionDescription(Wire w)
comma separated list of pins connected to w |
java.util.Iterator |
getConnected()
|
int |
getHashFor(Wire w)
The Part must compute a hash code contribution for a Wire to use. |
double |
getLength()
|
java.lang.String |
getName()
instance name qualified by path prefix |
NccNameProxy.PartNameProxy |
getNameProxy()
|
NetObject.Type |
getNetObjType()
Distinguish Parts, Wires, and Ports. |
int |
getNumWiresConnected()
Get the number of distinct Wires this part is connected to. |
abstract int[] |
getPinCoeffs()
Here is an accessor method for the coefficiant array for this Part. |
abstract PinType |
getPinTypeOfNthPin(int n)
|
double |
getWidth()
|
abstract java.lang.Integer |
hashCodeForParallelMerge()
Compute a hash code for this part for the purpose of performing parallel merge. |
java.lang.String |
instanceDescription()
human readable identification of instance |
boolean |
isDeleted()
|
boolean |
isMos()
|
boolean |
isResistor()
|
int |
numDistinctWires()
|
int |
numPins()
Here is the accessor for the number of terminals on this Part |
int |
numPinsConnected(Wire w)
How many pins of this Part are connected to Wire. |
abstract boolean |
parallelMerge(Part p)
This method attempts to merge this Part in parallel with another Part |
void |
setDeleted()
Mark this Part deleted and release all storage |
abstract int |
typeCode()
returns a unique int value for each distinct Part type |
abstract java.lang.String |
typeString()
returns String describing Part's type |
abstract java.lang.String |
valueDescription()
Report the numeric values of this Part, for example: width, length, resistance. |
| Methods inherited from class com.sun.electric.tool.ncc.netlist.NetObject |
|---|
connectionDescription, error, fullDescription, getCode, getParent, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.electric.tool.ncc.result.NetObjReport.NetObjReportable |
|---|
fullDescription |
| Field Detail |
|---|
protected static final int RESISTOR
protected static final int TRANSISTOR
protected static final int BIPOLAR
protected static final int SUBCIRCUIT
protected static final int TYPE_FIELD_WIDTH
protected Wire[] pins
| Constructor Detail |
|---|
protected Part(NccNameProxy.PartNameProxy name,
Wire[] pins)
name - the name of this Partpins - terminals of this Part| Method Detail |
|---|
public java.lang.String getName()
NetObject
getName in interface NetObjReport.NetObjReportablegetName in class NetObjectpublic java.util.Iterator getConnected()
getConnected in class NetObjectpublic NccNameProxy.PartNameProxy getNameProxy()
getNameProxy in interface PartReport.PartReportablepublic NetObject.Type getNetObjType()
NetObject
getNetObjType in class NetObjectpublic int numPins()
public abstract int[] getPinCoeffs()
public abstract boolean parallelMerge(Part p)
p - the other Part with which to merge
public abstract java.lang.Integer hashCodeForParallelMerge()
public void setDeleted()
public boolean isDeleted()
isDeleted in class NetObjectpublic int numDistinctWires()
public abstract java.lang.String typeString()
typeString in interface PartReport.PartReportablepublic abstract int typeCode()
public int numPinsConnected(Wire w)
w - the Wire to test
public java.lang.Integer computeHashCode()
public int getHashFor(Wire w)
w - the Wire for which a hash code is needed
public void checkMe(Circuit parent)
checkMe in class NetObjectpublic int getNumWiresConnected()
public abstract PinType getPinTypeOfNthPin(int n)
public java.lang.String instanceDescription()
NetObject
instanceDescription in interface NetObjReport.NetObjReportableinstanceDescription in class NetObjectpublic abstract java.lang.String valueDescription()
valueDescription in class NetObjectpublic abstract java.lang.String connectionDescription(Wire w)
public boolean isMos()
isMos in interface PartReport.PartReportablepublic boolean isResistor()
isResistor in interface PartReport.PartReportablepublic double getWidth()
getWidth in interface PartReport.PartReportablepublic double getLength()
getLength in interface PartReport.PartReportable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||