ajout restriction autres voies pour les test

这个提交包含在:
bezza 2025-05-25 17:31:16 +02:00
父节点 469c810f44
当前提交 94a837123b
共有 2 个文件被更改,包括 11 次插入5 次删除

查看文件

@ -21,7 +21,13 @@ public class MyArcInspector implements ArcInspector {
boolean result=true; boolean result=true;
if (this.restreint){ if (this.restreint){
RoadInformation.RoadType type=arc.getRoadInformation().getType(); RoadInformation.RoadType type=arc.getRoadInformation().getType();
if (type==RoadInformation.RoadType.PEDESTRIAN || type==RoadInformation.RoadType.CYCLEWAY ) { if (type != RoadInformation.RoadType.MOTORWAY &&
type != RoadInformation.RoadType.TRUNK &&
type != RoadInformation.RoadType.PRIMARY &&
type != RoadInformation.RoadType.SECONDARY &&
type != RoadInformation.RoadType.TERTIARY &&
type != RoadInformation.RoadType.RESIDENTIAL &&
type != RoadInformation.RoadType.UNCLASSIFIED ) {
result=false; result=false;
} }
} }

查看文件

@ -175,10 +175,10 @@ public class TestDijkstra {
// System.out.println("== Trajet long (et pénible avec les enfants) =="); // System.out.println("== Trajet long (et pénible avec les enfants) ==");
// testScenario("bretagne.mapgr",564429,602395 , Mode.LENGTH, false,false,false); // testScenario("bretagne.mapgr",564429,602395 , Mode.LENGTH, false,false,false);
System.out.println("== Test bug dijkstra temps =="); // System.out.println("== Test bug dijkstra temps ==");
testScenario("paris.mapgr", 27361, 36108, Mode.TIME, true,false,false); // testScenario("paris.mapgr", 27361, 36108, Mode.TIME, true,false,false); // ce test mettait en lumière un problème d'arrondi qui est mtn résolu.
// System.out.println("== Trajet impossible (piste cyclable) =="); System.out.println("== Trajet impossible (piste cyclable) ==");
// testScenario("insa.mapgr",90,922 , Mode.LENGTH, false,false,true); //marche pas testScenario("insa.mapgr",90,922 , Mode.LENGTH, false,false,true); //marche pas
} }
} }