diff --git a/src/main/java/smartcity/accessibility/Navegation/MapSegment.java b/src/main/java/smartcity/accessibility/Navegation/MapSegment.java new file mode 100644 index 00000000..d525fbc0 --- /dev/null +++ b/src/main/java/smartcity/accessibility/Navegation/MapSegment.java @@ -0,0 +1,12 @@ +package smartcity.accessibility.Navegation; + +/** + * + * @author yael This class represent the minimal segment of the map that can be + * declared as not accessible. This class might be changed to "Street" + * or something like that, + * + */ +public class MapSegment { + +} diff --git a/src/main/java/smartcity/accessibility/Navegation/Navegation.java b/src/main/java/smartcity/accessibility/Navegation/Navegation.java new file mode 100644 index 00000000..21014ad9 --- /dev/null +++ b/src/main/java/smartcity/accessibility/Navegation/Navegation.java @@ -0,0 +1,32 @@ +package smartcity.accessibility.Navegation; + +import java.util.ArrayList; +import java.util.List; + +import smartcity.accessibility.mapmanagement.Location; + +/** + * + * @author yael This class help finds routs in the city. The class contains + * segments of the map that should be avoided in the routes it returns. + */ +public class Navegation { + List segmentsToAvoid; + + public Navegation() { + this.segmentsToAvoid = new ArrayList(); + } + + public Route showRoute(Location source, Location destination) { + // TODO request rout from S to D from mapquest and return it. + return new Route(); + } + + public void addLocationToAvoid(Location __) { + // TODO this function might get Location or MapSegment or something like + // that + // and add it to the segments that need to be avoid in the route. + // for now the method get location which mean the method will find the + // right MapSegement for this location. + } +} diff --git a/src/main/java/smartcity/accessibility/Navegation/Route.java b/src/main/java/smartcity/accessibility/Navegation/Route.java new file mode 100644 index 00000000..43f1769b --- /dev/null +++ b/src/main/java/smartcity/accessibility/Navegation/Route.java @@ -0,0 +1,9 @@ +package smartcity.accessibility.Navegation; + +/** + * + * @author yael This class represent a route between 2 locations in the map. + */ +public class Route { + +} diff --git a/src/main/java/smartcity/accessibility/Navegation/package-info.java b/src/main/java/smartcity/accessibility/Navegation/package-info.java new file mode 100644 index 00000000..9eff901b --- /dev/null +++ b/src/main/java/smartcity/accessibility/Navegation/package-info.java @@ -0,0 +1,4 @@ +/** + * @author yael + */ +package smartcity.accessibility.Navegation;