|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.disi.smatch.data.matrices.MatchMatrix
public class MatchMatrix
Default matrix for matching results.
| Constructor Summary | |
|---|---|
MatchMatrix()
|
|
| Method Summary | |
|---|---|
void |
endOfRow()
Signals end of row for a CRS scheme. |
char |
getElement(int x,
int y)
Returns an element. |
int |
getX()
Returns row count. |
int |
getY()
Returns column count. |
void |
init(int x,
int y)
Inits a matrix x rows per y columns. |
void |
init(int x,
int y,
int num_nz)
Inits a matrix x rows per y columns with a max of num_nz non-zero elements. |
void |
setElement(int x,
int y,
char value)
Sets an element. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatchMatrix()
| Method Detail |
|---|
public void init(int x,
int y)
IMatchMatrix
init in interface IMatchMatrixx - rows county - column count
public void init(int x,
int y,
int num_nz)
IMatchMatrix
init in interface IMatchMatrixx - rows county - column countnum_nz - amount of non-zero elementspublic void endOfRow()
IMatchMatrix
endOfRow in interface IMatchMatrix
public char getElement(int x,
int y)
IMatchMatrix
getElement in interface IMatchMatrixx - rowy - column
public void setElement(int x,
int y,
char value)
IMatchMatrix
setElement in interface IMatchMatrixx - rowy - columnvalue - a new element valuepublic int getX()
IMatchMatrix
getX in interface IMatchMatrixpublic int getY()
IMatchMatrix
getY in interface IMatchMatrixpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||