OSID Logo
OSID Specifications
mapping route package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.route.RouteSegmentForm
Implementsosid.OsidObjectForm
Description

A route segment represents a portion of a route.

MethodgetStartingInstructionsMetadata
Description

Gets the metadata for the starting instructions.

Returnosid.Metadatametadata for the starting instructions
CompliancemandatoryThis method must be implemented.
MethodsetStartingInstructions
Description

Sets the starting instructions.

ParametersstringstartingInstructionsthe new starting instructions
ErrorsINVALID_ARGUMENT startingInstructions is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT startingInstructions is null
CompliancemandatoryThis method must be implemented.
MethodclearStartingInstructions
Description

Clears the starting instructions.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetEndingInstructionsMetadata
Description

Gets the metadata for the ending instructions.

Returnosid.Metadatametadata for the ending instructions
CompliancemandatoryThis method must be implemented.
MethodsetEndingInstructions
Description

Sets the ending instructions.

ParametersstringendingInstructionsthe new ending instructions
ErrorsINVALID_ARGUMENT endingInstructions is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT endingInstructions is null
CompliancemandatoryThis method must be implemented.
MethodclearEndingInstructions
Description

Clears the ending instructions.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDistanceMetadata
Description

Gets the metadata for the distance.

Returnosid.Metadatametadata for the distance
CompliancemandatoryThis method must be implemented.
MethodsetDistance
Description

Sets the distance for this segment.

Parametersosid.mapping.Distancedistancethe new distance
ErrorsINVALID_ARGUMENT distance is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT distance is null
CompliancemandatoryThis method must be implemented.
MethodclearDistance
Description

Clears the distance.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetETAMetadata
Description

Gets the metadata for the estimated travel time.

Returnosid.Metadatametadata for the eta
CompliancemandatoryThis method must be implemented.
MethodsetETA
Description

Sets the estimated travel time for this segment.

Parametersosid.calendaring.Durationetathe new eta
ErrorsINVALID_ARGUMENT eta is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT eta is null
CompliancemandatoryThis method must be implemented.
MethodclearETA
Description

Clears the eta.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetPathMetadata
Description

Gets the metadata for the path.

Returnosid.Metadatametadata for the path
CompliancemandatoryThis method must be implemented.
MethodsetPath
Description

Sets the path for this segment.

Parametersosid.id.IdpathIdthe new path
ErrorsINVALID_ARGUMENT pathId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT pathId is null
CompliancemandatoryThis method must be implemented.
MethodclearPath
Description

Clears the path.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetRouteSegmentFormRecord
Description

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

Parametersosid.type.TyperouteSegmentRecordTypea route segment record type
Returnosid.mapping.route.records.RouteSegmentFormRecordthe route segment form record
ErrorsNULL_ARGUMENT routeSegmentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(routeSegmentRecordType) is false
CompliancemandatoryThis method must be implemented.