OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.ResourceVelocitySession
Implementsosid.OsidSession
Used Byosid.mapping.path.MappingPathManager
osid.mapping.path.MappingPathProxyManager
Description

This session defines methods to look up resources on paths.

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

Tests if this user can access the velocities 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 velocity methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeResourcePathView
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.
MethodusePlenaryResourcePathView
Description

A complete view of the Path 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.
MethodgetResourceVelocity
Description

Gets the current velocity of the given resource.

Parametersosid.id.IdresourceId a resource Id
Returnosid.mapping.path.ResourceVelocity the current velocity
ErrorsNOT_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.
MethodgeResourceVelociiesForResource
Description

Gets the current velocities of the given resources. In plenary mode, the returned list contains all of the velocities of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.id.IdListresourceIds a resource list
Returnosid.mapping.path.ResourceVelocityList the current velocities
ErrorsNOT_FOUND a resource Id 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.
MethodgetResourceVelocitiesByGenusType
Description

Gets the current velocities for a resource genus type. In plenary mode, the returned list contains all of the velocities of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.id.IdpathId a path Id
Returnosid.mapping.path.ResourceVelocityList the resource velocities
ErrorsNOT_FOUND pathId not found
NULL_ARGUMENT pathId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceVelocitiesOnPath
Description

Gets the current resource velocities on a given path. In plenary mode, the returned list contains all of the velocities of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.id.IdpathId a path Id
Returnosid.mapping.path.ResourceVelocityList the resource velocities
ErrorsNULL_ARGUMENT pathId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceVelocitiesOnPathByGenusType
Description

Gets the current velocities on a given path for a resource genus type. In plenary mode, the returned list contains all of the velocities of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.id.IdpathId a path Id
osid.type.TyperesourceGenusType a resource genus type
Returnosid.mapping.path.ResourceVelocityList the resource velocities
ErrorsNOT_FOUND pathId not found
NULL_ARGUMENT pathId or resourceGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetResourceVelocitiesInSpatialUnit
Description

Gets the current velocities for given resources in the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
Returnosid.mapping.path.ResourceVelocityList the current velocities
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.
MethodgetResourceVelocitiesInSpatialUnitByGenusType
Description

Gets the current velocities on a given path for a resource genus type. In plenary mode, the returned list contains all of the velocities of the supplied resources or an error results. In comparative mode, inaccessible resources may be omitted or duplicates suppressed or reordered.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
osid.type.TyperesourceGenusType a resource genus type
Returnosid.mapping.path.ResourceVelocityList the resource velocities
ErrorsNULL_ARGUMENT spatialUnit or resourceGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED spatial unit not supported
Compliancemandatory This method must be implemented.