-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8377593
commit 2649f63
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/main/java/smartcity/accessibility/Navegation/MapSegment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
32
src/main/java/smartcity/accessibility/Navegation/Navegation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/smartcity/accessibility/Navegation/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* @author yael | ||
*/ | ||
package smartcity.accessibility.Navegation; |