Class OnStreets
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.movestrategies.RoutingStrategy
,java.io.Serializable
public final class OnStreets<T, O extends RoutingServiceOptions<O>, S extends RoutingService<GeoPosition, O>> implements RoutingStrategy<T, P>
This strategy computes a route along streets allowed for a selected RoutingServiceOptions connecting the starting and ending point.
-
-
Method Summary
Modifier and Type Method Description Route<GeoPosition>
computeRoute(GeoPosition currentPos, GeoPosition finalPos)
-
-
Constructor Detail
-
OnStreets
OnStreets(MapEnvironment<T, O, S> environment, O options)
- Parameters:
environment
- the environmentoptions
- the RoutingServiceOptions
-
-
Method Detail
-
computeRoute
Route<GeoPosition> computeRoute(GeoPosition currentPos, GeoPosition finalPos)
-
-
-
-