/** * Create a new instance. * @param sleepTime The time to sleep each time * {@link Solver#solve(GlobalStateObject)} is called. * @param delegate The {@link Solver} to delegate the actual solving to. * @return A new instance. */ public static Solver create(long sleepTime, Solver delegate) { return new SleepySolver(sleepTime, delegate); }
@Override public Solver get(long seed) { return new SleepySolver(sleep, solver.get(seed)); } }