org.nuiton.math.matrix
Class BasicMatrix.BasicMatrixIteratorImpl

java.lang.Object
  extended by org.nuiton.math.matrix.BasicMatrix.BasicMatrixIteratorImpl
All Implemented Interfaces:
BasicMatrixIterator
Enclosing class:
BasicMatrix

protected class BasicMatrix.BasicMatrixIteratorImpl
extends Object
implements BasicMatrixIterator


Field Summary
protected  BasicMatrix matrix
           
protected  int pos
           
 
Constructor Summary
BasicMatrix.BasicMatrixIteratorImpl(BasicMatrix matrix)
           
 
Method Summary
 int[] getCoordinates()
          Retourne les coordonnés de l'élément.
 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

matrix

protected BasicMatrix matrix

pos

protected int pos
Constructor Detail

BasicMatrix.BasicMatrixIteratorImpl

public BasicMatrix.BasicMatrixIteratorImpl(BasicMatrix matrix)
Parameters:
matrix - la matrice sur lequel l'iterator doit travailler
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

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

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


Copyright © 2004-2012 CodeLutin. All Rights Reserved.