|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogicalPath
A LogicalPath is defined by an array of link IDs, array of node IDs, and the costs for traversing through this path. The cost of a path is the sum of the costs of the the links and nodes on the path, excluding that of the end node. The costs of the links and nodes are defined by LinkCostCalculator and NodeCostCalculator.
Method Summary | |
---|---|
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); |
CategorizedUserData |
getCategorizedUserData() Returns categorized user data. |
long[] |
getLinkIds() Returns the array of link IDs on this path. |
long[] |
getNodeIds() Returns the array of node IDs on this path. |
java.util.Map<java.lang.String,java.lang.Object> |
getUserData() Deprecated. |
UserData |
getUserData(int category) Returns user data for the specified category. |
java.lang.Object |
getUserData(java.lang.String dataName) Deprecated. |
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. |
void |
setUserData(java.util.Map<java.lang.String,java.lang.Object> userData) Deprecated. |
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue) Deprecated. |
Methods inherited from interface oracle.spatial.network.lod.LogicalLightPath |
---|
getCost, getCosts, getEndNodeId, getFirstLinkId, getLastLinkId, getNumberOfLinks, getNumberOfNodes, getStartNodeId |
Method Detail |
---|
long[] getLinkIds()
long[] getNodeIds()
boolean isSimple()
LogicalPath append(long nextLinkId, double nextLinkCost, long nextNodeId, double connectorNodeCosts)
nextLinkId
- ID of the next linknextLinkCost
- cost of the next linknextNodeId
- ID of the next nodeconnectorNodeCosts
- cost of the connector nodeLogicalPath append(long nextLinkId, double[] nextLinkCosts, long nextNodeId, double[] connectorNodeCosts)
nextLinkId
- ID of the next linknextLinkCosts
- costs of the next linknextNodeId
- ID of the next nodeconnectorNodeCosts
- costs of the connector nodeLogicalPath prepend(long prevLinkId, double prevLinkCost, long prevNodeId, double prevNodeCost)
prevLinkId
- ID of the previous linkprevLinkCost
- cost of the previous linkprevNodeId
- ID of the previous nodeprevNodeCost
- costs of the node to be prependedLogicalPath prepend(long prevLinkId, double[] prevLinkCosts, long prevNodeId, double[] prevNodeCosts)
prevLinkId
- ID of the previous linkprevLinkCosts
- costs of the previous linkprevNodeId
- ID of the previous nodeprevNodeCosts
- costs of the node to be prependedLogicalPath append(LogicalPath path, double connectorNodeCost)
path
- path to append to the endconnectorNodeCost
- cost of the connector nodeLogicalPath append(LogicalPath path)
path
- path to append to the endLogicalPath prepend(LogicalPath path, double connectorNodeCost)
path
- path to append at the beginningconnectorNodeCost
- cost of the connector nodeLogicalPath prepend(LogicalPath path)
path
- path to append at the beginningint indexOfNode(long nodeId)
nodeId
- node idint indexOfLink(long linkId)
linkId
- link idjava.lang.Object getUserData(java.lang.String dataName)
dataName
- name of the user datavoid setUserData(java.lang.String dataName, java.lang.Object dataValue)
dataName
- name of the user datadataValue
- value of the user dataCategorizedUserData getCategorizedUserData()
void setCategorizedUserData(CategorizedUserData userData)
userData
-UserData getUserData(int category)
void setUserData(int category, UserData userData)
userData
-java.util.Map<java.lang.String,java.lang.Object> getUserData()
void setUserData(java.util.Map<java.lang.String,java.lang.Object> userData)
userData
- user Data
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |