OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.MyRouteSession
Implementsosid.OsidSession
Used Byosid.mapping.route.MappingRouteManager
osid.mapping.route.MappingRouteProxyManager
Description

This session defines methods to route between locations.

MethodgetMapId
Description

Gets the Map Id associated with this session.

Returnosid.id.Id the Map Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Map the map
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanAccessMyLocation
Description

Tests if this user can query own location. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer location operations to unauthorized users.

Returnboolean false if location methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodisOnRoute
Description

Tests if this agent is on a route.

Returnboolean true if the agent is on a route, false otherrwise
Compliancemandatory This method must be implemented.
MethodgetMyRoute
Description

Gets the current route of this agent.

Returnosid.mapping.route.Route the current route
ErrorsILLEGAL_STATE isOnRoute() is false
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetMyRouteSegment
Description

Gets the current route segment of this agent.

Returnosid.mapping.route.RouteSegment the current route segment
ErrorsILLEGAL_STATE isOnRoute() is false
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodselectMyRoute
Description

Sets the route for this agent.

Parametersosid.id.IdrouteId a route Id
Returnosid.mapping.route.RouteSegment the current route segment
ErrorsALREADY_EXISTS the agent is already moving on a route
NOT_FOUND routeId is not found
NULL_ARGUMENT routeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcancelMyRoute
Description

Cancels the current route for this agent.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetMyProgress
Description

Gets the current route progress.

Returnosid.mapping.route.RouteProgress the current route progress
ErrorsILLEGAL_STATE isOnRoute() is false
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.