Skip to content

Commit

Permalink
Remove Launcher, pass Config in CuckooSolver constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelLipski committed Jan 7, 2014
1 parent 44f60c6 commit 440c826
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/poshwolf/core/CuckooSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ public class CuckooSolver implements Solver {

private ArrayList<Nest> nests;
private Random random;
private CuckooSolverConfig config;

public CuckooSolver() {
public CuckooSolver(CuckooSolverConfig config) {
this.config = config;
random = new Random(System.currentTimeMillis());
}

Expand Down
45 changes: 0 additions & 45 deletions src/main/java/com/poshwolf/core/Launcher.java

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/scala/com/poshwolf/ws/WebServiceMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class PoshWolfWebService {
controller ! SetProgressRequest(myId, progress)
}
}
val solver = new CuckooSolver
val solver = new CuckooSolver(config)

val result = solver.solve(task, listener)

Expand Down

0 comments on commit 440c826

Please sign in to comment.