Interface AdaptationTreeOptimizerIterator
public interface AdaptationTreeOptimizerIterator
Iterator for optimization.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current dataset, which will be optimized on the next call toexecuteCurrent().voidOptimizes all remaining datasets in the iterator.Optimizes current dataset and sets the cursor to the next one.booleanhasNext()Returnstrueif there are still datasets to optimize,falseotherwise.booleanReturnstrueif the optimizer is handling duplicates in the dataset tree.booleanReturnstrueif the optimizer is refactoring the dataset treeReturns the next dataset, which will become the current one after the next call toexecuteCurrent().
-
Method Details
-
hasNext
boolean hasNext()Returnstrueif there are still datasets to optimize,falseotherwise. -
currentAdaptation
Adaptation currentAdaptation()Returns the current dataset, which will be optimized on the next call toexecuteCurrent(). -
nextAdaptation
Adaptation nextAdaptation()Returns the next dataset, which will become the current one after the next call toexecuteCurrent(). -
executeAll
Optimizes all remaining datasets in the iterator.- Throws:
OperationException
-
executeCurrent
Optimizes current dataset and sets the cursor to the next one. Returns the optimized dataset, ornullif there are no more to optimize.- Throws:
OperationException
-
isForRefactor
boolean isForRefactor()Returnstrueif the optimizer is refactoring the dataset tree -
isForHandleDuplicates
boolean isForHandleDuplicates()Returnstrueif the optimizer is handling duplicates in the dataset tree.
-