OSID Logo
OSID Specifications
mapping path package
Version 3.1.0
Interfaceosid.mapping.path.SpeedZoneQuery
Implementsosid.OsidRuleQuery
Used Byosid.mapping.path.SpeedZoneQuerySession
osid.mapping.path.SpeedZoneSearchSession
osid.mapping.path.SpeedZoneSmartMapSession
osid.mapping.path.rules.SpeedZoneEnablerQuery
Description

This is the query for searching speed zones. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchPathId
Description

Sets the path Id for this query to match speed zones along the given path.

Parametersosid.id.IdpathId the path Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pathId is null
Compliancemandatory This method must be implemented.
MethodclearPathIdTerms
Description

Clears the path Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPathQuery
Description

Tests if a PathQuery is available.

Returnboolean true if a path query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPathQuery
Description

Gets the query for a path. Multiple retrievals produce a nested OR term.

Returnosid.mapping.path.PathQuery the path query
ErrorsUNIMPLEMENTED supportsPathQuery() is false
Complianceoptional This method must be implemented if supportsPathQuery() is true.
MethodclearPathTerms
Description

Clears the path query terms.

Compliancemandatory This method must be implemented.
MethodmatchCoordinate
Description

Matches speed zones overlapping with the specified Coordinate.

Parametersosid.mapping.Coordinatecoordinate a coordinate
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT coordinate is null
Compliancemandatory This method must be implemented.
MethodclearCoordinateTerms
Description

Clears the coordinate query terms.

Compliancemandatory This method must be implemented.
MethodmatchContainingSpatialUnit
Description

Matches speed zones within the specified SpatialUnit.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
Compliancemandatory This method must be implemented.
MethodclearContainingSpatialUnitTerms
Description

Clears the spatial unit terms.

Compliancemandatory This method must be implemented.
MethodmatchImplicit
Description

Matches implicitly defined speed zones.

Parametersbooleanmatch true to match implicit speed zones with any boundary, false otherwise
Compliancemandatory This method must be implemented.
MethodclearImplicitTerms
Description

Clears the implicit query terms.

Compliancemandatory This method must be implemented.
MethodmatchSpeedLimit
Description

Matches speed zones with speed limite within the given range inclusive.

Parametersosid.mapping.Speedfrom starting speed range
osid.mapping.Speedto ending speed range
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT from or to is null
Compliancemandatory This method must be implemented.
MethodmatchAnySpeedLimit
Description

Matches speed zones with any speed limit set.

Parametersbooleanmatch true to match implicit speed zones with any speed limit, false otherwise
Compliancemandatory This method must be implemented.
MethodclearSpeedLimitTerms
Description

Clears the speed limit query terms.

Compliancemandatory This method must be implemented.
MethodmatchMapId
Description

Sets the map Id for this query.

Parametersosid.id.IdmapId the map Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mapId is null
Compliancemandatory This method must be implemented.
MethodclearMapIdTerms
Description

Clears the map Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsMapQuery
Description

Tests if a MapQuery is available.

Returnboolean true if a map query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetMapQuery
Description

Gets the query for a map. Multiple retrievals produce a nested OR term.

Returnosid.mapping.MapQuery the map query
ErrorsUNIMPLEMENTED supportsMapQuery() is false
Complianceoptional This method must be implemented if supportsMapQuery() is true.
MethodclearMapTerms
Description

Clears the map query terms.

Compliancemandatory This method must be implemented.
MethodgetSpeedZoneQueryRecord
Description

Gets the speed zone query record corresponding to the given SpeedZone record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypespeedZoneRecordType a speed zone record type
Returnosid.mapping.path.records.SpeedZoneQueryRecord the speed zone query record
ErrorsNULL_ARGUMENT speedZoneRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(speedZoneRecordType) is false
Compliancemandatory This method must be implemented.