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

This session defines methods to get path information for the authenticated agent.

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

Tests if this user can query own path. 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 path operations to unauthorized users.

Returnboolean false if path methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodonDesignatedPath
Description

Tests if this agent is on a designated path.

Returnboolean true if the agent is on a designated path, false otherrwise
CompliancemandatoryThis method must be implemented.
MethodgetMyPath
Description

Gets the current path of this agent.

Returnosid.mapping.path.Paththe current path
ErrorsILLEGAL_STATE onDesignatedPath() is false
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetMyVelocity
Description

Gets the current velocity of this agent.

Returnosid.mapping.path.ResourceVelocitythe current velocity
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.