org.nuiton.math.matrix
Class SubMatrix.SubMatrixIteratorImpl

java.lang.Object
  extended by org.nuiton.math.matrix.SubMatrix.SubMatrixIteratorImpl
All Implemented Interfaces:
BasicMatrixIterator, MatrixIterator
Enclosing class:
SubMatrix

protected class SubMatrix.SubMatrixIteratorImpl
extends java.lang.Object
implements MatrixIterator


Field Summary
protected  int[] cpt
           
protected  int[] last
           
protected  SubMatrix subMatrix
           
 
Constructor Summary
SubMatrix.SubMatrixIteratorImpl(SubMatrix subMatrix)
           
 
Method Summary
 int[] getCoordinates()
          Retourne les coordonnés de l'élément.
 java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subMatrix

protected SubMatrix subMatrix

cpt

protected int[] cpt

last

protected int[] last
Constructor Detail

SubMatrix.SubMatrixIteratorImpl

public SubMatrix.SubMatrixIteratorImpl(SubMatrix subMatrix)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: BasicMatrixIterator
Retourne vrai s'il existe un suivant.

Specified by:
hasNext in interface BasicMatrixIterator
Returns:
vrai s'il y a un suivant, faux sinon

next

public boolean next()
Description copied from interface: BasicMatrixIterator
Passe à l'élément suivant.

Specified by:
next in interface BasicMatrixIterator
Returns:
vrai s'il y a un suivant, faux sinon

getCoordinates

public int[] getCoordinates()
Description copied from interface: BasicMatrixIterator
Retourne les coordonnés de l'élément.

Specified by:
getCoordinates in interface BasicMatrixIterator
Returns:
current element coordinates

getSemanticsCoordinates

public java.lang.Object[] getSemanticsCoordinates()
Description copied from interface: MatrixIterator
Retourne les coordonnés de l'élément, en sémantique. Si la matrice n'a pas de sémantique alors retourne null.

Specified by:
getSemanticsCoordinates in interface MatrixIterator
Returns:
current element semantics

getValue

public double getValue()
Description copied from interface: BasicMatrixIterator
Retourne la valeur courant pointé par l'iterator.

Specified by:
getValue in interface BasicMatrixIterator
Returns:
current element value

setValue

public void setValue(double value)
Description copied from interface: BasicMatrixIterator
Modifie la valeur courant pointé par l'iterator.

Specified by:
setValue in interface BasicMatrixIterator
Parameters:
value - new value to set to current element


Copyright © 2004-2009 CodeLutin. All Rights Reserved.