use of searcher.pack.solutions.FilterOnDemandBasicSolutions in project solution-finder by knewjade.
the class PackSearcherTest method createFilterOnDemandBasicSolutions.
private BasicSolutions createFilterOnDemandBasicSolutions(SizedBit sizedBit, SolutionFilter solutionFilter) {
SeparableMinos separableMinos = SeparableMinos.createSeparableMinos(minoFactory, minoShifter, sizedBit);
Predicate<ColumnField> memorizedPredicate = BasicSolutions.createBitCountPredicate(1);
return new FilterOnDemandBasicSolutions(separableMinos, sizedBit, memorizedPredicate, solutionFilter);
}
use of searcher.pack.solutions.FilterOnDemandBasicSolutions in project solution-finder by knewjade.
the class PackSearcherTest method createFilterOnDemandBasicSolutions.
private BasicSolutions createFilterOnDemandBasicSolutions(SizedBit sizedBit, ColumnSmallField field, SolutionFilter solutionFilter) {
SeparableMinos separableMinos = SeparableMinos.createSeparableMinos(minoFactory, minoShifter, sizedBit);
Predicate<ColumnField> memorizedPredicate = BasicSolutions.createBitCountPredicate(1);
return new FilterOnDemandBasicSolutions(separableMinos, sizedBit, field, memorizedPredicate, solutionFilter);
}
use of searcher.pack.solutions.FilterOnDemandBasicSolutions in project solution-finder by knewjade.
the class PathEntryPoint method calculateBasicSolutions.
private BasicSolutions calculateBasicSolutions(Field field, MinoFactory minoFactory, MinoShifter minoShifter, SizedBit sizedBit, SolutionFilter solutionFilter) throws FinderInitializeException {
// ミノのリストを作成する
SeparableMinos separableMinos = SeparableMinos.createSeparableMinos(minoFactory, minoShifter, sizedBit);
// 基本パターンを計算
int cachedMinBit = settings.getCachedMinBit();
Predicate<ColumnField> predicate = createPredicate(cachedMinBit);
ColumnSmallField maxOuterBoard = InOutPairField.createMaxOuterBoard(sizedBit, field);
return new FilterOnDemandBasicSolutions(separableMinos, sizedBit, maxOuterBoard, predicate, solutionFilter);
}
Aggregations