Class PathSession
-
- All Implemented Interfaces:
public final class PathSession
Observable path finding class. addListener to listen the Path and PathSessionState updates
Also
-
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
isLevelChange
private final Path
currentPath
private final LiveDirection
liveDirection
private final LocationAware
source
private final LocationAware
destination
private PTRMapViewMarker
destinationMarker
private final PathSessionState
state
private final String
failureMessage
-
Method Summary
Modifier and Type Method Description final Boolean
isLevelChange()
final Path
getCurrentPath()
final LiveDirection
getLiveDirection()
final LocationAware
getSource()
final LocationAware
getDestination()
final PTRMapViewMarker
getDestinationMarker()
Destination marker of the session final Unit
setDestinationMarker(PTRMapViewMarker destinationMarker)
Destination marker of the session final PathSessionState
getState()
final String
getFailureMessage()
final Unit
abort()
Aborts the path session final Unit
addListener(PathSessionListener listener)
Attaches listener to observe path session updates final Unit
removeListener(PathSessionListener listener)
Removes the listener if previously added -
-
Method Detail
-
isLevelChange
final Boolean isLevelChange()
-
getCurrentPath
final Path getCurrentPath()
-
getLiveDirection
final LiveDirection getLiveDirection()
-
getSource
final LocationAware getSource()
-
getDestination
final LocationAware getDestination()
-
getDestinationMarker
final PTRMapViewMarker getDestinationMarker()
Destination marker of the session
-
setDestinationMarker
final Unit setDestinationMarker(PTRMapViewMarker destinationMarker)
Destination marker of the session
-
getState
final PathSessionState getState()
-
getFailureMessage
final String getFailureMessage()
-
addListener
@Synchronized() final Unit addListener(PathSessionListener listener)
Attaches listener to observe path session updates
- Parameters:
listener
- PathSessionListener instance to observe session updates
-
removeListener
@Synchronized() final Unit removeListener(PathSessionListener listener)
Removes the listener if previously added
- Parameters:
listener
- to remove
-
-
-
-