OSID Logo
OSID Specifications
topology path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.topology.path.PathQuery
Implementsosid.OsidRelationshipQuery
osid.OsidAggregateableQuery
Description

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

MethodmatchComplete
Description

Matches paths that are complete.

Parametersbooleanmatch true to match complete paths, false to match inactive paths
CompliancemandatoryThis method must be implemented.
MethodclearCompleteTerms
Description

Clears the path complete query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchClosed
Description

Matches paths that are closed.

Parametersbooleanmatch true to match closed paths, false to match inactive paths
CompliancemandatoryThis method must be implemented.
MethodclearClosedTerms
Description

Clears the path closed query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchStartingNodeId
Description

Sets the node Id for this query to match paths with a starting node.

Parametersosid.id.IdnodeIdthe node Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT nodeId is null
CompliancemandatoryThis method must be implemented.
MethodclearStartingNodeIdTerms
Description

Clears the starting node Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStartingNodeQuery
Description

Tests if a NodeQuery is available for a starting node.

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

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

Returnosid.topology.NodeQuerythe node query
ErrorsUNIMPLEMENTED supportsStartingNodeQuery() is false
ComplianceoptionalThis method must be implemented if supportsStartingNodeQuery() is true.
MethodclearStartingNodeTerms
Description

Clears the starting node query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEndingNodeId
Description

Sets the node Id for this query to match paths with an ending node.

Parametersosid.id.IdnodeIdthe node Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT nodeId is null
CompliancemandatoryThis method must be implemented.
MethodclearEndingNodeIdTerms
Description

Clears the ending node Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEndingNodeQuery
Description

Tests if a NodeQuery is available for an ending node.

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

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

Returnosid.topology.NodeQuerythe node query
ErrorsUNIMPLEMENTED supportsEndingNodeQuery() is false
ComplianceoptionalThis method must be implemented if supportsEndingNodeQuery() is true.
MethodclearEndingNodeTerms
Description

Clears the ending node query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAlongNodeIds
Description

Sets the node Ids for this query to match paths along the given nodes.

Parametersosid.id.Id[]nodeIdsthe node Ids
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT nodeIds is null
CompliancemandatoryThis method must be implemented.
MethodclearAlongNodeIdsTerms
Description

Clears the along node Id query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIntersectingPathId
Description

Sets the path Id for this query to match paths intersecting with another 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.
MethodclearIntersectingPathIdTerms
Description

Clears the intersecting path Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIntersectingPathQuery
Description

Tests if a PathQuery is available for intersecting paths,

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

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

Returnosid.topology.path.PathQuerythe path query
ErrorsUNIMPLEMENTED supportsIntersectingPathQuery() is false
ComplianceoptionalThis method must be implemented if supportsIntersectingPathQuery() is true.
MethodmatchAnyIntersectingPath
Description

Matches paths with any intersecting path,

Parametersbooleanmatch true to match paths with any intersecting path, false to match paths with no intersecting path
CompliancemandatoryThis method must be implemented.
MethodclearIntersectingPathTerms
Description

Clears the intersecting path query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchHops
Description

Matches paths that have a number of hops within the given range inclusive.

Parameterscardinalfromstarting range
cardinaltoending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
CompliancemandatoryThis method must be implemented.
MethodclearHopsTerms
Description

Clears the number of hops query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistance
Description

Matches paths that have a distance with the given range inclusive.

Parametersdecimalfromstarting range
decimaltoending 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 paths that has any distance assigned.

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

Clears the distance query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCost
Description

Matches paths that have a cost with the given range inclusive.

Parametersdecimalfromstarting range
decimaltoending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
CompliancemandatoryThis method must be implemented.
MethodclearCostTerms
Description

Clears the cost query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNodeId
Description

Sets the node Id for this query to match paths that pass through nodes.

Parametersosid.id.IdnodeIdthe node Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT nodeId is null
CompliancemandatoryThis method must be implemented.
MethodclearNodeIdTerms
Description

Clears the node Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsNodeQuery
Description

Tests if a NodeQuery is available.

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

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

Returnosid.topology.NodeQuerythe node query
ErrorsUNIMPLEMENTED supportsNodeQuery() is false
ComplianceoptionalThis method must be implemented if supportsNodeQuery() is true.
MethodclearNodeTerms
Description

Clears the node query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEdgeId
Description

Sets the edge Id for this query to match paths contain the edge.

Parametersosid.id.IdedgeIdthe edge Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT edgeId is null
CompliancemandatoryThis method must be implemented.
MethodclearEdgeIdTerms
Description

Clears the edge Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEdgeQuery
Description

Tests if an EdgeQuery is available.

Returnboolean true if an edge query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEdgeQuery
Description

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

Returnosid.topology.EdgeQuerythe edge query
ErrorsUNIMPLEMENTED supportsEdgeQuery() is false
ComplianceoptionalThis method must be implemented if supportsEdgeQuery() is true.
MethodclearEdgeTerms
Description

Clears the edge query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGraphId
Description

Sets the graph Id for this query to match edges assigned to graphs.

Parametersosid.id.IdgraphIdthe graph Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT graphId is null
CompliancemandatoryThis method must be implemented.
MethodclearGraphIdTerms
Description

Clears the graph Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGraphQuery
Description

Tests if a GraphQuery is available.

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

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

Returnosid.topology.GraphQuerythe graph query
ErrorsUNIMPLEMENTED supportsGraphQuery() is false
ComplianceoptionalThis method must be implemented if supportsGraphQuery() is true.
MethodclearGraphTerms
Description

Clears the graph terms.

CompliancemandatoryThis method must be implemented.
MethodgetPathQueryRecord
Description

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

Parametersosid.type.TypepathRecordTypea path record type
Returnosid.topology.path.records.PathQueryRecordthe path query record
ErrorsNULL_ARGUMENT pathRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(pathRecordType) is false
CompliancemandatoryThis method must be implemented.