public class PBlockRange
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLOCK_REGION_RANGE_STR |
Constructor and Description |
---|
PBlockRange(Device dev,
String range) |
PBlockRange(Site lowerLeft,
Site upperRight) |
Modifier and Type | Method and Description |
---|---|
Set<Tile> |
getAllTiles()
Iterates over rectangular region imposed by pblock and returns the set of all
tiles inclusive of those sites.
|
Tile |
getBottomLeftTile() |
Tile |
getBottomRightTile() |
Device |
getDevice() |
Site |
getLowerLeftSite() |
Tile |
getTopLeftTile() |
Tile |
getTopRightTile() |
Site |
getUpperRightSite() |
boolean |
isClockRegionRange() |
boolean |
isSiteRange() |
boolean |
move(int xOffset,
int yOffset)
Moves the pblock by the specified offset in units of the pblock range type.
|
static String |
replaceXY(String name,
int x,
int y) |
void |
setLowerLeft(PBlockCorner lowerLeft) |
void |
setUpperRight(PBlockCorner upperRight) |
String |
toString() |
public static final String CLOCK_REGION_RANGE_STR
public PBlockRange(Device dev, String range)
public Site getLowerLeftSite()
public void setLowerLeft(PBlockCorner lowerLeft)
lowerLeft
- the lowerLeft to setpublic Site getUpperRightSite()
public void setUpperRight(PBlockCorner upperRight)
upperRight
- the upperRight to setpublic String toString()
toString
in class Object
public boolean move(int xOffset, int yOffset)
xOffset
- Offset of the pblock range type in the X (column) directionyOffset
- Offset of the pblock range type in the Y (row) directionpublic static String replaceXY(String name, int x, int y)
public Tile getTopLeftTile()
public Tile getBottomRightTile()
public Tile getBottomLeftTile()
public Tile getTopRightTile()
public Device getDevice()
public Set<Tile> getAllTiles()
public boolean isClockRegionRange()
public boolean isSiteRange()