public interface Path extends OsidRelationship, Aggregateable
A Path
represents a means between two nodes.
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getCost()
Gets the total cost of this path.
|
java.math.BigDecimal |
getDistance()
Gets the total distance of this path.
|
IdList |
getEdgeIds()
Gets the edge
Ids of this path. |
EdgeList |
getEdges()
Gets the edges of this path.
|
Node |
getEndingNode()
Gets the ending node of this path.
|
Id |
getEndingNodeId()
Gets the
Id of the ending node of this path. |
long |
getHops()
Gets the total number of nodes of this path.
|
PathRecord |
getPathRecord(Type pathRecordType)
Gets the path record corresponding to the given
Path
record Type. |
Node |
getStartingNode()
Gets the starting node of this path.
|
Id |
getStartingNodeId()
Gets the
Id of the starting node of this path. |
boolean |
isClosed()
Test if the starting node and ending node are equal.
|
boolean |
isComplete()
Tests if all edges exist between the start and end nodes.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getStartingNodeId()
Id
of the starting node of this path. Id
mandatory
- This method must be implemented. Node getStartingNode() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getEndingNodeId()
Id
of the ending node of this path. Id
mandatory
- This method must be implemented. Node getEndingNode() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isComplete()
true
if the path is complete, false
otherwisemandatory
- This method must be implemented. boolean isClosed()
true
if the path is closed, false
otherwisemandatory
- This method must be implemented. long getHops()
mandatory
- This method must be implemented. java.math.BigDecimal getDistance()
mandatory
- This method must be implemented. java.math.BigDecimal getCost()
mandatory
- This method must be implemented. IdList getEdgeIds()
Ids
of this path. Ids
mandatory
- This method must be implemented. EdgeList getEdges() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. PathRecord getPathRecord(Type pathRecordType) throws OperationFailedException
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
.pathRecordType
- the type of path record to retrieveNullArgumentException
- pathRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(pathRecordType)
is false
mandatory
- This method must be implemented.