|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
marf.util.FreeVector
marf.util.Matrix
public class Matrix
Free Matrix - a multidimensional extension of FreeVector. The class is properly synchronized.
TODO: complete $Id: Matrix.java,v 1.15 2007/12/23 06:29:47 mokhov Exp $
FreeVector,
Serialized Form| Field Summary | |
|---|---|
protected int[] |
aiDimensions
Matrix dimensions. |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
Matrix()
Creates an 1-by-1 matrix. |
|
Matrix(int piCardinality)
Creates free matrix with certain cardinality. |
|
Matrix(int[] paiDimensions)
Creates a free matrix with user-defined dimensions. |
|
| Method Summary | |
|---|---|
void |
add(int[] paiPointIndex,
java.lang.Object poElement)
Not implemented. |
java.lang.Object |
elementAt(int[] paiPoint)
Allows to retrieve the object from a multidimensional matrix. |
int |
getCardinality()
Retrieves current number of dimensions of the matrix. |
int |
getDimention(int piDimensionNumber)
Retrieves a particular dimension value. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
| Methods inherited from class marf.util.FreeVector |
|---|
add, addAll, elementAt, ensureIndexCapacity, get, insertElementAt, remove, removeRange, set, setElementAt, subList |
| Methods inherited from class java.util.Vector |
|---|
add, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elements, ensureCapacity, equals, firstElement, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, setSize, size, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Field Detail |
|---|
protected int[] aiDimensions
| Constructor Detail |
|---|
public Matrix(int piCardinality)
piCardinality - number of dimensions of the matrix.public Matrix(int[] paiDimensions)
paiDimensions - the desired dimensions; if null, a 1-by-1 matrix createdpublic Matrix()
| Method Detail |
|---|
public final int getCardinality()
public final int getDimention(int piDimensionNumber)
piDimensionNumber - dimension number to the the value off
java.lang.ArrayIndexOutOfBoundsException - if the parameter is out of rangepublic java.lang.Object elementAt(int[] paiPoint)
paiPoint - dimension coordinates
public void add(int[] paiPointIndex,
java.lang.Object poElement)
paiPointIndex - dimension coordinates to insert the element atpoElement - the element to insert
NotImplementedExceptionpublic static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||