public class MasterProblem extends AbstractParallelMaster<SlaveProblem>
nbWorkingSlaves, slaves, wait
Constructor and Description |
---|
MasterProblem(String probClassName,
int nbThreads) |
Modifier and Type | Method and Description |
---|---|
void |
closeWithSuccess() |
boolean |
newSol(int val,
ResolutionPolicy policy)
A solution of cost val has been found
informs slaves that they must find better
|
void |
wishGranted()
A slave has CLOSED ITS SEARCH TREE, every one should stop!
|
distributedSlavery, sequentialSlavery
public MasterProblem(String probClassName, int nbThreads)
probClassName
- class name of the ParallelizedProblem to solvenbThreads
- number of threads to usepublic void wishGranted()
wishGranted
in class AbstractParallelMaster<SlaveProblem>
public boolean newSol(int val, ResolutionPolicy policy)
public void closeWithSuccess()
Copyright © 2015. All rights reserved.