public abstract class IndexSpaceID extends SpaceID
Constructor and Description |
---|
IndexSpaceID() |
Modifier and Type | Method and Description |
---|---|
void |
add(IndexSpaceID id)
For each axis of this IndexSpaceID, add the value
of the corresponding axis of the parameter.
|
void |
add(int axis,
int value)
For the specified axis of this IndexSpaceID, add
specified value.
|
boolean |
containedBy(ISBounds b)
Returns true if this IndexSpaceID is contained by the
ISBounds parameter, or false otherwise.
|
abstract IndexSpaceID |
copyID()
Makes a copy of an IndexSpaceID object that is guaranteed
not to copy iterator information in the case that the
object is actually an iterator.
|
IndexSpaceID |
divide(IndexSpaceID other)
Pairwise divide this IndexSpaceID with 'other' and store the result
in this.
|
boolean |
equals(java.lang.Object obj)
Return true if the argument is an IndexSpaceID representing the same
coordinates as this object, false otherwise.
|
abstract int |
getCoord(int axisNumber)
Get the value corresponding to the specified axis.
|
int[] |
getCoords()
Return an array with the coordinate values for this ISID.
|
abstract int[] |
getCoords(int[] coords)
Fill the array argument with the coordinate values for this ISID.
|
boolean |
greaterThanOrEqual(IndexSpaceID id)
A helper function that returns true if all the coordinates of this
id are greater than or equal to the corresponding coordinates of the parameter id.
|
boolean |
lessThanOrEqual(IndexSpaceID id)
A helper function that returns true if all the coordinates of this
id are less than or equal to the corresponding coordinates of the parameter id.
|
static void |
main(java.lang.String[] args) |
IndexSpaceID |
mod(IndexSpaceID other)
Calculate pairwise mod of this IndexSpaceID with 'other' and store the
result in 'this'.
|
IndexSpaceID |
multiply(IndexSpaceID other)
Pairwise multiply this IndexSpaceID with 'other' and store the result in this.
|
void |
negate()
Arithmetically negate this IndexSpaceID's axis values.
|
IndexSpaceID |
project(int axis)
Returns a new IndexSpaceID which is the projection of this IndexSpaceID onto a
plane orthogonal to the specified axis.
|
IndexSpaceID |
scale(double m)
Scale this IndexSpaceID's axis values by the given double.
|
IndexSpaceID |
scale(int m)
Scale this IndexSpaceID's axis values by the given integer.
|
IndexSpaceID |
setDimensionsInUnits(IndexSpaceID unit)
Sets this to the IndexSpaceID representing the dimensions in units of the
hypercube whose dimensions in points are specified
by this IndexSpaceID.
|
IndexSpaceID |
shift(IndexSpaceID other)
Pairwise shift this IndexSpaceID with 'other' and store the result
in this.
|
IndexSpaceID |
subtract(IndexSpaceID id)
For each axis of this IndexSpaceID, subtract the value
of the corresponding axis of the parameter.
|
void |
subtract(IndexSpaceID result,
IndexSpaceID id)
For each axis of this IndexSpaceID, subtract the value
of the corresponding axis of the second argument, and
assign the result to the first argument.
|
void |
subtract(int axis,
int value)
For the specified axis of this IndexSpaceID, subtract
specified value.
|
java.lang.String |
toString()
Return a String representing the object.
|
java.lang.String |
toString(java.lang.String indent)
Return a String representing the object indented by the argument string.
|
long |
volume() |
public abstract IndexSpaceID copyID()
public abstract int getCoord(int axisNumber)
public abstract int[] getCoords(int[] coords)
public int[] getCoords()
public void add(IndexSpaceID id)
public long volume()
public IndexSpaceID setDimensionsInUnits(IndexSpaceID unit)
public void add(int axis, int value)
public void subtract(int axis, int value)
public final void negate()
public IndexSpaceID subtract(IndexSpaceID id)
public void subtract(IndexSpaceID result, IndexSpaceID id)
public final IndexSpaceID scale(int m)
public final IndexSpaceID multiply(IndexSpaceID other)
public final IndexSpaceID divide(IndexSpaceID other)
public final IndexSpaceID shift(IndexSpaceID other)
public final IndexSpaceID mod(IndexSpaceID other)
public final IndexSpaceID scale(double m)
public IndexSpaceID project(int axis)
public boolean containedBy(ISBounds b)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean lessThanOrEqual(IndexSpaceID id)
public boolean greaterThanOrEqual(IndexSpaceID id)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String indent)
public static void main(java.lang.String[] args)