OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.Obstacle
Implementsosid.OsidObject
osid.Operable
Description

A Obstacle represents a blockage along a Path.

MethodgetPathId
Description

Gets the path Id.

Returnosid.id.Idthe Id of the path
CompliancemandatoryThis method must be implemented.
MethodgetPath
Description

Gets the path.

Returnosid.mapping.path.Paththe path
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetStartingCoordinate
Description

Gets the starting coordinate of the obstacle on the path.

Returnosid.mapping.Coordinatethe start of the zone
CompliancemandatoryThis method must be implemented.
MethodgetEndingCoordinate
Description

Gets the ending coordinate of the obstacle on the path.

Returnosid.mapping.Coordinatethe end of the zone
CompliancemandatoryThis 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.TypeobstacleRecordTypethe type of obstacle record to retrieve
Returnosid.mapping.path.records.ObstacleRecordthe obstacle record
ErrorsNULL_ARGUMENT obstacleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(obstacleRecordType) is false
CompliancemandatoryThis method must be implemented.