OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.Obstacle
Implementsosid.OsidObject
osid.Operable
Used Byosid.mapping.path.ObstacleAdminSession
osid.mapping.path.ObstacleList
osid.mapping.path.ObstacleLookupSession
Description

A Obstacle represents a blockage along a Path.

MethodgetPathId
Description

Gets the path Id.

Returnosid.id.Id the Id of the path
Compliancemandatory This method must be implemented.
MethodgetPath
Description

Gets the path.

Returnosid.mapping.path.Path the path
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetStartingCoordinate
Description

Gets the starting coordinate of the obstacle on the path.

Returnosid.mapping.Coordinate the start of the zone
Compliancemandatory This method must be implemented.
MethodgetEndingCoordinate
Description

Gets the ending coordinate of the obstacle on the path.

Returnosid.mapping.Coordinate the end of the zone
Compliancemandatory This method must be implemented.
MethodgetObstacleRecord
Description

Gets the obstacle record corresponding to the given Obstacle record Type.This method is used to retrieve an object implementing the requested record. The obstacleRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(obstacleRecordType) is true.

Parametersosid.type.TypeobstacleRecordType the type of obstacle record to retrieve
Returnosid.mapping.path.records.ObstacleRecord the obstacle record
ErrorsNULL_ARGUMENT obstacleRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(obstacleRecordType) is false
Compliancemandatory This method must be implemented.