All Packages Class Hierarchy This Package Previous Next Index
Interface jam.solver.Iterator
- public interface interface Iterator
An Iterator controls the iterations of a solver.
-
finish()
- A solver executes it after looping
-
hasMoreIterations()
- A solver executes it every loop step to decide to continue looping
-
nextIteration()
- A solver executes it every loop step (after it updates the approximation,
but before it increments the iteration number)
-
setSolver(IterativeSolver)
-
A solver hands itself to the iterator to allow access to
its methods
-
start()
- A solver executes it before looping
setSolver
public abstract void setSolver(IterativeSolver solver)
- A solver hands itself to the iterator to allow access to
its methods
start
public abstract void start()
- A solver executes it before looping
hasMoreIterations
public abstract boolean hasMoreIterations()
- A solver executes it every loop step to decide to continue looping
- Returns:
- false if solver is finished looping
nextIteration
public abstract void nextIteration()
- A solver executes it every loop step (after it updates the approximation,
but before it increments the iteration number)
finish
public abstract void finish()
- A solver executes it after looping
All Packages Class Hierarchy This Package Previous Next Index