OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.RouteSegment
Implementsosid.OsidObject
Used Byosid.mapping.route.MyRouteSession
osid.mapping.route.ResourceRouteSession
osid.mapping.route.RouteAdminSession
osid.mapping.route.RouteProgress
osid.mapping.route.RouteSegmentList
Description

A route segment represents a portion of a route.

MethodgetStartingInstructions
Description

Gets the starting instructions for this segment.

Returnosid.locale.DisplayText the starting instructions
Compliancemandatory This method must be implemented.
MethodgetEndingInstructions
Description

Gets the ending instructions for this segment.

Returnosid.locale.DisplayText the ending instructions
Compliancemandatory This method must be implemented.
MethodgetDistance
Description

Gets the length of the entire segment.

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

Gets the estimated travel time across the entire segment.

Returnosid.calendaring.Duration the estimated travel time
Compliancemandatory This method must be implemented.
MethodhasPath
Description

Tests if this segment has a corresponding path.

Returnboolean true if there is a path, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPathId
Description

Gets the corresponding path Id on which this segment travels.

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

Gets the corresponding path on which this segment travels.

Returnosid.mapping.path.Path the path
ErrorsILLEGAL_STATE hasPath() is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetRouteSegmentRecord
Description

Gets the route segment record corresponding to the given RouteSegment record Type.

Parametersosid.type.TyperouteSegmentRecordType a route segment record type
Returnosid.mapping.route.records.RouteSegmentRecord the route segment record
ErrorsNULL_ARGUMENT routeRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasDomainType(routeSegmentRecordType) is false
Compliancemandatory This method must be implemented.