OSID Logo
OSID Specifications
topology path package
Version 3.1.0
Interfaceosid.topology.path.Path
Implementsosid.OsidRelationship
osid.Aggregateable
Used Byosid.topology.path.PathAdminSession
osid.topology.path.PathList
osid.topology.path.PathLookupSession
Description

A Path represents a means between two nodes.

MethodgetStartingNodeId
Description

Gets the Id of the starting node of this path.

Returnosid.id.Id the starting node Id
Compliancemandatory This method must be implemented.
MethodgetStartingNode
Description

Gets the starting node of this path.

Returnosid.topology.Node the starting node
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetEndingNodeId
Description

Gets the Id of the ending node of this path.

Returnosid.id.Id the ending node Id
Compliancemandatory This method must be implemented.
MethodgetEndingNode
Description

Gets the ending node of this path.

Returnosid.topology.Node the ending node
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisComplete
Description

Tests if all edges exist between the start and end nodes. A path may be complete and inactive.

Returnboolean true if the path is complete, false otherwise
Compliancemandatory This method must be implemented.
MethodisClosed
Description

Test if the starting node and ending node are equal.

Returnboolean true if the path is closed, false otherwise
Compliancemandatory This method must be implemented.
MethodgetHops
Description

Gets the total number of nodes of this path.

Returncardinal the total path hops
Compliancemandatory This method must be implemented.
MethodgetDistance
Description

Gets the total distance of this path.

Returndecimal the total path distance
Compliancemandatory This method must be implemented.
MethodgetCost
Description

Gets the total cost of this path.

Returndecimal the total path cost
Compliancemandatory This method must be implemented.
MethodgetEdgeIds
Description

Gets the edge Ids of this path.

Returnosid.id.IdList the edge Ids
Compliancemandatory This method must be implemented.
MethodgetEdges
Description

Gets the edges of this path.

Returnosid.topology.EdgeList the edges
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPathRecord
Description

Gets the path record corresponding to the given Path record Type.This method is used to retrieve an object implementing the requested record. The pathRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(pathRecordType) is true.

Parametersosid.type.TypepathRecordType the type of path record to retrieve
Returnosid.topology.path.records.PathRecord the path record
ErrorsNULL_ARGUMENT pathRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(pathRecordType) is false
Compliancemandatory This method must be implemented.