protected class SubMatrix.SubMatrixExcludeIteratorImpl extends Object implements MatrixIterator
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
coordinates |
protected int[] |
cpt |
protected int[] |
dim |
protected double |
exclude |
protected int[] |
last |
protected int[] |
nextCpt |
protected double |
nextValue |
protected Object[] |
posSems |
protected SubMatrix |
subMatrix |
protected double |
value |
| Constructor and Description |
|---|
SubMatrix.SubMatrixExcludeIteratorImpl(SubMatrix subMatrix,
double exclude) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
arrayGreaterOrEquals(int[] cpt1,
int[] cpt2)
retourne vrai si cpt1 est superieur ou egal a cpt2, on suppose que cpt1 et
cpt2 represente la meme chose (meme dimension, meme valeur max)
|
protected void |
computeNextCpt() |
protected void |
computeNextPosAndValue() |
int[] |
getCoordinates()
Retourne les coordonnés de l'élément.
|
Object[] |
getSemanticsCoordinates()
Retourne les coordonnés de l'élément, en sémantique.
|
double |
getValue()
Retourne la valeur courant pointé par l'iterator.
|
boolean |
hasNext()
Retourne vrai s'il existe un suivant.
|
boolean |
next()
Passe à l'élément suivant.
|
void |
setValue(double value)
Modifie la valeur courant pointé par l'iterator.
|
protected double exclude
protected SubMatrix subMatrix
protected int[] dim
protected int[] last
protected int[] coordinates
protected int[] cpt
protected int[] nextCpt
protected double value
protected double nextValue
protected Object[] posSems
public SubMatrix.SubMatrixExcludeIteratorImpl(SubMatrix subMatrix, double exclude)
protected boolean arrayGreaterOrEquals(int[] cpt1,
int[] cpt2)
cpt1 - cpt2 - protected void computeNextCpt()
protected void computeNextPosAndValue()
public boolean hasNext()
BasicMatrixIteratorhasNext in interface BasicMatrixIteratorpublic boolean next()
BasicMatrixIteratornext in interface BasicMatrixIteratorpublic int[] getCoordinates()
BasicMatrixIteratorgetCoordinates in interface BasicMatrixIteratorpublic Object[] getSemanticsCoordinates()
MatrixIteratorgetSemanticsCoordinates in interface MatrixIteratorpublic double getValue()
BasicMatrixIteratorgetValue in interface BasicMatrixIteratorpublic void setValue(double value)
BasicMatrixIteratorsetValue in interface BasicMatrixIteratorvalue - new value to set to current elementCopyright © 2004–2014 CodeLutin. All rights reserved.