public abstract class TileRectangle
extends Object
min <= Tiles <= max
The way to store tiles is set by subclasses. Depending on the storage method, they may or may not be relocatable| Constructor and Description |
|---|
TileRectangle() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
extendTo(RelocatableTileRectangle rect)
Extend the Rectangle so that the specified Rectangle is inside
|
abstract void |
extendTo(Tile tile) |
abstract void |
extendToCorresponding(RelocatableTileRectangle rect,
Site currentAnchor,
SiteInst templateAnchor)
Extend the Rectangle so that a shifted rectangle is inside.
|
void |
extendToCorresponding(Tile tile,
Site currentAnchor,
SiteInst templateAnchor)
Extend the Rectangle so that a shifted tile is inside.
|
Tile |
getCenter(Device device) |
int |
getHeight() |
int |
getLargerDimension() |
abstract int |
getMaxColumn() |
abstract int |
getMaxRow() |
abstract int |
getMinColumn() |
abstract int |
getMinRow() |
int |
getWidth() |
int |
hpwl() |
abstract boolean |
isEmpty() |
boolean |
isInside(Tile tile)
Check whether a tile is contained in the Rectangle
|
boolean |
overlaps(TileRectangle other)
Check whether this Rectangle has any Tiles in common with another one
|
public abstract int getMinRow()
public abstract int getMaxRow()
public abstract int getMinColumn()
public abstract int getMaxColumn()
public abstract boolean isEmpty()
public abstract void extendTo(Tile tile)
public boolean isInside(Tile tile)
tile - the tile to checkpublic int hpwl()
public boolean overlaps(TileRectangle other)
other - Rectangle to checkpublic int getWidth()
public int getHeight()
public int getLargerDimension()
public abstract void extendToCorresponding(RelocatableTileRectangle rect, Site currentAnchor, SiteInst templateAnchor)
templateAnchor to currentAnchor. This location relative to the new
anchor is then included in the Rectangle.rect - Rectangle to include after shiftingcurrentAnchor - target anchortemplateAnchor - source anchorpublic void extendToCorresponding(Tile tile, Site currentAnchor, SiteInst templateAnchor)
templateAnchor to currentAnchor. This location relative to the new
anchor is then included in the Rectangle.tile - tile to include after shiftingcurrentAnchor - target anchortemplateAnchor - source anchorpublic abstract void extendTo(RelocatableTileRectangle rect)
rect - The Rectangle to include