|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthultig.util.MatrixItem
public class MatrixItem
Represents an item from a matrix, with its (i,j) coordinates its respective value (Aij).
Copyright: Copyright (c) 2007
Company: UBI/HULTIG
Constructor Summary | |
---|---|
MatrixItem(int i,
int j,
double aij)
Creates a matrix object. |
Method Summary | |
---|---|
double |
aij()
Gives the matrix (i,j) position value. |
int |
compare(Object o1,
Object o2)
The comparator used for sorting. |
int |
i()
Gives the matrix i-th (line reference) position, for this item. |
int |
j()
Gives the matrix j-th (column reference) position, for this item. |
String |
toString()
Converts this item to a string format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public MatrixItem(int i, int j, double aij)
i
- The i-th (line) matrix position.j
- The j-th (column) matrix position.x
- doubleMethod Detail |
---|
public int i()
public int j()
public double aij()
public int compare(Object o1, Object o2)
compare
in interface Comparator
o1
- The first object.o2
- The second object.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |