OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.ResourceVelocity
Implementsosid.OsidCompendium
Used Byosid.mapping.path.MyPathSession
osid.mapping.path.ResourceVelocityList
osid.mapping.path.ResourceVelocitySession
Description

A Velocity for a Resource.

MethodgetResourceId
Description

Gets the Resource Id.

Returnosid.id.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the Resource.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetSpeed
Description

Gets the current speed.

Returnosid.mapping.Speed the current speed
Compliancemandatory This method must be implemented.
MethodgetPosition
Description

Gets the current position.

Returnosid.mapping.Coordinate the current coordinate
Compliancemandatory This method must be implemented.
MethodgetHeading
Description

Gets the current heading.

Returnosid.mapping.Heading the current heading
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetPathId
Description

Gets the Path Id.

Returnosid.id.Id the path Id
ErrorsILLEGAL_STATE isOnPath() is false
Compliancemandatory This method must be implemented.
MethodgetPath
Description

Gets the Path.

Returnosid.mapping.path.Path the path
ErrorsILLEGAL_STATE isOnPath() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This 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.TyperesourceVelocityRecordType the type of resource velocity record to retrieve
Returnosid.mapping.path.records.ResourceVelocityRecord the resource velocity record
ErrorsNULL_ARGUMENT resourceVelocityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resourceVelocityRecordType) is false
Compliancemandatory This method must be implemented.