com.sun.electric.database
Class CellBackup.Memoization

java.lang.Object
  extended by com.sun.electric.database.CellBackup.Memoization
Enclosing class:
CellBackup

public class CellBackup.Memoization
extends java.lang.Object

Class which memoizes data for size computation (connectivity etc).


Method Summary
 ImmutableArrayList<ImmutableArcInst> getArcs()
           
 CellBackup getCellBackup()
           
 java.util.List<ImmutableArcInst> getConnections(java.util.BitSet headEnds, ImmutableNodeInst n, PortProtoId portId)
          Method to return a list of arcs connected to speciefed or all ports of specified ImmutableNodeInst.
 java.util.Iterator<ImmutableExport> getExports(int originalNodeId)
          Method to return an Iterator over all ImmutableExports on specified NodeInst.
 int getNumConnections(ImmutableNodeInst n)
          Method to return the number of Connections on specified ImmutableNodeInst.
 int getNumExports(int originalNodeId)
          Method to return the number of Exports on specified NodeInst.
 TechPool getTechPool()
           
 boolean hasConnections(ImmutableNodeInst n, PortProtoId portId)
          Returns true of there are Connections on specified ImmutableNodeInst connected either to specified port or to all ports
 boolean hasExports(ImmutableNodeInst originalNode)
          Returns true of there are Exports on specified NodeInst.
 boolean isHardArc(int arcId)
           
 boolean isWiped(ImmutableNodeInst n)
          Method to tell whether the specified ImmutableNodeInst is wiped.
 boolean pinUseCount(ImmutableNodeInst pin)
          Method to determine whether the display of specified pin NodeInst should be supressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasExports

public boolean hasExports(ImmutableNodeInst originalNode)
Returns true of there are Exports on specified NodeInst.

Parameters:
originalNode - specified NodeInst.
Returns:
true if there are Exports on specified NodeInst.

getNumExports

public int getNumExports(int originalNodeId)
Method to return the number of Exports on specified NodeInst.

Parameters:
originalNodeId - nodeId of specified NodeInst.
Returns:
the number of Exports on specified NodeInst.

getExports

public java.util.Iterator<ImmutableExport> getExports(int originalNodeId)
Method to return an Iterator over all ImmutableExports on specified NodeInst.

Parameters:
originalNodeId - nodeId of specified NodeInst.
Returns:
an Iterator over all ImmutableExports on specified NodeInst.

pinUseCount

public boolean pinUseCount(ImmutableNodeInst pin)
Method to determine whether the display of specified pin NodeInst should be supressed. In Schematics technologies, pins are not displayed if there are 1 or 2 connections, but are shown for 0 or 3 or more connections (called "Steiner points").

Parameters:
pin - specified pin ImmutableNodeInst
Returns:
true if specieifed pin NodeInst should be supressed.

getConnections

public java.util.List<ImmutableArcInst> getConnections(java.util.BitSet headEnds,
                                                       ImmutableNodeInst n,
                                                       PortProtoId portId)
Method to return a list of arcs connected to speciefed or all ports of specified ImmutableNodeInst.

Parameters:
headEnds - true if i-th arc connects by head end
n - specified ImmutableNodeInst
portId - specified port or null
Returns:
a List of connected ImmutableArcInsts

hasConnections

public boolean hasConnections(ImmutableNodeInst n,
                              PortProtoId portId)
Returns true of there are Connections on specified ImmutableNodeInst connected either to specified port or to all ports

Parameters:
n - specified ImmutableNodeInst
portId - specified port or null
Returns:
true if there are Connections on specified ImmutableNodeInst amd specified port.

getNumConnections

public int getNumConnections(ImmutableNodeInst n)
Method to return the number of Connections on specified ImmutableNodeInst.

Parameters:
n - specified ImmutableNodeInst
Returns:
the number of Connections on specified ImmutableNodeInst.

getCellBackup

public CellBackup getCellBackup()

getTechPool

public TechPool getTechPool()

getArcs

public ImmutableArrayList<ImmutableArcInst> getArcs()

isWiped

public boolean isWiped(ImmutableNodeInst n)
Method to tell whether the specified ImmutableNodeInst is wiped. Wiped ImmutableNodeInsts are erased. Typically, pin ImmutableNodeInsts can be wiped. This means that when an arc connects to the pin, it is no longer drawn. In order for a ImmutableNodeInst to be wiped, its prototype must have the "setArcsWipe" state, and the arcs connected to it must have "setWipable" in their prototype.

Parameters:
n - specified ImmutableNodeInst
Returns:
true if specified ImmutableNodeInst is wiped.

isHardArc

public boolean isHardArc(int arcId)