chemaxon.reaction
Interface ReactantSetEnumeration


public interface ReactantSetEnumeration

Enumerates reactant sets for Reactor. Usage: see ConcurrentReactorProcessor.setReactantSetEnumerator(ReactantSetEnumeration).

Since:
JChem 5.2
Author:
Zsolt Mohacsi

Method Summary
 double getProgress()
          Returns a number between 0 and 1 that indicates the status of the enumeration progress.
 boolean hasNext()
          Tests if this enumeration contains more reactant sets.
 Molecule[] next()
          Returns the next reactant set if this enumeration has at least one more reactant set to provide.
 

Method Detail

hasNext

boolean hasNext()
Tests if this enumeration contains more reactant sets.

Returns:
true if and only if this enumeration contains at least one more element to provide; false otherwise.

next

Molecule[] next()
Returns the next reactant set if this enumeration has at least one more reactant set to provide.

Returns:
the next reactant set
Throws:
java.util.NoSuchElementException - if an error stopped the enumeration

getProgress

double getProgress()
Returns a number between 0 and 1 that indicates the status of the enumeration progress.

Returns:
a number that indicates the status of the enumeration progress