OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.ResourceVelocity
Implementsosid.OsidCompendium
Description

A Velocity for a Resource.

MethodgetResourceId
Description

Gets the Resource Id.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetResource
Description

Gets the Resource.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSpeed
Description

Gets the current speed.

Returnosid.mapping.Speedthe current speed
CompliancemandatoryThis method must be implemented.
MethodgetPosition
Description

Gets the current position.

Returnosid.mapping.Coordinatethe current coordinate
CompliancemandatoryThis method must be implemented.
MethodgetHeading
Description

Gets the current heading.

Returnosid.mapping.Headingthe current heading
CompliancemandatoryThis method must be implemented.
MethodisOnPath
Description

Tests if the resource is on a designated path.

Returnboolean true if the resource is on a designated path, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPathId
Description

Gets the Path Id.

Returnosid.id.Idthe path Id
ErrorsILLEGAL_STATE isOnPath() is false
CompliancemandatoryThis method must be implemented.
MethodgetPath
Description

Gets the Path.

Returnosid.mapping.path.Paththe path
ErrorsILLEGAL_STATE isOnPath() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetResourceVelocityRecord
Description

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

Parametersosid.type.TyperesourceVelocityRecordTypethe type of resource velocity record to retrieve
Returnosid.mapping.path.records.ResourceVelocityRecordthe resource velocity record
ErrorsNULL_ARGUMENT resourceVelocityRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(resourceVelocityRecordType) is false
CompliancemandatoryThis method must be implemented.