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).


Field Summary
 int[] connections
           
 
Method Summary
 ImmutableArrayList<ImmutableArcInst> getArcs()
           
 java.util.Iterator<ImmutableExport> getExports(int originalNodeId)
          Method to return an Iterator over all ImmutableExports on specified NodeInst.
 int getNumExports(int originalNodeId)
          Method to return the number of Exports on specified NodeInst.
 boolean hasExports(int originalNodeId)
          Returns true of there are Exports on specified NodeInst.
 boolean isHardArc(int arcId)
           
 boolean isWiped(int nodeId)
          Method to tell whether the specified ImmutableNodeInst is wiped.
 int searchConnectionByPort(int nodeId, int chronIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connections

public final int[] connections
Method Detail

hasExports

public boolean hasExports(int originalNodeId)
Returns true of there are Exports on specified NodeInst.

Parameters:
originalNodeId - nodeId of 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.

searchConnectionByPort

public int searchConnectionByPort(int nodeId,
                                  int chronIndex)

getArcs

public ImmutableArrayList<ImmutableArcInst> getArcs()

isWiped

public boolean isWiped(int nodeId)
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:
nodeId - nodeId of specified ImmutableNodeInst
Returns:
true if specified ImmutableNodeInst is wiped.

isHardArc

public boolean isHardArc(int arcId)