OSID Logo
OSID Specifications
mapping route package
Version 3.1.0
Interfaceosid.mapping.route.RouteSegmentForm
Implementsosid.OsidObjectForm
Used Byosid.mapping.route.RouteAdminSession
Description

This is the form for creating and updating RouteSegments. Like all OsidForms, various data elements may be set here for use in the create and update methods in the RouteSegmentAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints. Some data may be automatically derived from the route segments.

MethodgetStartingInstructionsMetadata
Description

Gets the metadata for the starting instructions.

Returnosid.Metadata metadata for the starting instructions
Compliancemandatory This method must be implemented.
MethodsetStartingInstructions
Description

Sets the starting instructions.

ParametersstringstartingInstructions the new starting instructions
ErrorsINVALID_ARGUMENT startingInstructions is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT startingInstructions is null
Compliancemandatory This method must be implemented.
MethodclearStartingInstructions
Description

Clears the starting instructions.

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

Gets the metadata for the ending instructions.

Returnosid.Metadata metadata for the ending instructions
Compliancemandatory This method must be implemented.
MethodsetEndingInstructions
Description

Sets the ending instructions.

ParametersstringendingInstructions the new ending instructions
ErrorsINVALID_ARGUMENT endingInstructions is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT endingInstructions is null
Compliancemandatory This method must be implemented.
MethodclearEndingInstructions
Description

Clears the ending instructions.

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

Gets the metadata for the distance.

Returnosid.Metadata metadata for the distance
Compliancemandatory This method must be implemented.
MethodsetDistance
Description

Sets the distance for this segment.

Parametersosid.mapping.Distancedistance the new distance
ErrorsINVALID_ARGUMENT distance is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT distance is null
Compliancemandatory This method must be implemented.
MethodclearDistance
Description

Clears the distance.

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

Gets the metadata for the estimated travel time.

Returnosid.Metadata metadata for the eta
Compliancemandatory This method must be implemented.
MethodsetETA
Description

Sets the estimated travel time for this segment.

Parametersosid.calendaring.Durationeta the new eta
ErrorsINVALID_ARGUMENT eta is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT eta is null
Compliancemandatory This method must be implemented.
MethodclearETA
Description

Clears the eta.

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

Gets the metadata for the path.

Returnosid.Metadata metadata for the path
Compliancemandatory This method must be implemented.
MethodsetPath
Description

Sets the path for this segment.

Parametersosid.id.IdpathId the new path
ErrorsINVALID_ARGUMENT pathId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT pathId is null
Compliancemandatory This method must be implemented.
MethodclearPath
Description

Clears the path.

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

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

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