From 1e4d6f3d8520d2433486995dd7a343a9ac29b6c7 Mon Sep 17 00:00:00 2001 From: Bafo Date: Wed, 22 Mar 2023 10:07:22 +0100 Subject: [PATCH] traveltime --- .project | 11 +++++++++++ be-graphes-algos/.project | 11 +++++++++++ be-graphes-gui/.project | 11 +++++++++++ be-graphes-model/.project | 11 +++++++++++ .../main/java/org/insa/graphs/model/Path.java | 7 ++++--- .../classes/org/insa/graphs/model/Path.class | Bin 4243 -> 4241 bytes 6 files changed, 48 insertions(+), 3 deletions(-) diff --git a/.project b/.project index 454ecbb..d4b6002 100644 --- a/.project +++ b/.project @@ -14,4 +14,15 @@ org.eclipse.m2e.core.maven2Nature + + + 1679475859473 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/be-graphes-algos/.project b/be-graphes-algos/.project index b6a40d2..49d039a 100644 --- a/be-graphes-algos/.project +++ b/be-graphes-algos/.project @@ -20,4 +20,15 @@ org.eclipse.jdt.core.javanature org.eclipse.m2e.core.maven2Nature + + + 1679475859353 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/be-graphes-gui/.project b/be-graphes-gui/.project index d58021d..5ccf4fa 100644 --- a/be-graphes-gui/.project +++ b/be-graphes-gui/.project @@ -20,4 +20,15 @@ org.eclipse.jdt.core.javanature org.eclipse.m2e.core.maven2Nature + + + 1679475859570 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/be-graphes-model/.project b/be-graphes-model/.project index eb2ad91..1c7fae2 100644 --- a/be-graphes-model/.project +++ b/be-graphes-model/.project @@ -20,4 +20,15 @@ org.eclipse.jdt.core.javanature org.eclipse.m2e.core.maven2Nature + + + 1679475859704 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java b/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java index c78b194..a9b794a 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/Path.java @@ -214,7 +214,7 @@ public class Path { */ public float getLength() { // TODO: - return 0; + return 0 ; } /** @@ -225,10 +225,11 @@ public class Path { * @return Time (in seconds) required to travel this path at the given speed (in * kilometers-per-hour). * - * + * @deprecated Need to be implemented. */ public double getTravelTime(double speed) { - return speed*3600/(getLength()*1000); + // TODO: + return speed /getLength()*3.6; } /** diff --git a/be-graphes-model/target/classes/org/insa/graphs/model/Path.class b/be-graphes-model/target/classes/org/insa/graphs/model/Path.class index 93cc4d77f536dc3d6982234024bdb8fecf4afb33..a3e6794319d848a9cfc9601677fa118aca736e38 100644 GIT binary patch delta 172 zcmbQNI8jmH)W2Q(7#J8#7$&eYFflSnO-^K$+Nd>wLzs(!k)fT3p^2fH&4K3(2%Oz~ zi9?q?n2A9MsDXh&1c)6NSQwarG>^L0Hiov|d=Z9@?DarC6N4O(WCI$(!0>`W9!QD- v#enJ<;u(U0G>Fy3&<&JlWawe&o$N25F8dX%jt8uV3962fp%18*iJ>0=W|kf= delta 158 zcmbQJI9XBP)W2Q(7#J8#7$&kaFflSnO-^K$+Nd>wLxRm=jRH`Dfq{#Gk)e}^p^2fH z#ifdYVe?rIUG@M*1`(i?GXo0)Gmz$27h!12*4oC