/** * Wraps the specified {@link SingleVehicleArraysSolver} to allow easy * debugging. Every invocation of * {@link SingleVehicleArraysSolver#solve(int[][], int[], int[], int[][], int[], SolutionObject)} * all inputs and outputs are printed to <code>System.out</code>, also all * inputs and outputs are stored (accessible via * {@link SVASDebugger#getInputs()} and {@link SVASDebugger#getOutputs()}. * @param s The {@link SingleVehicleArraysSolver} to wrap. * @return The wrapped solver. */ public static SVASDebugger wrap(SingleVehicleArraysSolver s) { return new SVASDebugger(s, true); }
/** * Wraps the specified {@link SingleVehicleArraysSolver} to allow easy * debugging. Stores all invocation arguments and outputs and optionally * prints them to <code>System.out</code>. * @param s The {@link SingleVehicleArraysSolver} to wrap. * @param print If <code>true</code> all information will be printed as well. * @return The wrapped solver. */ public static SVASDebugger wrap(SingleVehicleArraysSolver s, boolean print) { return new SVASDebugger(s, print); }