OSID Logo
OSID Specifications
mapping route package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.route.RouteQuery
Implementsosid.OsidRelationshipQuery
osid.OsidAggregateableQuery
Description

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

MethodmatchStartingLocationId
Description

Sets the location Id for this query to match routes with a starting location.

Parametersosid.id.IdlocationIdthe location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearStartingLocationIdTerms
Description

Clears the starting location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStartingLocationQuery
Description

Tests if a LocationQuery is available for a starting location.

Returnboolean true if a location query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetStartingLocationQuery
Description

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

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsStartingLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsStartingLocationQuery() is true.
MethodclearStartingLocationTerms
Description

Clears the starting location query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEndingLocationId
Description

Sets the location Id for this query to match routes with an ending location.

Parametersosid.id.IdlocationIdthe location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearEndingLocationIdTerms
Description

Clears the ending location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEndingLocationQuery
Description

Tests if a LocationQuery is available for an ending location.

Returnboolean true if a location query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEndingLocationQuery
Description

Gets the query for an ending location. Multiple retrievals produce a nested OR term.

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsEndingLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsEndingLocationQuery() is true.
MethodclearEndingLocationTerms
Description

Clears the ending location query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAlongLocationIds
Description

Sets the location Id for this query to match routes along all the given locations.

Parametersosid.id.Id[]locationIdsthe location Ids
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationIds is null
CompliancemandatoryThis method must be implemented.
MethodclearAlongLocationIdsTerms
Description

Clears the along location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistance
Description

Matches routes that have distances within the specified range inclusive.

Parametersosid.mapping.Distancefromstarting range
osid.mapping.Distancetoending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDistance
Description

Matches routes that has any distance assigned or calculated.

Parametersbooleanmatch true to match routes with any distance, false to match routes with no distance
CompliancemandatoryThis method must be implemented.
MethodclearDistanceTerms
Description

Clears the distance query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchETA
Description

Matches routes that have the specified estimated travel time inclusive.

Parametersosid.calendaring.Durationfromstarting range
osid.calendaring.Durationtoending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyETA
Description

Matches routes that has any estimated time assigned or calculated.

Parametersbooleanmatch true to match routes with any eta, false to match routes with no eta
CompliancemandatoryThis method must be implemented.
MethodclearETATerms
Description

Clears the ETA query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query to match routes through a location.

Parametersosid.id.IdlocationIdthe location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearLocationIdTerms
Description

Clears the location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLocationQuery
Description

Tests if a LocationQuery is available.

Returnboolean true if a location query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLocationQuery
Description

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

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsLocationQuery() is true.
MethodmatchAnyLocation
Description

Matches routes that has any location along the route, exclusive of the endpoints.

Parametersbooleanmatch true to match routes with any location, false to match routes with no location
CompliancemandatoryThis method must be implemented.
MethodclearLocationTerms
Description

Clears the location query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPathId
Description

Sets the path Id for this query to match routes using a designated path.

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

Clears the path Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPathQuery
Description

Tests if a PathQuery is available.

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

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

Returnosid.mapping.path.PathQuerythe path query
ErrorsUNIMPLEMENTED supportsPathQuery() is false
ComplianceoptionalThis method must be implemented if supportsPathQuery() is true.
MethodmatchAnyPath
Description

Matches routes using any designated path.

Parametersbooleanmatch true to match routes with any path false to match routes with no path
CompliancemandatoryThis method must be implemented.
MethodclearPathTerms
Description

Clears the path query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMapId
Description

Sets the map Id for this query to match routes assigned to maps.

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

Clears the map Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsMapQuery
Description

Tests if a MapQuery is available.

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

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

Returnosid.mapping.MapQuerythe map query
ErrorsUNIMPLEMENTED supportsMapQuery() is false
ComplianceoptionalThis method must be implemented if supportsMapQuery() is true.
MethodclearMapTerms
Description

Clears the map query terms.

CompliancemandatoryThis method must be implemented.
MethodgetRouteQueryRecord
Description

Gets the route query record corresponding to the given Route record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperouteRecordTypea route record type
Returnosid.mapping.route.records.RouteQueryRecordthe route query record
ErrorsNULL_ARGUMENT routeRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(routeRecordType) is false
CompliancemandatoryThis method must be implemented.