|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.database.CellRevision
public class CellRevision
This class represents Cell data (with all arcs/nodes/exports) as it is saved to disk. This representation should be technology-independent
| Field Summary | |
|---|---|
ImmutableArrayList<ImmutableArcInst> |
arcs
A list of ArcInsts in this Cell. |
ImmutableCell |
d
Cell persistent data. |
static ImmutableArrayList<CellRevision> |
EMPTY_LIST
|
ImmutableArrayList<ImmutableExport> |
exports
An array of Exports on the Cell by chronological index. |
ImmutableArrayList<ImmutableNodeInst> |
nodes
A list of NodeInsts in this Cell. |
static CellRevision[] |
NULL_ARRAY
|
| Constructor Summary | |
|---|---|
CellRevision(ImmutableCell d)
Creates a new instance of CellRevision |
|
| Method Summary | |
|---|---|
void |
check()
Checks invariant of this CellRevision. |
ImmutableArcInst |
getArc(int arcId)
Returns ImmutableArcInst by its arc id. |
ImmutableExport |
getExport(ExportId exportId)
Returns ImmutableExport by its export id. |
int |
getInstCount(CellUsage u)
For given CellUsage in this cell returns count of subcell instances. |
int[] |
getInstCounts()
Returns subcell instance counts, indexed by CellUsage.indexInParent. |
ImmutableNodeInst |
getNode(int nodeId)
Returns ImmutableNodeInst by its node id. |
java.util.Set<TechId> |
getTechUsages()
Returns Set of Technologies used in this CellRevision |
boolean |
sameExports(CellRevision thatRevision)
|
java.lang.String |
toString()
|
CellRevision |
with(ImmutableCell d,
ImmutableNodeInst[] nodesArray,
ImmutableArcInst[] arcsArray,
ImmutableExport[] exportsArray)
Creates a new instance of CellRevision which differs from this CellRevision. |
CellRevision |
withRevisionDate(long revisionDate)
Creates a new instance of CellRevision which differs from this CellRevision by revision date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CellRevision[] NULL_ARRAY
public static final ImmutableArrayList<CellRevision> EMPTY_LIST
public final ImmutableCell d
public final ImmutableArrayList<ImmutableExport> exports
public final ImmutableArrayList<ImmutableNodeInst> nodes
public final ImmutableArrayList<ImmutableArcInst> arcs
| Constructor Detail |
|---|
public CellRevision(ImmutableCell d)
| Method Detail |
|---|
public CellRevision withRevisionDate(long revisionDate)
revisionDate - new revision date.
public CellRevision with(ImmutableCell d,
ImmutableNodeInst[] nodesArray,
ImmutableArcInst[] arcsArray,
ImmutableExport[] exportsArray)
d - new persistent data of a cell.nodesArray - new array of nodesarcsArray - new array of arcsexportsArray - new array of exports
java.lang.IllegalArgumentException - on invariant violation.
ArrayOutOfBoundsException - on some invariant violations.public ImmutableNodeInst getNode(int nodeId)
nodeId - id of node.
public ImmutableArcInst getArc(int arcId)
arcId - id of node.
public ImmutableExport getExport(ExportId exportId)
exportId - id of export.
public int[] getInstCounts()
public int getInstCount(CellUsage u)
u - CellUsage.
java.lang.IllegalArgumentException - if CellUsage's parent is not this cell.public java.util.Set<TechId> getTechUsages()
public void check()
java.lang.AssertionError - if invariant is broken.public boolean sameExports(CellRevision thatRevision)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||