public class CellBackup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
CellBackup.Memoization
Class which memoizes data for size computation (connectivity etc).
|
Modifier and Type | Field and Description |
---|---|
CellRevision |
cellRevision
Cell data.
|
static ImmutableArrayList<CellBackup> |
EMPTY_LIST |
boolean |
modified
"Modified" flag of the Cell.
|
static CellBackup[] |
NULL_ARRAY |
TechPool |
techPool
Technologies mapping
|
Modifier and Type | Method and Description |
---|---|
void |
check()
Checks invariant of this CellBackup.
|
ERectangle |
computePrimitiveBounds() |
CellBackup.Memoization |
getMemoization()
Returns data for size computation (connectivity etc).
|
ERectangle |
getPrimitiveBounds()
Returns bounds of all primitive arcs in this Cell or null if there are not primitives.
|
AbstractShapeBuilder.Shrinkage |
getShrinkage()
Returns data for arc shrinkage computation.
|
static CellBackup |
newInstance(ImmutableCell d,
TechPool techPool)
Creates a new instance of CellBackup
|
java.lang.String |
toString() |
CellBackup |
with(ImmutableCell d,
ImmutableNodeInst[] nodesArray,
ImmutableArcInst[] arcsArray,
ImmutableExport[] exportsArray,
TechPool superPool)
Creates a new instance of CellBackup which differs from this CellBackup.
|
CellBackup |
withoutModified()
Creates a new instance of CellBackup with modified flag off.
|
CellBackup |
withRevisionDate(long revisionDate)
Creates a new instance of CellBackup which differs from this CellBackup by revision date.
|
CellBackup |
withTechPool(TechPool techPool)
Returns CellBackup which differs from this CellBackup by TechPool.
|
public static final CellBackup[] NULL_ARRAY
public static final ImmutableArrayList<CellBackup> EMPTY_LIST
public final CellRevision cellRevision
public final TechPool techPool
public final boolean modified
public static CellBackup newInstance(ImmutableCell d, TechPool techPool)
public CellBackup with(ImmutableCell d, ImmutableNodeInst[] nodesArray, ImmutableArcInst[] arcsArray, ImmutableExport[] exportsArray, TechPool superPool)
d
- new persistent data of a cell.nodesArray
- new array of nodesarcsArray
- new array of arcsexportsArray
- new array of exportssuperPool
- TechPool which defines all used technologiesjava.lang.IllegalArgumentException
- on invariant violation.ArrayOutOfBoundsException
- on some invariant violations.public CellBackup withRevisionDate(long revisionDate)
revisionDate
- new revision date.public CellBackup withoutModified()
public CellBackup withTechPool(TechPool techPool)
techPool
- technology map.public void check()
java.lang.AssertionError
- if invariant is broken.public java.lang.String toString()
toString
in class java.lang.Object
public CellBackup.Memoization getMemoization()
public AbstractShapeBuilder.Shrinkage getShrinkage()
public ERectangle getPrimitiveBounds()
public ERectangle computePrimitiveBounds()