Search in sources :

Example 1 with Reachable

use of core.action.reachable.Reachable in project solution-finder by knewjade.

the class SRSValidSolutionFilter method testLast.

@Override
public boolean testLast(MinoFieldMemento memento) {
    if (!test(memento))
        return false;
    LinkedList<MinoOperationWithKey> operations = memento.getSeparableMinoStream(sizedBit.getWidth()).map(SeparableMino::toMinoOperationWithKey).collect(Collectors.toCollection(LinkedList::new));
    Reachable reachable = reachableThreadLocal.get();
    return BuildUp.existsValidBuildPattern(field, operations, sizedBit.getHeight(), reachable);
}
Also used : MinoOperationWithKey(common.datastore.MinoOperationWithKey) Reachable(core.action.reachable.Reachable)

Example 2 with Reachable

use of core.action.reachable.Reachable in project solution-finder by knewjade.

the class NoDeleteLineSolutionFilter method testLast.

@Override
public boolean testLast(MinoFieldMemento memento) {
    if (!test(memento))
        return false;
    LinkedList<MinoOperationWithKey> operations = memento.getSeparableMinoStream(sizedBit.getWidth()).map(SeparableMino::toMinoOperationWithKey).collect(Collectors.toCollection(LinkedList::new));
    Reachable reachable = reachableThreadLocal.get();
    return BuildUp.existsValidBuildPatternDirectly(field, operations, sizedBit.getHeight(), reachable);
}
Also used : MinoOperationWithKey(common.datastore.MinoOperationWithKey) Reachable(core.action.reachable.Reachable)

Example 3 with Reachable

use of core.action.reachable.Reachable in project solution-finder by knewjade.

the class UsingBlockAndValidKeySolutionFilter method testLast.

@Override
public boolean testLast(MinoFieldMemento memento) {
    if (!test(memento))
        return false;
    LinkedList<MinoOperationWithKey> operations = memento.getSeparableMinoStream(sizedBit.getWidth()).map(SeparableMino::toMinoOperationWithKey).collect(Collectors.toCollection(LinkedList::new));
    Reachable reachable = reachableThreadLocal.get();
    return BuildUp.existsValidBuildPatternDirectly(field, operations, sizedBit.getHeight(), reachable);
}
Also used : MinoOperationWithKey(common.datastore.MinoOperationWithKey) Reachable(core.action.reachable.Reachable)

Aggregations

MinoOperationWithKey (common.datastore.MinoOperationWithKey)3 Reachable (core.action.reachable.Reachable)3