OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.ResourceVelocitySession
Implementsosid.OsidSession
Description

This session defines methods to look up resources on paths.

MethodgetMapId
Description

Gets the Map Id associated with this session.

Returnosid.id.Idthe Map Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetMap
Description

Gets the Map associated with this session.

Returnosid.mapping.Mapthe map
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedMapView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetResourceVelocity
Description

Gets the current velocity of the given resource.

Parametersosid.id.IdresourceIda resource Id
Returnosid.mapping.path.ResourceVelocitythe current velocity
ErrorsNOT_FOUND resourceId is not on map
NULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListresourceIdsa resource list
Returnosid.mapping.path.ResourceVelocityListthe current velocities
ErrorsNOT_FOUNDa resource Id is not on map
NULL_ARGUMENT resourceIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpathIda path Id
Returnosid.mapping.path.ResourceVelocityListthe resource velocities
ErrorsNOT_FOUND pathId not found
NULL_ARGUMENT pathId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpathIda path Id
Returnosid.mapping.path.ResourceVelocityListthe resource velocities
ErrorsNULL_ARGUMENT pathId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpathIda path Id
osid.type.TyperesourceGenusTypea resource genus type
Returnosid.mapping.path.ResourceVelocityListthe resource velocities
ErrorsNOT_FOUND pathId not found
NULL_ARGUMENT pathId or resourceGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetResourceVelocitiesInSpatialUnit
Description

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

Parametersosid.mapping.SpatialUnitspatialUnita spatial unit
Returnosid.mapping.path.ResourceVelocityListthe current velocities
ErrorsNULL_ARGUMENT spatialUnit is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis 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.SpatialUnitspatialUnita spatial unit
osid.type.TyperesourceGenusTypea resource genus type
Returnosid.mapping.path.ResourceVelocityListthe resource velocities
ErrorsNULL_ARGUMENT spatialUnit or resourceGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDspatial unit not supported
CompliancemandatoryThis method must be implemented.