Search in sources :

Example 1 with FilterOnDemandBasicSolutions

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);
}
Also used : SeparableMinos(searcher.pack.SeparableMinos) ColumnField(core.column_field.ColumnField) FilterOnDemandBasicSolutions(searcher.pack.solutions.FilterOnDemandBasicSolutions)

Example 2 with FilterOnDemandBasicSolutions

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);
}
Also used : SeparableMinos(searcher.pack.SeparableMinos) ColumnField(core.column_field.ColumnField) FilterOnDemandBasicSolutions(searcher.pack.solutions.FilterOnDemandBasicSolutions)

Example 3 with FilterOnDemandBasicSolutions

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);
}
Also used : ColumnSmallField(core.column_field.ColumnSmallField) SeparableMinos(searcher.pack.SeparableMinos) ColumnField(core.column_field.ColumnField) EntryPoint(entry.EntryPoint) FilterOnDemandBasicSolutions(searcher.pack.solutions.FilterOnDemandBasicSolutions)

Aggregations

ColumnField (core.column_field.ColumnField)3 SeparableMinos (searcher.pack.SeparableMinos)3 FilterOnDemandBasicSolutions (searcher.pack.solutions.FilterOnDemandBasicSolutions)3 ColumnSmallField (core.column_field.ColumnSmallField)1 EntryPoint (entry.EntryPoint)1