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

This session defines methods to track resources on routes.

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.
MethodcanAccessResourceRoutes
Description

Tests if this user can access the locations of resources. 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.
MethoduseComparativeResourceRouteView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryResourceRouteView
Description

A complete view of the Resource returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedMapView
Description

Federates the view for methods in this session. A federated view will include paths in maps which are children of this map in the map hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedMapView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this map only.

Compliancemandatory This method is must be implemented.
MethodisResourceOnARoute
Description

Tests if the resource is traveling along a route.

Parametersosid.id.IdresourceId a resource Id
Returnboolean true if the resource is on a route, false otherrwise
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodgetRouteSegmentForResource
Description

Gets the current route of the given resource.

Parametersosid.id.IdresourceId a resource Id
Returnosid.mapping.route.RouteSegment the current route segment
ErrorsILLEGAL_STATE isResourceOnARoute() is false
NOT_FOUND resourceId is not on map
NULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRouteSegmentsForResources
Description

Gets the current locations of the given resources. In plenary mode, the routes for all the given resources are returned or an error results. In comparative mode, routes may be omitted or reordered.

Parametersosid.id.IdListresourceIds a resource list
Returnosid.mapping.route.RouteSegmentList the current route segments
ErrorsNOT_FOUND a resourceId is not on map
NULL_ARGUMENT resourceIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesOnRoute
Description

Gets the resources along the given route. In plenary mode, all the resources on the route are returned or an error results. In comparative mode, resources may be omitted or reordered.

Parametersosid.id.IdrouteId a route Id
Returnosid.resource.ResourceList the resources on the route
ErrorsNULL_ARGUMENT routeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourcesOnRouteSegment
Description

Gets the resources on the given route segment. In plenary mode, all the resources on the route segment are returned or an error results. In comparative mode, resources may be omitted or reordered.

Parametersosid.id.IdrouteSegmentId a route segment Id
Returnosid.resource.ResourceList the resources on the route segment
ErrorsNULL_ARGUMENT routeSegmentId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRouteProgressForResource
Description

Gets the route progress for the given resource.

Parametersosid.id.IdresourceId a resource Id
Returnosid.mapping.route.RouteProgress the current route progress
ErrorsILLEGAL_STATE isResourceOnARoute() is false
NOT_FOUND resourceId is not on map
NULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetRouteProgressForResources
Description

Gets the route progress for the given resources. In plenary mode, the routes for all the given resources are returned or an error results. In comparative mode, routes may be omitted or reordered.

Parametersosid.id.IdListresourceIds a resource list
Returnosid.mapping.route.RouteProgressList the current route progress
ErrorsNOT_FOUND a resourceId is not found
NULL_ARGUMENT resourceIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.