JOELib
Computational Chemistry Package

joelib.util.iterator
Class NativeValueIterator

java.lang.Object
  extended byjoelib.util.iterator.NativeValueIterator
All Implemented Interfaces:
Iterator

public class NativeValueIterator
extends Object
implements Iterator

Gets an iterator over native descriptor values (int or double) of this molecule.

 NativeValueIterator nativeIt = mol.nativeValueIterator();
 double value;
 String descName;
 while (nativeIt.hasNext())
 {
   value = nativeIt.nextDouble();
   descName = nativeIt.actualName();

 }
 

See Also:
JOEMol.nativeValueIterator()
Author:
Jörg Kurt Wegner (wegnerj at informatik.uni-tuebingen.de) at the Department of Cognitive Systems
CVS Version:
Revision: 1.9Date: 2004/07/25 20:43:29source code (CVS head)
License:
Licensed under the terms of the GNU General Public License (GPL).

Constructor Summary
NativeValueIterator(JOEMol _mol, GenericDataIterator _gdit)
          Constructor for the GenericDataIterator object
 
Method Summary
 String actualName()
           
 boolean hasNext()
          Description of the Method
 Object next()
          Description of the Method
 double nextDouble()
           
 int nextInt()
           
 NativeValue nextNativeValue()
          Description of the Method
 String nextString()
           
 void remove()
          Description of the Method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeValueIterator

public NativeValueIterator(JOEMol _mol,
                           GenericDataIterator _gdit)
Constructor for the GenericDataIterator object

Method Detail

actualName

public String actualName()

hasNext

public boolean hasNext()
Description of the Method

Specified by:
hasNext in interface Iterator
Returns:
Description of the Return Value

next

public Object next()
Description of the Method

Specified by:
next in interface Iterator
Returns:
Description of the Return Value

nextDouble

public double nextDouble()

nextInt

public int nextInt()

nextNativeValue

public NativeValue nextNativeValue()
Description of the Method

Returns:
Description of the Return Value

nextString

public String nextString()

remove

public void remove()
Description of the Method

Specified by:
remove in interface Iterator

JOELib
Computational Chemistry Package

Comments and Questions? mail to J.K.Wegner