OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.SpeedZoneForm
Implementsosid.OsidRuleForm
Description

This is the form for creating and updating SpeedZones. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the SpeedZoneAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetStartingCoordinateMetadata
Description

Gets the metadata for a starting coordinate.

Returnosid.Metadatametadata for the starting coordinate
CompliancemandatoryThis method must be implemented.
MethodsetStartingCoordinate
Description

Sets the starting coordinate.

Parametersosid.mapping.Coordinatecoordinatethe new starting coordinate
ErrorsINVALID_ARGUMENT coordinate is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT coordinate is null
UNSUPPORTED coordinate type is not supported
CompliancemandatoryThis method must be implemented.
MethodclearStartingCoordinate
Description

Removes the starting coordinate.

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

Gets the metadata for a ending coordinate.

Returnosid.Metadatametadata for the ending coordinate
CompliancemandatoryThis method must be implemented.
MethodsetEndingCoordinate
Description

Sets the ending coordinate.

Parametersosid.mapping.Coordinatecoordinatethe new ending coordinate
ErrorsINVALID_ARGUMENT coordinate is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT coordinate is null
UNSUPPORTED coordinate type is not supported
CompliancemandatoryThis method must be implemented.
MethodclearEndingCoordinate
Description

Removes the ending coordinate.

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

Gets the metadata for a speed limit.

Returnosid.Metadatametadata for the speed limit
CompliancemandatoryThis method must be implemented.
MethodsetSpeedLimit
Description

Sets the speed limit.

Parametersosid.mapping.Speedspeedthe new speed limit
ErrorsINVALID_ARGUMENT speed is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT speed is null
CompliancemandatoryThis method must be implemented.
MethodclearSpeedLimit
Description

Removes the speed limit.

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

Gets the SpeedZoneFormRecord corresponding to the given speed zone record Type.

Parametersosid.type.TypespeedZoneRecordTypea speed zone record type
Returnosid.mapping.path.records.SpeedZoneFormRecordthe speed zone form record
ErrorsNULL_ARGUMENT speedZoneRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(speedZoneRecordType) is false
CompliancemandatoryThis method must be implemented.