OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.LocationAdjacencySession
Implementsosid.OsidSession
Used Byosid.mapping.MappingManager
osid.mapping.MappingProxyManager
Description

This session defines methods to traverse through a map.

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.
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
Compliancemandatory This 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.

Compliancemandatory This 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.

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.
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.IdlocationId the given location Id
cardinalhops the number of hops to include. 0 returns an empty list. 1 returns the immediate adjacent locations.
Returnosid.mapping.LocationList a list of locations
ErrorsNOT_FOUND locationId is not found
NULL_ARGUMENT locationId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdlocationId the given location Id
osid.id.IdanotherLocationId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.