public class CellRevision
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CellRevision(ImmutableCell d)
Creates a new instance of CellRevision
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public CellRevision(ImmutableCell d)
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 exportsjava.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