Package it.unibo.alchemist.model
Interface RoutingService
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface RoutingService<P extends Position<P>, O extends RoutingServiceOptions<O>> implements Serializable
A service capable to generate routes into an environment. Parametric on the Position type P and the supported RoutingServiceOptions.
-
-
Method Summary
Modifier and Type Method Description PallowedPointClosestTo(P position)Retrieves (if available) the valid point closest to position, using the default options. abstract PallowedPointClosestTo(P position, O options)Retrieves (if available) the valid point closest to position with the provided options. Route<P>route(P from, P to)Computes a Route a P another. Route<P>route(P from, P to, String options)Computes a Route a P another, honoring the provided set of navigation options. abstract Route<P>route(P from, P to, O options)Computes a Route a P another, honoring the provided set of navigation options. abstract OparseOptions(String options)Creates a set of options from the provided string. abstract OgetDefaultOptions()The default set of options. -
-
Method Detail
-
allowedPointClosestTo
P allowedPointClosestTo(P position)
Retrieves (if available) the valid point closest to position, using the default options.
-
allowedPointClosestTo
abstract P allowedPointClosestTo(P position, O options)
Retrieves (if available) the valid point closest to position with the provided options. For instance, this method could be used to find the pedestrian-allowed road closer to a highway.
-
parseOptions
abstract O parseOptions(String options)
Creates a set of options from the provided string.
-
getDefaultOptions
abstract O getDefaultOptions()
The default set of options.
-
-
-
-