Search in sources :

Example 1 with ForwardOrderLookUp

use of common.order.ForwardOrderLookUp in project solution-finder by knewjade.

the class HoldBreakEnumeratePieces method enumerate.

@Override
public Set<LongPieces> enumerate() throws IOException {
    assert counter == -1;
    int depth = generator.getDepth();
    ForwardOrderLookUp forwardOrderLookUp = new ForwardOrderLookUp(maxDepth, depth);
    AtomicInteger counter = new AtomicInteger();
    HashSet<LongPieces> searchingPieces = create(depth, forwardOrderLookUp, counter);
    this.counter = counter.get();
    return searchingPieces;
}
Also used : AtomicInteger(java.util.concurrent.atomic.AtomicInteger) ForwardOrderLookUp(common.order.ForwardOrderLookUp) LongPieces(common.datastore.blocks.LongPieces)

Aggregations

LongPieces (common.datastore.blocks.LongPieces)1 ForwardOrderLookUp (common.order.ForwardOrderLookUp)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1