public class LogicalSubPathImpl extends java.lang.Object implements LogicalSubPath
| Constructor and Description |
|---|
LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData) |
LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, double[] costsOffRefPath, CategorizedUserData userData) |
| Modifier and Type | Method and Description |
|---|---|
LogicalSubPath |
append(LogicalSubPath subPath)
Appends a subpath to this subpath.
|
java.lang.Object |
clone()
Support cloneable
|
java.lang.Object |
clone()
Support cloneable
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
CategorizedUserData |
getCategorizedUserData()
Returns categorized user data.
|
double |
getCost()
Deprecated.
|
double[] |
getCosts()
Returns the costs of the subpath.
|
double[] |
getCostsToNode(int nodeIndex)
Returns the cumulative costs from the start point to the input node.
|
int |
getEndLinkIndex()
Returns the end link index.
|
double |
getEndPercentage()
Returns the location of the end point of the subpath as a percentage of the last link of the containing path.
|
LogicalLightPath |
getReferenceLightPath()
Returns the path containing the subpath.
|
LogicalPath |
getReferencePath()
Returns the path containing the subpath.
|
int |
getStartLinkIndex()
Returns the start link index.
|
double |
getStartPercentage()
Returns the location of the starting point of the subpath as a percentage of the first link of the containing path.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
UserData |
getUserData(int category)
Returns user data for the specified category.
|
boolean |
isFullPath()
Returns true if the subpath covers the entire reference path.
|
boolean |
knowsIntermediateNodeCosts() |
void |
reverse()
Reverses the sub-path, and flip the isReverse flag of the reference path.
|
void |
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.
|
void |
setCategorizedUserData(CategorizedUserData cud)
Sets categorized user data.
|
void |
setCosts(double[] costs)
Sets the costs of the subpath.
|
void |
setEndLinkIndex(int endLinkIndex)
Sets the end link index.
|
void |
setEndPercentage(double endPercentage)
Sets the location of the end point of the subpath as a percentage of the last link of the containing path.
|
void |
setReferenceLightPath(LogicalLightPath refPath)
Sets the path containing the subpath.
|
void |
setStartLinkIndex(int startLinkIndex)
Sets the start link index.
|
void |
setStartPercentage(double startPercentage)
Sets the location of the starting point of the subpath as a percentage of the first link of the containing path.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
void |
setUserData(int category, UserData userData)
Sets user data for the specified category.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCost, getCosts, getEndLinkIndex, getEndPercentage, getReferenceLightPath, getStartLinkIndex, getStartPercentage, isFullPath, setCosts, setEndLinkIndex, setEndPercentage, setReferenceLightPath, setStartLinkIndex, setStartPercentagepublic LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, double[] costsOffRefPath, CategorizedUserData userData)
public LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData)
public boolean knowsIntermediateNodeCosts()
public LogicalPath getReferencePath()
LogicalSubPathgetReferencePath in interface LogicalSubPathpublic double[] getCostsToNode(int nodeIndex)
LogicalSubPathgetCostsToNode in interface LogicalSubPathpublic LogicalSubPath append(LogicalSubPath subPath) throws LODNetworkException
LogicalSubPathappend in interface LogicalSubPathLODNetworkExceptionpublic void reverse()
LogicalLightSubPathreverse in interface LogicalLightSubPathpublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData userData)
userData -public UserData getUserData(int category)
public void setUserData(int category,
UserData userData)
userData -
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic LogicalLightPath getReferenceLightPath()
LogicalLightSubPathgetReferenceLightPath in interface LogicalLightSubPathpublic double getStartPercentage()
LogicalLightSubPathgetStartPercentage in interface LogicalLightSubPathpublic double getEndPercentage()
LogicalLightSubPathgetEndPercentage in interface LogicalLightSubPathpublic int getStartLinkIndex()
LogicalLightSubPathgetStartLinkIndex in interface LogicalLightSubPathpublic int getEndLinkIndex()
LogicalLightSubPathgetEndLinkIndex in interface LogicalLightSubPathpublic double getCost()
LogicalLightSubPathgetCost in interface LogicalLightSubPathpublic boolean isFullPath()
LogicalLightSubPathisFullPath in interface LogicalLightSubPathpublic double[] getCosts()
LogicalLightSubPathgetCosts in interface LogicalLightSubPathpublic void setReferenceLightPath(LogicalLightPath refPath)
LogicalLightSubPathsetReferenceLightPath in interface LogicalLightSubPathpublic void setStartPercentage(double startPercentage)
LogicalLightSubPathsetStartPercentage in interface LogicalLightSubPathpublic void setEndPercentage(double endPercentage)
LogicalLightSubPathsetEndPercentage in interface LogicalLightSubPathpublic void setStartLinkIndex(int startLinkIndex)
LogicalLightSubPathsetStartLinkIndex in interface LogicalLightSubPathpublic void setEndLinkIndex(int endLinkIndex)
LogicalLightSubPathsetEndLinkIndex in interface LogicalLightSubPathpublic void setCosts(double[] costs)
LogicalLightSubPathsetCosts in interface LogicalLightSubPathpublic CategorizedUserData getCategorizedUserData()
public void setCategorizedUserData(CategorizedUserData cud)
public UserData getUserData(int category)
public void setUserData(int category,
UserData userData)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException