public class ISIDMapper
extends java.lang.Object
Constructor and Description |
---|
ISIDMapper(ISBounds bounds)
Create an ISIDMapper which does identity mapping.
|
ISIDMapper(ISBounds componentSubset,
ISBounds compositeExtent)
Create an ISIDMapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(IndexSpaceID id)
Check if the given IndexSpaceID is contained by this component
|
boolean |
equals(ISIDMapper mapper2)
Return true if two ISIDMapper equal
|
ISBounds |
getComponentSubset()
Return a copy of the Component Subset bounds
|
ISBounds |
getCompositeExtent()
Return a copy of the Composite Extent bounds
|
boolean |
isIdentityMapper()
Return true if this ISIDMapper is an identity mapper
|
static void |
main(java.lang.String[] args)
For debugging.
|
IndexSpaceID |
toComponent(IndexSpaceID compositeID)
Map the IndexSpaceID argument from composite space to component space.
|
IndexSpaceID |
toComponent(IndexSpaceID componentID,
IndexSpaceID compositeID)
Map the IndexSpaceID argument from composite space to component space.
|
int[] |
toComponent(int[] compositeCoords)
Map the coords array argument from composite space to component space.
|
int[] |
toComponent(int[] componentCoords,
int[] compositeCoords)
Map the coords array argument from composite space to component space.
|
ISBounds |
toComponent(ISBounds compositeBounds)
Map the bounds argument from composite space to component space.
|
IndexSpaceID |
toComposite(IndexSpaceID componentID)
Map the IndexSpaceID argument from component space to composite space.
|
int[] |
toComposite(int[] componentCoords)
Map the coords array argument from component space to composite space.
|
ISBounds |
toComposite(ISBounds componentBounds)
Map the bounds argument from component space to composite space.
|
java.lang.String |
toString()
convert to a String representation for debugging
|
public ISIDMapper(ISBounds componentSubset, ISBounds compositeExtent)
public ISIDMapper(ISBounds bounds)
public IndexSpaceID toComposite(IndexSpaceID componentID)
public int[] toComposite(int[] componentCoords)
public ISBounds toComposite(ISBounds componentBounds)
public final IndexSpaceID toComponent(IndexSpaceID compositeID)
public IndexSpaceID toComponent(IndexSpaceID componentID, IndexSpaceID compositeID)
public final int[] toComponent(int[] compositeCoords)
public int[] toComponent(int[] componentCoords, int[] compositeCoords)
public ISBounds toComponent(ISBounds compositeBounds)
public ISBounds getCompositeExtent()
public ISBounds getComponentSubset()
public boolean isIdentityMapper()
public boolean contains(IndexSpaceID id)
public boolean equals(ISIDMapper mapper2)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)