-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(application): move navigation module interface to api package
- Loading branch information
Showing
12 changed files
with
74 additions
and
214 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* Contact: [email protected] | ||
*/ | ||
|
||
package org.eclipse.mosaic.fed.application.ambassador.simulation.navigation; | ||
package org.eclipse.mosaic.fed.application.app.api.navigation; | ||
|
||
import org.eclipse.mosaic.lib.geo.GeoPoint; | ||
import org.eclipse.mosaic.lib.objects.road.IConnection; | ||
|
@@ -26,13 +26,14 @@ | |
import org.eclipse.mosaic.lib.routing.RoutingPosition; | ||
import org.eclipse.mosaic.lib.routing.RoutingResponse; | ||
|
||
import java.util.Collection; | ||
import javax.annotation.Nullable; | ||
|
||
/** | ||
* Interface to access the central navigation component from vehicle applications. | ||
* Interface to access navigational functions of the vehicle. | ||
* As one part, it offers methods to calculate routes from the current position of | ||
* the vehicle to a provided target location. | ||
*/ | ||
public interface INavigationModule { | ||
public interface NavigationModule { | ||
|
||
/** | ||
* Calculates one or more routes from the position of the vehicle to the given target location. | ||
|
@@ -52,22 +53,6 @@ public interface INavigationModule { | |
*/ | ||
RoutingResponse calculateRoutes(GeoPoint targetGeoPoint, RoutingParameters routingParameters); | ||
|
||
/** | ||
* Returns all existing routes that can be taken to target position using {@link RoutingPosition}. | ||
* | ||
* @param targetPosition The target position to calculate routes for. | ||
* @return All valid routes to target position. | ||
*/ | ||
Collection<CandidateRoute> retrieveAllValidRoutesToTarget(RoutingPosition targetPosition); | ||
|
||
/** | ||
* Returns all existing routes that can be taken to target position using {@link GeoPoint}. | ||
* | ||
* @param targetGeoPoint The target position to calculate routes for. | ||
* @return All valid routes to target position. | ||
*/ | ||
Collection<CandidateRoute> retrieveAllValidRoutesToTarget(GeoPoint targetGeoPoint); | ||
|
||
/** | ||
* Switch to a specific route. | ||
* | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* Contact: [email protected] | ||
*/ | ||
|
||
package org.eclipse.mosaic.fed.application.ambassador.simulation.navigation; | ||
package org.eclipse.mosaic.fed.application.app.api.navigation; | ||
|
||
import org.eclipse.mosaic.lib.geo.GeoPoint; | ||
import org.eclipse.mosaic.lib.objects.road.IConnection; | ||
|
@@ -24,9 +24,14 @@ | |
import org.eclipse.mosaic.lib.routing.RoutingResponse; | ||
|
||
/** | ||
* Interface to access the central navigation component from road side units. | ||
* Interface to access road routing functionalities for server or road side units. | ||
* The offered methods, for example, provide route calculation from a provided source to | ||
* a provided target location.<br> | ||
* In contrast to {@link NavigationModule}, a {@link RoutingModule} can only calculate routes, | ||
* but is not able to switch to calculated routes. Thus, the {@link RoutingModule} can be used | ||
* in server units to emulate central routíng service functionalities. | ||
*/ | ||
public interface IRoutingModule { | ||
public interface RoutingModule { | ||
|
||
/** | ||
* Calculates one or more routes from the position of the vehicle to the given target 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
Oops, something went wrong.