public class PortOriginal
extends java.lang.Object
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:
Constructor and Description |
---|
PortOriginal(NodeInst ni,
PortProto pp)
Constructor takes a NodeInst/PortProto combination and traverses it down to the bottom of the hierarchy.
|
PortOriginal(PortInst startPort)
Constructor takes a PortInst and traverses it down to the bottom of the hierarchy.
|
PortOriginal(PortInst startPort,
java.awt.geom.AffineTransform pre)
Constructor takes a PortInst and traverses it down to the bottom of the hierarchy.
|
Modifier and Type | Method and Description |
---|---|
NodeInst |
getBottomNodeInst()
Method to return the bottommost NodeInst (a primitive)
from the initial port information given to the constructor.
|
PortInst |
getBottomPort()
Method to return the bottommost PortInst (on a primitive NodeInst)
from the initial port information given to the constructor.
|
PrimitivePort |
getBottomPortProto()
Method to return the bottommost PortProto (a PrimitivePort)
from the initial port information given to the constructor.
|
Orientation |
getOrientToTop()
Method to return the apparent orientation of the lowest node when viewed from the top.
|
java.awt.geom.AffineTransform |
getTransformToTop()
Method to return the transformation matrix from the bottommost NodeInst
to the Cell containing the topmost PortInst.
|
public PortOriginal(PortInst startPort)
startPort
- the initial PortInst.public PortOriginal(PortInst startPort, java.awt.geom.AffineTransform pre)
startPort
- the initial PortInst.pre
- the transformation matrix to add to the final transformation.public NodeInst getBottomNodeInst()
public PrimitivePort getBottomPortProto()
public PortInst getBottomPort()
public java.awt.geom.AffineTransform getTransformToTop()
public Orientation getOrientToTop()