|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.SpaceID
edu.unh.sdb.datasource.IndexSpaceID
edu.unh.sdb.datasource.IntegerIndexSpaceID
public class IntegerIndexSpaceID
This class implements the IndexSpaceID class using an array of integers.
Field Summary | |
---|---|
protected int[] |
axes
|
Constructor Summary | |
---|---|
IntegerIndexSpaceID(IndexSpaceID id)
Constructs an IntegerIndexSpaceID from the contents of the IndexSpaceID argument. |
|
IntegerIndexSpaceID(IndexSpaceID id,
int value)
Constructs an IntegerIndexSpaceID with dimensionality matching id and all values set to value |
|
IntegerIndexSpaceID(int i)
Constructs a one dimensional IntegerIndexSpaceID with axis value set to the argument. |
|
IntegerIndexSpaceID(int[] axes)
Constructs a IntegerIndexSpaceID with dimensionality matching the length of the parameter array. |
|
IntegerIndexSpaceID(IntegerIndexSpaceID id)
Constructs an IntegerIndexSpaceID from the contents of the IntegerIndexSpaceID argument. |
|
IntegerIndexSpaceID(int i,
int j)
Constructs a two dimensional IntegerIndexSpaceID with axis values set to the given values. |
|
IntegerIndexSpaceID(int i,
int j,
int k)
Constructs a three dimensional IntegerIndexSpaceID with axis values set to the given values. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a copy of this IndexSpaceID. |
IndexSpaceID |
copyID()
Return a copy of this IndexSpaceID. |
int |
dim()
Returns the dimensionality of this IndexSpaceID. |
boolean |
equals(java.lang.Object obj)
Return true if parameter is equal to this object, false otherwise. |
int |
getCoord(int axisNumber)
Get the value corresponding to the specified axis. |
int[] |
getCoords(int[] coords)
Fill the array argument with the coordinate values for this ISID. |
static void |
main(java.lang.String[] args)
|
void |
setCoord(int axisNumber,
int value)
Set the specified axis to the 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. |
Methods inherited from class edu.unh.sdb.datasource.IndexSpaceID |
---|
add, add, containedBy, divide, getCoords, greaterThanOrEqual, lessThanOrEqual, mod, multiply, negate, project, scale, scale, setDimensionsInUnits, shift, subtract, subtract, subtract, volume |
Methods inherited from class edu.unh.sdb.common.SpaceID |
---|
setCoord |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int[] axes
Constructor Detail |
---|
public IntegerIndexSpaceID(int i)
public IntegerIndexSpaceID(int i, int j)
public IntegerIndexSpaceID(int i, int j, int k)
public IntegerIndexSpaceID(int[] axes)
public IntegerIndexSpaceID(IndexSpaceID id, int value)
id
and all values set to value
public IntegerIndexSpaceID(IndexSpaceID id)
public IntegerIndexSpaceID(IntegerIndexSpaceID id)
Method Detail |
---|
public final IndexSpaceID copyID()
copyID
in class IndexSpaceID
public java.lang.Object clone()
clone
in class SpaceID
public final int getCoord(int axisNumber)
getCoord
in class IndexSpaceID
public int[] getCoords(int[] coords)
getCoords
in class IndexSpaceID
public void setCoord(int axisNumber, int value)
setCoord
in class SpaceID
public final int dim()
dim
in class SpaceID
public boolean equals(java.lang.Object obj)
equals
in class IndexSpaceID
public java.lang.String toString()
toString
in class IndexSpaceID
public java.lang.String toString(java.lang.String indent)
toString
in class IndexSpaceID
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |