public interface MyRouteSession extends OsidSession
This session defines methods to route between locations.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessMyLocation()
Tests if this user can query own location.
|
void |
cancelMyRoute()
Cancels the current route for this agent.
|
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
RouteProgress |
getMyProgress()
Gets the current route progress.
|
Route |
getMyRoute()
Gets the current route of this agent.
|
RouteSegment |
getMyRouteSegment()
Gets the current route segment of this agent.
|
boolean |
isOnRoute()
Tests if this agent is on a route.
|
RouteSegment |
selectMyRoute(Id routeId)
Sets the route for this agent.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getMapId()
Map Id associated with this
session. Map Id associated with this sessionmandatory - This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canAccessMyLocation()
PERMISSION_DENIED. This is intended as a hint to an
application that may not offer location operations to unauthorized
users. false if location methods are not authorized,
true otherwisemandatory - This method must be implemented. boolean isOnRoute()
true if the agent is on a route, false
otherrwisemandatory - This method must be implemented. Route getMyRoute() throws OperationFailedException, PermissionDeniedException
IllegalStateException - isOnRoute() is
false OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. RouteSegment getMyRouteSegment() throws OperationFailedException, PermissionDeniedException
IllegalStateException - isOnRoute() is
false OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. RouteSegment selectMyRoute(Id routeId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
routeId - a route Id AlreadyExistsException - the agent is already moving on
a routeNotFoundException - routeId is not foundNullArgumentException - routeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void cancelMyRoute()
throws OperationFailedException,
PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. RouteProgress getMyProgress() throws OperationFailedException, PermissionDeniedException
IllegalStateException - isOnRoute() is
false OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.