-
- All Implemented Interfaces:
-
com.pointrlabs.core.management.interfaces.Advertiser
public interface PathManager implements Advertiser<PathManager.Listener>
Main manager class responsible for all the path management.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
PathManager.Listener
-
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 abstract Boolean
isReadyForSite(Site site)
Checks whether path is ready for use for given site -
-
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
-
isReadyForSite
abstract Boolean isReadyForSite(Site site)
Checks whether path is ready for use for given site
-
-
-
-