public class Topology
extends java.lang.Object
Constructor and Description |
---|
Topology(Cell cell,
boolean loadBackup)
Creates a new instance of Topology
|
Modifier and Type | Method and Description |
---|---|
ImmutableArcInst[] |
backupArcs(ImmutableArrayList<ImmutableArcInst> oldArcs) |
void |
check()
Method to check invariants in this Cell.
|
void |
computeArcBounds()
Low-level routine.
|
ArcInst |
findArc(java.lang.String name)
Method to find a named ArcInst on this Cell.
|
ArcInst |
getArc(int arcIndex)
Method to return the ArcInst at specified position.
|
ArcInst |
getArcById(int arcId)
Method to return the ArcInst by its chronological index.
|
int[] |
getArcIndexByArcIdMap() |
java.util.Iterator<ArcInst> |
getArcs()
Method to return an Iterator over all ArcInst objects in this Cell.
|
int |
getNumArcs()
Method to return the number of ArcInst objects in this Cell.
|
RTNode |
getRTree()
Method to R-Tree of this Cell.
|
void |
rebuildRTree() |
java.util.Iterator<RTBounds> |
searchIterator(java.awt.geom.Rectangle2D bounds,
boolean includeEdges)
Method to return an interator over all RTBounds objects in a given area of this Cell that allows
to ignore elements touching the area.
|
void |
unfreshRTree() |
void |
updateArcs(CellRevision newRevision) |
public Topology(Cell cell, boolean loadBackup)
public java.util.Iterator<ArcInst> getArcs()
public int getNumArcs()
public final ArcInst getArc(int arcIndex)
arcIndex
- specified position of ArcInst.public ArcInst getArcById(int arcId)
arcId
- chronological index of ArcInst.public int[] getArcIndexByArcIdMap()
public ArcInst findArc(java.lang.String name)
name
- the name of the ArcInst.public ImmutableArcInst[] backupArcs(ImmutableArrayList<ImmutableArcInst> oldArcs)
public void updateArcs(CellRevision newRevision)
public void computeArcBounds()
public java.util.Iterator<RTBounds> searchIterator(java.awt.geom.Rectangle2D bounds, boolean includeEdges)
bounds
- the specified area to search.includeEdges
- true if RTBounds objects along edges are considered in.public void unfreshRTree()
public RTNode getRTree()
public void rebuildRTree()
public void check()
java.lang.AssertionError
- if invariants are not valid