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

This session defines methods to traverse through a map.

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

Tests if this user can query adjacenies of locations 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 lookup operations to unauthorized users.

Returnboolean false if location adjacency methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeLocationView
Description

The returns from the traversal 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.
MethodusePlenaryLocationView
Description

A complete view of the method 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.
MethodgetAdjacentLocations
Description

Gets a list of adjacent locations for the given location. The adjacent locations reflect the locations at the same level of the location hierarchy.

Parametersosid.id.IdlocationIdthe given location Id
cardinalhopsthe number of hops to include. 0 returns an empty list. 1 returns the immediate adjacent locations.
Returnosid.mapping.LocationLista list of locations
ErrorsNOT_FOUND locationId is not found
NULL_ARGUMENT locationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisAdjacent
Description

Tests if two locations of the same type are adjacent. A location is not adjacent if contained within another location.

Parametersosid.id.IdlocationIdthe given location Id
osid.id.IdanotherLocationIdthe given location Id
Returnboolean true of the locations are adjacent, false otherwise
ErrorsNOT_FOUND locationId or anotherLocationId is not found
NULL_ARGUMENT locationId or anotherLocationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.