com.sun.electric.tool.ncc.netlist
Class NetObject

java.lang.Object
  extended by com.sun.electric.tool.ncc.netlist.NetObject
All Implemented Interfaces:
NetObjReport.NetObjReportable
Direct Known Subclasses:
Part, Port, Wire

public abstract class NetObject
extends java.lang.Object
implements NetObjReport.NetObjReportable

NetObject is the parent class for Parts, Wires, and Ports. There is only one class of Wire, but many sub-classes of Part including: Transistor, Resistor. The hash code calculations are in Wire and Part. Wires can connect only to Parts and vice versa.


Nested Class Summary
static class NetObject.Type
           
 
Constructor Summary
NetObject()
           
 
Method Summary
abstract  void checkMe(Circuit parent)
          Make sure this object is OK.
abstract  java.lang.String connectionDescription(int maxConn)
          human readable description of things connected this NetObject
protected static void error(boolean pred, java.lang.String msg)
           
 java.lang.String fullDescription()
           
 int getCode()
          Return an integer hash code for this NetObject.
abstract  java.util.Iterator<NetObject> getConnected()
           
abstract  java.lang.String getName()
          instance name qualified by path prefix
abstract  NetObject.Type getNetObjType()
          Distinguish Parts, Wires, and Ports.
 Circuit getParent()
           
abstract  java.lang.String instanceDescription()
          human readable identification of instance
abstract  boolean isDeleted()
           
 void setParent(Circuit x)
           
 java.lang.String toString()
           
abstract  java.lang.String valueDescription()
          human readable enumeration of sizes and other values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetObject

public NetObject()
Method Detail

getNetObjType

public abstract NetObject.Type getNetObjType()
Distinguish Parts, Wires, and Ports.

Returns:
PART or WIRE or PORT

getConnected

public abstract java.util.Iterator<NetObject> getConnected()

error

protected static void error(boolean pred,
                            java.lang.String msg)

checkMe

public abstract void checkMe(Circuit parent)
Make sure this object is OK.


getCode

public int getCode()
Return an integer hash code for this NetObject.

Returns:
the integer hash code from this NetObjec's EquivRecord.

getParent

public Circuit getParent()
Returns:
the Circuit containing this NetObject

setParent

public void setParent(Circuit x)

isDeleted

public abstract boolean isDeleted()

getName

public abstract java.lang.String getName()
instance name qualified by path prefix

Specified by:
getName in interface NetObjReport.NetObjReportable

instanceDescription

public abstract java.lang.String instanceDescription()
human readable identification of instance

Specified by:
instanceDescription in interface NetObjReport.NetObjReportable

valueDescription

public abstract java.lang.String valueDescription()
human readable enumeration of sizes and other values


connectionDescription

public abstract java.lang.String connectionDescription(int maxConn)
human readable description of things connected this NetObject


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fullDescription

public java.lang.String fullDescription()
Specified by:
fullDescription in interface NetObjReport.NetObjReportable