Interface PathManager
-
- 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 PathSession
startPathSession(Path path)
Starts path session from given path. 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- Returns:
PathSession that's initiated for given destination, null if given destination poi container does not have any Pois
-
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- Returns:
PathSession to closest location in given destinations, null if destinations is empty
-
startPathSession
abstract PathSession startPathSession(Path path)
Starts path session from given path. Starts the path session for Path
- Parameters:
path
- : non null path object Path- Returns:
-
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- Returns:
Calculated path
-
calculatePath
abstract Path calculatePath(List<LocationAware> destinations)
Calculates path to the closest Location from the given array of Locations
- Parameters:
destinations
- the destinations- Returns:
Calculated path
-
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- Returns:
Distance in meters
-
isReadyForSite
abstract Boolean isReadyForSite(Site site)
Checks whether path is ready for use for given site
-
-
-
-