Skip to content

Commit

Permalink
mini skeleton of the navegation #19
Browse files Browse the repository at this point in the history
  • Loading branch information
yaelAmitay committed Dec 9, 2016
1 parent 8377593 commit 2649f63
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/smartcity/accessibility/Navegation/MapSegment.java
Original file line number Diff line number Diff line change
@@ -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 {

}
32 changes: 32 additions & 0 deletions src/main/java/smartcity/accessibility/Navegation/Navegation.java
Original file line number Diff line number Diff line change
@@ -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<MapSegment> segmentsToAvoid;

public Navegation() {
this.segmentsToAvoid = new ArrayList<MapSegment>();
}

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.
}
}
9 changes: 9 additions & 0 deletions src/main/java/smartcity/accessibility/Navegation/Route.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package smartcity.accessibility.Navegation;

/**
*
* @author yael This class represent a route between 2 locations in the map.
*/
public class Route {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* @author yael
*/
package smartcity.accessibility.Navegation;

0 comments on commit 2649f63

Please sign in to comment.