-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbkg.java
More file actions
36 lines (21 loc) · 911 Bytes
/
bkg.java
File metadata and controls
36 lines (21 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
public class Solucionador {
private List<Lloc> llistaLlocs;
private Circuit solucio;
public void trobarSolucio(){
int i;
Ciutat ciutatActual = llistaLlocs.get(i);
int iP;
List<PuntInteres> llistaPi = ciutatActual.obtenirPi();
PuntInteres pActual = llistaPi.get();
while(llistaPi.get(iP)){
if (solucio.acceptable(ciutatActual.getPI()) & solucio.potSerMillor(optima,ciutatActual.getPI()){
solucio.anotar(ciutatActual.getPI());
if (! solucio.completa()){
trobarSolucio(ciutatActual.getPI());
}
}
PuntInteres pi = ciutatActual.getPI();
pi.acceptable(*param*);
}
}
}