com.sun.electric.database.prototype
Class PortOriginal

java.lang.Object
  extended by com.sun.electric.database.prototype.PortOriginal

public class PortOriginal
extends java.lang.Object

The PortOriginal helper class descends the hierarchy from an Export to the bottommost PrimitivePort on a primitive NodeInst.

Many parts of the system need to know what is "under" an Export. For example, assume that cell BOT has a contact node that is exported. Further assume that cell MID has an instance of cell BOT, and that the port on BOT is further exported. Finally, assume that cell TOP has an instance of cell MID. To find out information about the port on MID, it is necessary to descend the hierarchy into MID and into BOT.

This class takes a PortInst or a NodeInst/PortProto pair (such as the port on MID in cell TOP). It then provides these pieces of information: