OSID Logo
OSID Specifications
topology package
Version 3.0.0
Release Candidate Preview
Interfaceosid.topology.EdgeQuery
Implementsosid.OsidRelationshipQuery
Description

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

MethodmatchSourceNodeId
Description

Sets the node Id for this query to match edges assigned to 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.
MethodclearSourceNodeIdTerms
Description

Clears the node Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSourceNodeQuery
Description

Tests if a NodeQuery is available.

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

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

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

Clears the node terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDestinationNodeId
Description

Sets the related node Id for this query to match edges assigned to 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.
MethodclearDestinationNodeIdTerms
Description

Clears the related node Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDestinationNodeQuery
Description

Tests if a NodeQuery is available.

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

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

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

Clears the related node terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSameNode
Description

Matches edges between the same node.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearSameNodeTerms
Description

Clears the same node terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDirectional
Description

Matches directional edges.

Parametersbooleanmatch true to match directional edges, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearDirectionalTerms
Description

Clears the directional terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBiDirectional
Description

Matches bi-directional edges.

Parametersbooleanmatch true to match bi-directional edges, false to match uni-directional edges
CompliancemandatoryThis method must be implemented.
MethodclearBiDirectionalTerms
Description

Clears the directional terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCost
Description

Matches edges that have the specified cost 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.
MethodmatchAnyCost
Description

Matches edges that has any cost assigned.

Parametersbooleanmatch true to match edges with any cost, false to match edges with no cost assigned
CompliancemandatoryThis method must be implemented.
MethodclearCostTerms
Description

Clears the cost terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistance
Description

Matches edges that have the specified distance 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 edges that has any distance assigned.

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

Clears the distance 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.
MethodgetEdgeQueryRecord
Description

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

Parametersosid.type.TypeedgeRecordTypean edge record type
Returnosid.topology.records.EdgeQueryRecordthe edge query record
ErrorsNULL_ARGUMENT edgeRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(edgeRecordType) is false
CompliancemandatoryThis method must be implemented.