public interface LogicalPath extends LogicalLightPath
Modifier and Type | Method and Description |
---|---|
LogicalPath |
append(LogicalPath path)
Appends a path to the end this path.
|
LogicalPath |
append(LogicalPath path, double connectorNodeCost)
Deprecated.
use append(LogicalPath path);
|
LogicalPath |
append(long nextLinkId, double[] nextLinkCosts, long nextNodeId, double[] connectorNodeCosts)
Append a link to this path.
|
LogicalPath |
append(long nextLinkId, double nextLinkCost, long nextNodeId, double connectorNodeCosts)
Deprecated.
use append(long nextLinkId, double[] nextLinkCosts, long nextNodeId, double[] connectorNodeCosts);
|
java.lang.Object |
clone()
Support cloneable
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
double[] |
getCostsAtNode(int nodeIndex)
Returns the costs to pass through the input node.
|
double[][] |
getCostsAtNodes()
Returns an array of costs at each individual nodes on the path.
|
double[] |
getCostsToNode(int nodeIndex)
Returns the cumulative costs from the start node to the input node.
|
double[][] |
getCostsToNodes()
Returns an array of cumulative costs from the start node to the nodes on the path.
|
long[] |
getLinkIds()
Returns the array of link IDs on this path.
|
long[] |
getNodeIds()
Returns the array of node IDs on this path.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
int |
indexOfLink(long linkId)
Returns the index of the specified link in this path.
|
int |
indexOfNode(long nodeId)
Returns the index of the specified node in this path.
|
boolean |
isSimple()
Checks whether this path is simple or not.
|
LogicalPath |
prepend(LogicalPath path)
Appends a path to the beginning of this path.
|
LogicalPath |
prepend(LogicalPath path, double connectorNodeCost)
Deprecated.
use prepend(LogicalPath path);
|
LogicalPath |
prepend(long prevLinkId, double[] prevLinkCosts, long prevNodeId, double[] prevNodeCosts)
Prepend a link to this path.
|
LogicalPath |
prepend(long prevLinkId, double prevLinkCost, long prevNodeId, double prevNodeCost)
Deprecated.
use prepend(long prevLinkId, double[] prevLinkCosts, long prevNodeId, double[] connectorNodeCosts);
|
void |
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
getCost, getCosts, getEndNodeId, getFirstLinkId, getLastLinkId, getNumberOfLinks, getNumberOfNodes, getStartNodeId, isReverse, reverse, setCosts
long[] getLinkIds()
long[] getNodeIds()
boolean isSimple()
LogicalPath append(long nextLinkId, double nextLinkCost, long nextNodeId, double connectorNodeCosts) throws LODNetworkException
nextLinkId
- ID of the next linknextLinkCost
- cost of the next linknextNodeId
- ID of the next nodeconnectorNodeCosts
- cost of the connector nodeLODNetworkException
LogicalPath append(long nextLinkId, double[] nextLinkCosts, long nextNodeId, double[] connectorNodeCosts) throws LODNetworkException
nextLinkId
- ID of the next linknextLinkCosts
- costs of the next linknextNodeId
- ID of the next nodeconnectorNodeCosts
- costs of the connector nodeLODNetworkException
LogicalPath prepend(long prevLinkId, double prevLinkCost, long prevNodeId, double prevNodeCost) throws LODNetworkException
prevLinkId
- ID of the previous linkprevLinkCost
- cost of the previous linkprevNodeId
- ID of the previous nodeprevNodeCost
- costs of the node to be prependedLODNetworkException
LogicalPath prepend(long prevLinkId, double[] prevLinkCosts, long prevNodeId, double[] prevNodeCosts) throws LODNetworkException
prevLinkId
- ID of the previous linkprevLinkCosts
- costs of the previous linkprevNodeId
- ID of the previous nodeprevNodeCosts
- costs of the node to be prependedLODNetworkException
LogicalPath append(LogicalPath path, double connectorNodeCost) throws LODNetworkException
path
- path to append to the endconnectorNodeCost
- cost of the connector nodeLODNetworkException
LogicalPath append(LogicalPath path) throws LODNetworkException
path
- path to append to the endLODNetworkException
LogicalPath prepend(LogicalPath path, double connectorNodeCost) throws LODNetworkException
path
- path to append at the beginningconnectorNodeCost
- cost of the connector nodeLODNetworkException
LogicalPath prepend(LogicalPath path) throws LODNetworkException
path
- path to append at the beginningLODNetworkException
int indexOfNode(long nodeId)
nodeId
- node idint indexOfLink(long linkId)
linkId
- link iddouble[] getCostsToNode(int nodeIndex)
nodeIndex
- index of node in the reference pathdouble[] getCostsAtNode(int nodeIndex)
nodeIndex
-double[][] getCostsToNodes()
double[][] getCostsAtNodes()
CategorizedUserData getCategorizedUserData()
void setCategorizedUserData(CategorizedUserData userData)
userData
-UserData getUserData(int category)
void setUserData(int category, UserData userData)
userData
-java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException