Epsilon changes.

This commit is contained in:
Didier Le Botlan 2024-06-03 15:06:07 +02:00
parent 32f99dba49
commit 32e5ffb462
2 changed files with 6 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public class ArcInspectorFactory {
@Override
public boolean isAllowed(Arc arc) {
return true;
return forCarsL.isAllowed(arc) ;
}
@Override
@ -108,7 +108,7 @@ public class ArcInspectorFactory {
} ;
// Non-private roads for pedestrian and bicycle:
static ArcInspector forBicyclesT = new ArcInspector() {
static ArcInspector forPedestrianT = new ArcInspector() {
static final int maxPedestrianSpeed = 5 ;
@ -155,7 +155,7 @@ public class ArcInspectorFactory {
filters.add(allArcsL) ;
filters.add(forCarsL) ;
filters.add(forCarsT) ;
filters.add(forBicyclesT);
filters.add(forPedestrianT);
// Add your own filters here (do not forget to implement toString()
// to get an understandable output!):

View File

@ -8,7 +8,10 @@ public class DijkstraAlgorithm extends ShortestPathAlgorithm {
@Override
protected ShortestPathSolution doRun() {
// First step: get data from the input problem.
// The getInputData method is inherited from parent class ShortestPathAlgorithm
final ShortestPathData data = getInputData();
ShortestPathSolution solution = null;
// TODO:
return solution;