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);
}
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);
}
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);
}
Aggregations