com.github.skjolberg.packing.impl.Adapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 3d-bin-container-packing Show documentation
Show all versions of 3d-bin-container-packing Show documentation
Library for 3D rectangular bin packing
package com.github.skjolberg.packing.impl;
import com.github.skjolberg.packing.BoxItem;
import com.github.skjolberg.packing.Container;
import java.util.List;
import java.util.function.BooleanSupplier;
/**
* Logical packager for wrapping preprocessing / optimizations.
*/
public interface Adapter {
void initialize(List boxes, List container);
Container accepted(PackResult result);
PackResult attempt(int containerIndex, BooleanSupplier interrupt);
boolean hasMore(PackResult result);
}