|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.id.CellId
public final class CellId
The CellId class identifies a type of NodeInst independently of threads. It differs from Cell objects, which will be owned by threads in transactional database. This class is thread-safe except inCurrentThread method in 1.5, but not thread-safe in 1.4 .
Field Summary | |
---|---|
int |
cellIndex
Unique index of this cell in the database. |
CellName |
cellName
CellName of this CellId. |
IdManager |
idManager
IdManager which owns this LibId. |
LibId |
libId
LibId which owns this CellId. |
static CellId[] |
NULL_ARRAY
Empty CellId array for initialization. |
Method Summary | |
---|---|
IdManager |
getIdManager()
Returns IdManager which is owner of this CellId. |
ExportId |
getPortId(int chronIndex)
Returns ExportId in this parent cell with specified chronological index. |
CellUsage |
getUsageIn(CellId protoId)
Returns CellUsage with this CellId as a parent cell and with given CellId as a proto subcell. |
CellUsage |
getUsageIn(int i)
Returns the i-th in cronological order CellUsage with this CellId as a parent cell. |
CellUsage |
getUsageOf(int i)
Returns the i-th in cronological order CellUsage with this CellId as a proto subcell. |
Cell |
inDatabase(EDatabase database)
Method to return the Cell representing CellId in the specified EDatabase. |
boolean |
isIcon()
Method to determine whether this CellId is an id of an icon Cell. |
boolean |
isSchematic()
Method to determine whether this CellId is an id of an schematic Cell. |
static void |
main(java.lang.String[] args)
|
int |
newArcId()
Returns new arcId unique for this CellId. |
int |
newNodeId()
Returns new nodeId unique for this CellId. |
ExportId |
newPortId(java.lang.String externalId)
Returns ExportId in this parent cell with specified external id. |
int |
numExportIds()
Returns a number ExportIds in this parent cell. |
int |
numUsagesIn()
Returns a number CellUsages with this CellId as a parent cell. |
int |
numUsagesOf()
Returns a number CellUsages whith this CellId as a proto subcell. |
ExportId |
randomExportId(java.lang.String suggestedId)
Creates new random exportId, unique in this session for this parent CellId. |
java.lang.String |
toString()
Returns a printable version of this CellId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CellId[] NULL_ARRAY
public final IdManager idManager
public final LibId libId
public final CellName cellName
public final int cellIndex
Method Detail |
---|
public IdManager getIdManager()
public int numUsagesIn()
public CellUsage getUsageIn(int i)
i
- chronological number of CellUsage.
java.lang.ArrayIndexOutOfBoundsException
- if no such CellUsage.public int numUsagesOf()
public CellUsage getUsageOf(int i)
i
- chronological number of CellUsage.
java.lang.ArrayIndexOutOfBoundsException
- if no such CellUsage.public CellUsage getUsageIn(CellId protoId)
protoId
- CellId of proto subcell.
java.lang.NullPointerException
- if prootId is null.public int numExportIds()
public ExportId getPortId(int chronIndex)
getPortId
in interface NodeProtoId
chronIndex
- chronological index of ExportId.
java.lang.ArrayIndexOutOfBoundsException
- if no such ExportId.public ExportId newPortId(java.lang.String externalId)
newPortId
in interface NodeProtoId
externalId
- external id of ExportId.
java.lang.NullPointerException
- if externalId is null.public ExportId randomExportId(java.lang.String suggestedId)
suggestedId
- suggested external id
public int newNodeId()
public int newArcId()
public Cell inDatabase(EDatabase database)
inDatabase
in interface NodeProtoId
database
- EDatabase where to get from.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isIcon()
isIcon
in interface NodeProtoId
public boolean isSchematic()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |