Skip to content

Commit

Permalink
REmoved Configurable interace, using abstract method instead
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 5, 2024
1 parent a354b1e commit ddca487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/main/java/de/nqueensfaf/Configurable.java

This file was deleted.

4 changes: 3 additions & 1 deletion src/main/java/de/nqueensfaf/Solver.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.IOException;
import java.util.function.Consumer;

public abstract class Solver implements Configurable {
public abstract class Solver {

protected int N;

Expand All @@ -31,6 +31,8 @@ protected Solver() {
public abstract float getProgress();
public abstract long getSolutions();

public abstract <T extends Config> T config();

protected abstract void run();
protected abstract void save_(String filepath) throws IOException;
protected abstract void load_(String filepath) throws IOException, ClassNotFoundException, ClassCastException;
Expand Down

0 comments on commit ddca487

Please sign in to comment.