public interface NodeProto
Every node in the database appears as one prototypical object and many instantiative objects. Thus, for a PrimitiveNode such as the CMOS P-transistor there is one object (called a PrimitiveNode, which is a NodeProto) that describes the transistor prototype and there are many objects (called NodeInsts), one for every instance of a transistor that appears in a circuit. Similarly, for every Cell, there is one object (called a Cell, which is a NodeProto) that describes the Cell with everything in it and there are many objects (also called NodeInsts) for every use of that Cell in some other Cell. PrimitiveNodes are statically created and placed in the Technology objects, but complex Cells are created by the tools and placed in Library objects.
The basic NodeProto has a list of varibales, a list of ports, the bounds and much more.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe(boolean withQuotes)
Method to describe this NodeProto as a string.
|
PortProto |
findPortProto(Name name)
Method to find the PortProto that has a particular Name.
|
PortProto |
findPortProto(java.lang.String name)
Method to find the PortProto that has a particular name.
|
double |
getDefHeight(EditingPreferences ep)
Method to return the default height of this NodeProto.
|
EPoint |
getDefSize(EditingPreferences ep)
Method to return the default size of this NodeProto relative to minamal size of this NodeProto.
|
double |
getDefWidth(EditingPreferences ep)
Method to return the default width of this NodeProto.
|
PrimitiveNode.Function |
getFunction()
Method to return the function of this NodeProto.
|
NodeProtoId |
getId()
Method to return NodeProtoId of this NodeProto.
|
java.lang.String |
getName()
Method to return the name of this NodeProto.
|
int |
getNumPorts()
Method to return the number of PortProtos on this NodeProto.
|
PortProto |
getPort(int portIndex)
Method to return the PortProto at specified position.
|
PortProto |
getPort(PortProtoId portProtoId)
Method to return the PortProto by thread-independent PortProtoId.
|
java.util.Iterator<PortProto> |
getPorts()
Method to return an iterator over all PortProtos of this NodeProto.
|
SizeOffset |
getProtoSizeOffset()
Method to size offset of this NodeProto.
|
Technology |
getTechnology()
Method to return the Technology to which this NodeProto belongs.
|
java.lang.String |
libDescribe()
Method to describe this NodeProto as a string.
|
java.lang.String |
noLibDescribe()
Method to describe this NodeProto as a string.
|
NodeProtoId getId()
PrimitiveNode.Function getFunction()
double getDefWidth(EditingPreferences ep)
ep
- EditingPreferences with default sizes and text descriptors.double getDefHeight(EditingPreferences ep)
ep
- EditingPreferences with default sizes and text descriptors.EPoint getDefSize(EditingPreferences ep)
ep
- EditingPreferences with default sizesSizeOffset getProtoSizeOffset()
Technology getTechnology()
PortProto findPortProto(java.lang.String name)
PortProto findPortProto(Name name)
java.util.Iterator<PortProto> getPorts()
int getNumPorts()
PortProto getPort(int portIndex)
portIndex
- specified position of PortProto.PortProto getPort(PortProtoId portProtoId)
portProtoId
- thread-independent PortProtoId.java.lang.String describe(boolean withQuotes)
withQuotes
- to wrap description between quotesjava.lang.String libDescribe()
java.lang.String noLibDescribe()
java.lang.String getName()