Interface InstanceIterator
- All Known Subinterfaces:
ClaferOptimizer, ClaferSearch, OptimalInstanceIterator
- All Known Implementing Classes:
AbstractImprovementOptimizer, ClaferAsserter, ClaferMultiObjectiveOptimizerGIA, ClaferMultiObjectiveOptimizerOIA, ClaferNoObjectiveOptimizer, ClaferSingleObjectiveOptimizer, ClaferSolver, EquivalentParetoSolver, PartiallyKnownOptimizer, ReachedLimitBestKnownException
public interface InstanceIterator
- Author:
- jimmy
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstanceModel[]Return all the remaining instances.booleanfind()Find the next instance.instance()Return the instance from the lastfind()operation, if successful.intReturn the number of instances found so far.
-
Method Details
-
find
boolean find()Find the next instance.- Returns:
trueif and only if another solution is found,falseotherwise- Throws:
ReachedLimitException- if resource limit reached
-
instance
Return the instance from the lastfind()operation, if successful.- Returns:
- the instance
-
allInstances
Return all the remaining instances.- Returns:
- all the remaining instances
- Throws:
ReachedLimitException- if resource limit reached
-
instanceCount
int instanceCount()Return the number of instances found so far.- Returns:
- the number of instances found so far
-