-
- All Implemented Interfaces:
public interface PathManager
Main manager class responsible for all the path management.
-
-
Method Summary
Modifier and Type Method Description abstract PathSession
startPathSession(PoiContainer destination)
Starts path session to given poiContainer abstract PathSession
startPathSession(List<LocationAware> destinations)
Starts path session to given locations. abstract Path
calculatePath(LocationAware source, List<LocationAware> destinations)
Calculates path between the source and the closest positioned Location from the given array of Locatoins abstract Path
calculatePath(List<LocationAware> destinations)
Calculates path to the closest Location from the given array of Locations abstract Unit
setCurrentMode(PathFindingMode newMode)
Sets pathfinding mode: NORMAL, EASY or ACCESSIBLE abstract Double
getApproximateDistance(LocationAware first, LocationAware second)
Returns the approximate (bird's eye) distance between two locations -
-
Method Detail
-
startPathSession
abstract PathSession startPathSession(PoiContainer destination)
Starts path session to given poiContainer
- Parameters:
destination
- : destination poiContainer
-
startPathSession
abstract PathSession startPathSession(List<LocationAware> destinations)
Starts path session to given locations. Automatically detects the closest location and starts the path session for selected Location
- Parameters:
destinations
- : list of destination Locations
-
calculatePath
abstract Path calculatePath(LocationAware source, List<LocationAware> destinations)
Calculates path between the source and the closest positioned Location from the given array of Locatoins
- Parameters:
source
- the sourcedestinations
- the destinations
-
calculatePath
abstract Path calculatePath(List<LocationAware> destinations)
Calculates path to the closest Location from the given array of Locations
- Parameters:
destinations
- the destinations
-
setCurrentMode
abstract Unit setCurrentMode(PathFindingMode newMode)
Sets pathfinding mode: NORMAL, EASY or ACCESSIBLE
-
getApproximateDistance
abstract Double getApproximateDistance(LocationAware first, LocationAware second)
Returns the approximate (bird's eye) distance between two locations
- Parameters:
first
- first locationsecond
- second location
-
-
-
-