public interface LogicalHeavyPath
Modifier and Type | Method and Description |
---|---|
LogicalHeavyPath |
append(LogicalHeavyPath path)
Appends a path after this path.
|
LogicalHeavyPath |
append(LogicalLink nextLink, LogicalNode nextNode, double[] nextLinkCosts, double[] nextNodeCosts)
Appends a link at the end of this path.
|
java.lang.Object |
clone()
Support cloneable
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
double |
getCost()
Deprecated.
use getCosts();
|
double[] |
getCosts()
Returns the costs of this path.
|
LogicalNode |
getEndNode()
Returns the last node on this path.
|
LogicalLink |
getFirstLink()
Returns the first link on this path.
|
LogicalLink |
getLastLink()
Returns the last link on this path.
|
LogicalLink[] |
getLinks()
Returns the logical links on this path.
|
LogicalNode[] |
getNodes()
Returns the logical nodes on this path.
|
LogicalNode |
getStartNode()
Returns the first node 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.
|
boolean |
isReverse()
Returns whether the path is reverse path or not.
|
LogicalHeavyPath |
prepend(LogicalHeavyPath path)
Appends a path before this path.
|
LogicalHeavyPath |
prepend(LogicalLink prevLink, LogicalNode prevNode, double[] prevLinkCosts, double[] connectorNodeCosts)
Appends a link at the beginning of this path.
|
void |
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
|
void |
setCost(double cost)
Deprecated.
use setCosts(double[] costs);
|
void |
setCosts(double[] costs)
Sets the costs of this path.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
void |
setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
Deprecated.
|
void |
setUserData(java.lang.String dataName, java.lang.Object dataValue)
Deprecated.
|
LogicalPath |
toLogicalPath()
Converts the heavy-weight path to a light-weight path.
|
LogicalLink[] getLinks()
LogicalNode[] getNodes()
LogicalNode getStartNode()
LogicalNode getEndNode()
LogicalLink getFirstLink()
LogicalLink getLastLink()
double getCost()
void setCost(double cost)
cost
- path costdouble[] getCosts()
void setCosts(double[] costs)
costs
- path costsjava.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 datajava.util.Map<java.lang.String,java.lang.Object> getUserData()
void setUserData(java.util.Map<java.lang.String,java.lang.Object> userDataMap)
userDataMap
- a map of userdata name value pairsLogicalHeavyPath append(LogicalLink nextLink, LogicalNode nextNode, double[] nextLinkCosts, double[] nextNodeCosts)
nextLink
- next linknextNode
- next nodenextLinkCosts
- costs of the next linknextNodeCosts
- costs of the next nodeLogicalHeavyPath append(LogicalHeavyPath path)
path
- path to append after this pathLogicalHeavyPath prepend(LogicalLink prevLink, LogicalNode prevNode, double[] prevLinkCosts, double[] connectorNodeCosts)
prevLink
- previous linkprevNode
- previous nodeprevLinkCosts
- costs of the previous linkconnectorNodeCosts
- costs of the previous nodeLogicalHeavyPath prepend(LogicalHeavyPath path)
path
- path to append before this pathLogicalPath toLogicalPath()
boolean isReverse()
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