com.sun.electric.database.id
Class CellUsage

java.lang.Object
  extended by com.sun.electric.database.id.CellUsage

public final class CellUsage
extends java.lang.Object

Immutable class to represent a possible edge in a Cell call graph. Vertices of the edge are CellIds of parent cell and proto subcell. This possible edge can be an edge in one thread, and not an edge in another thread.


Field Summary
 int indexInParent
           
static CellUsage[] NULL_ARRAY
          Empty CellUsage array for initialization.
 CellId parentId
          CellId of the parent Cell
 CellId protoId
          CellId of the (prototype) subCell
 
Method Summary
 Cell getParent(EDatabase database)
          Method to return the Cell that contains this Geometric object.
 Cell getProto(EDatabase database)
          Method to return the prototype of this NodeUsage.
 java.lang.String toString()
          Returns a printable version of this CellUsage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_ARRAY

public static final CellUsage[] NULL_ARRAY
Empty CellUsage array for initialization.


parentId

public final CellId parentId
CellId of the parent Cell


protoId

public final CellId protoId
CellId of the (prototype) subCell


indexInParent

public final int indexInParent
Method Detail

getProto

public Cell getProto(EDatabase database)
Method to return the prototype of this NodeUsage.

Returns:
the prototype of this NodeUsage in this thread.

getParent

public Cell getParent(EDatabase database)
Method to return the Cell that contains this Geometric object.

Returns:
the Cell that contains this Geometric object in this thread.

toString

public java.lang.String toString()
Returns a printable version of this CellUsage.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this CellUsage.