public static class ImmutableLayoutHierarchyEnumerator.CellInfo
extends java.lang.Object
The HierarchyEnumerator creates a new CellInfo for a Cell instance just before it begins enumerating the contents of that Cell instance. The HierarchyEnumerator abandons the CellInfo once it is done enumerating the contents of that Cell instance. Once the CellInfo is abandoned the garbage collector may reclaim the CellInfo's storage.
Each CellInfo has a reference to the CellInfo of the parent of the current Cell instance. Thus the Visitor is able to get information about all the ancestors of the current Cell instance.
In most cases, the user will need to store additional information in the CellInfo. In those cases the user should extend the CellInfo class and override the Visitor.newCellInfo() method to return an instance of the derived class.
Constructor and Description |
---|
ImmutableLayoutHierarchyEnumerator.CellInfo() |
Modifier and Type | Method and Description |
---|---|
Cell |
getCell()
The Cell currently being visited.
|
VarContext |
getContext()
The VarContext to use for evaluating all variables in the
current Cell.
|
int[] |
getExportNetIDs(Export e)
Get netIDs for the Export: e.
|
int |
getNetID(ArcInst ai)
Map any arc inside the current cell to a net
number.
|
int |
getNetID(NodeInst ni,
PortProto p)
Map any port instance inside the current cell to a net
number.
|
ImmutableLayoutHierarchyEnumerator.CellInfo |
getParentInfo()
Get the CellInfo for the current Cell's parent.
|
Nodable |
getParentInst()
Get the NodeInst that instantiates the Current
instance.
|
int[] |
getPortNetIDs(Nodable no,
PortProto pp)
Get the set of netIDs that are connected to the specified port of
the specified Nodable.
|
ImmutableLayoutHierarchyEnumerator.CellInfo |
getRootInfo()
Get the CellInfo for the root Cell
|
FixpTransform |
getTransformToRoot()
Method to get the transformation from the current location to the root.
|
boolean |
isRootCell()
The Cell that is the root of the traversal
|
public ImmutableLayoutHierarchyEnumerator.CellInfo()
public final Cell getCell()
public final boolean isRootCell()
public final VarContext getContext()
public final ImmutableLayoutHierarchyEnumerator.CellInfo getParentInfo()
public final Nodable getParentInst()
public final ImmutableLayoutHierarchyEnumerator.CellInfo getRootInfo()
public final int[] getExportNetIDs(Export e)
public final int getNetID(ArcInst ai)
If you want to generate a unique name for the net use getUniqueNetName().
public final int getNetID(NodeInst ni, PortProto p)
If you want to generate a unique name for the net use getUniqueNetName().
public final int[] getPortNetIDs(Nodable no, PortProto pp)
public FixpTransform getTransformToRoot()