OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.RouteProgress
Implementsosid.OsidCompendium
Used Byosid.mapping.route.MyRouteSession
osid.mapping.route.ResourceRouteSession
osid.mapping.route.RouteProgressList
Description

Route progress defines methods to get information about progress along a route.

MethodgetResourceId
Description

Gets the Id of the resource on the route.

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

Gets the resource on the route.

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

Gets the route Id.

Returnosid.id.Id the route Id
Compliancemandatory This method must be implemented.
MethodgetRoute
Description

Gets the route.

Returnosid.mapping.route.Route the route
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetTimeStarted
Description

Gets the starting time on this route.

Returnosid.calendaring.DateTime the starting time
Compliancemandatory This method must be implemented.
MethodgetTotalDistanceTraveled
Description

Gets the total distance traveled.

Returnosid.mapping.Distance the distance
Compliancemandatory This method must be implemented.
MethodgetTotalTravelTime
Description

Gets the total travel time.

Returnosid.calendaring.Duration total travel time
Compliancemandatory This method must be implemented.
MethodisInMotion
Description

Tests if the object is in motion.

Returnboolean true if the object is in motion, false otherwise
Compliancemandatory This method must be implemented.
MethodgetTotalIdleTime
Description

Gets the total idle time before completion of the route.

Returnosid.calendaring.Duration total idle time
Compliancemandatory This method must be implemented.
MethodgetTimeLastMoved
Description

Get sthe time the object last moved.

Returnosid.calendaring.DateTime last moved time
Compliancemandatory This method must be implemented.
MethodisComplete
Description

Tests if the route has been completed.

Returnboolean true if the route has been completed, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRouteSegmentId
Description

Gets the current route segment Id.

Returnosid.id.Id the route segment Id
ErrorsILLEGAL_STATE isComplete() is true
Compliancemandatory This method must be implemented.
MethodgetRouteSegment
Description

Gets the current route segment.

Returnosid.mapping.route.RouteSegment the route segment
ErrorsILLEGAL_STATE isComplete() is true
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetETAToNextSegment
Description

Gets the estimated travel time to the next route segment.

Returnosid.calendaring.Duration the estimated travel time
ErrorsILLEGAL_STATE isComplete() is true
Compliancemandatory This method must be implemented.
MethodgetRouteSegmentTraveled
Description

Gets the distance along the current route segment traveled.

Returnosid.mapping.Distance distance along the current segment traveled
ErrorsILLEGAL_STATE isComplete() is true
Compliancemandatory This method must be implemented.
MethodgetTimeCompleted
Description

Gets the ending time for this route.

Returnosid.calendaring.DateTime the ending time
ErrorsILLEGAL_STATE isComplete() is false
Compliancemandatory This method must be implemented.
MethodgetRouteProgressRecord
Description

Gets the route progress record corresponding to the given RouteProgresst record Type .

Parametersosid.type.TyperouteProgressRecordType a route progress record type
Returnosid.mapping.route.records.RouteProgressRecord the route progress record
ErrorsNULL_ARGUMENT progressRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasDomainType(progressSegmentRecordType) is false
Compliancemandatory This method must be implemented.