public class RegularPartitionISID
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IndexSpaceID |
blockISID |
protected int[] |
blockLoc |
protected long |
blockNum |
protected int[] |
blockShape |
protected int[] |
offset |
protected IndexSpaceID |
offsetISID |
protected RegularISPartitioning |
partitioning |
protected IndexSpaceID |
spaceISID |
Constructor and Description |
---|
RegularPartitionISID(RegularISPartitioning part,
IndexSpaceID spacePos)
Constructs a RegularPartitionISID for the spacePos in the partitioning, part
|
RegularPartitionISID(RegularISPartitioning part,
int[] spacePos) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Return a copy of this RegularPartitionISID.
|
IndexSpaceID |
getOffsetISID()
return the ISID of the location relative to the partition it is in.
|
ISBounds |
getPartitionBounds()
Return the bounds in space coordinates of the partition containing
this position.
|
ISBounds |
getPartitionBounds(ISBounds partBounds)
Change the parameter to describe the bounds in space coordinates
of the partition containing this position.
|
long |
getPartitionIndex()
return integer (long) index of the partition, which is the 1D location of
this partition in the partitioning space (not the data space).
|
static void |
main(java.lang.String[] args) |
IndexSpaceID |
mapToSpace()
Map this RegularPartitionISID back to an ISID in the original space
|
java.lang.String |
toString()
Return a String representing the object.
|
protected RegularISPartitioning partitioning
protected long blockNum
protected int[] blockShape
protected int[] blockLoc
protected IndexSpaceID blockISID
protected int[] offset
protected IndexSpaceID offsetISID
protected IndexSpaceID spaceISID
public RegularPartitionISID(RegularISPartitioning part, int[] spacePos)
public RegularPartitionISID(RegularISPartitioning part, IndexSpaceID spacePos)
public IndexSpaceID mapToSpace()
public long getPartitionIndex()
public ISBounds getPartitionBounds(ISBounds partBounds)
partBounds
- public ISBounds getPartitionBounds()
public IndexSpaceID getOffsetISID()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)