OSID Logo
OSID Specifications
topology path package
Version 3.1.0
Interfaceosid.topology.path.PathQuery
Implementsosid.OsidRelationshipQuery
osid.OsidAggregateableQuery
Used Byosid.topology.path.PathQuery
osid.topology.path.PathQuerySession
osid.topology.path.PathSearchSession
osid.topology.path.PathSmartGraphSession
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
Compliancemandatory This method must be implemented.
MethodclearCompleteTerms
Description

Clears the path complete query terms.

Compliancemandatory This method must be implemented.
MethodmatchClosed
Description

Matches paths that are closed.

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

Clears the path closed query terms.

Compliancemandatory This method must be implemented.
MethodmatchStartingNodeId
Description

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

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

Clears the starting node Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetStartingNodeQuery
Description

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

Returnosid.topology.NodeQuery the node query
ErrorsUNIMPLEMENTED supportsStartingNodeQuery() is false
Complianceoptional This method must be implemented if supportsStartingNodeQuery() is true.
MethodclearStartingNodeTerms
Description

Clears the starting node query terms.

Compliancemandatory This method must be implemented.
MethodmatchEndingNodeId
Description

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

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

Clears the ending node Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetEndingNodeQuery
Description

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

Returnosid.topology.NodeQuery the node query
ErrorsUNIMPLEMENTED supportsEndingNodeQuery() is false
Complianceoptional This method must be implemented if supportsEndingNodeQuery() is true.
MethodclearEndingNodeTerms
Description

Clears the ending node query terms.

Compliancemandatory This method must be implemented.
MethodmatchAlongNodeIds
Description

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

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

Clears the along node Id query terms.

Compliancemandatory This method must be implemented.
MethodmatchIntersectingPathId
Description

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

Clears the intersecting path Id query terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetIntersectingPathQuery
Description

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

Returnosid.topology.path.PathQuery the path query
ErrorsUNIMPLEMENTED supportsIntersectingPathQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearIntersectingPathTerms
Description

Clears the intersecting path query terms.

Compliancemandatory This method must be implemented.
MethodmatchHops
Description

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

Parameterscardinalfrom starting range
cardinalto ending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
Compliancemandatory This method must be implemented.
MethodclearHopsTerms
Description

Clears the number of hops query terms.

Compliancemandatory This method must be implemented.
MethodmatchDistance
Description

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

Parametersdecimalfrom starting range
decimalto ending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearDistanceTerms
Description

Clears the distance query terms.

Compliancemandatory This method must be implemented.
MethodmatchCost
Description

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

Parametersdecimalfrom starting range
decimalto ending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
Compliancemandatory This method must be implemented.
MethodclearCostTerms
Description

Clears the cost query terms.

Compliancemandatory This method must be implemented.
MethodmatchNodeId
Description

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

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

Clears the node Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsNodeQuery
Description

Tests if a NodeQuery is available.

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

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

Returnosid.topology.NodeQuery the node query
ErrorsUNIMPLEMENTED supportsNodeQuery() is false
Complianceoptional This method must be implemented if supportsNodeQuery() is true.
MethodclearNodeTerms
Description

Clears the node query terms.

Compliancemandatory This method must be implemented.
MethodmatchEdgeId
Description

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

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

Clears the edge Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsEdgeQuery
Description

Tests if an EdgeQuery is available.

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

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

Returnosid.topology.EdgeQuery the edge query
ErrorsUNIMPLEMENTED supportsEdgeQuery() is false
Complianceoptional This method must be implemented if supportsEdgeQuery() is true.
MethodclearEdgeTerms
Description

Clears the edge query terms.

Compliancemandatory This method must be implemented.
MethodmatchGraphId
Description

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

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

Clears the graph Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsGraphQuery
Description

Tests if a GraphQuery is available.

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

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

Returnosid.topology.GraphQuery the graph query
ErrorsUNIMPLEMENTED supportsGraphQuery() is false
Complianceoptional This method must be implemented if supportsGraphQuery() is true.
MethodclearGraphTerms
Description

Clears the graph terms.

Compliancemandatory This 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.TypepathRecordType a path record type
Returnosid.topology.path.records.PathQueryRecord the path query record
ErrorsNULL_ARGUMENT pathRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(pathRecordType) is false
Compliancemandatory This method must be implemented.