Package oracle.spatial.network.lod
Class LogicalSubPathImpl
- java.lang.Object
-
- oracle.spatial.network.lod.LogicalSubPathImpl
-
- All Implemented Interfaces:
java.lang.Comparable,LogicalLightSubPath,LogicalSubPath
- Direct Known Subclasses:
SpatialSubPathImpl
public class LogicalSubPathImpl extends java.lang.Object implements LogicalSubPath
Default implementation of LogicalSubPath.- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, double[] costsOffRefPath, CategorizedUserData userData)LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LogicalSubPathappend(LogicalSubPath subPath)Appends a subpath to this subpath.java.lang.Objectclone()Support cloneablejava.lang.Objectclone()Support cloneableintcompareTo(java.lang.Object o)CategorizedUserDatagetCategorizedUserData()Returns categorized user data.CategorizedUserDatagetCategorizedUserData()doublegetCost()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.intgetEndLinkIndex()Returns the end link index.doublegetEndPercentage()Returns the location of the end point of the subpath as a percentage of the last link of the containing path.LogicalLightPathgetReferenceLightPath()Returns the path containing the subpath.LogicalPathgetReferencePath()Returns the path containing the subpath.intgetStartLinkIndex()Returns the start link index.doublegetStartPercentage()Returns the location of the starting point of the subpath as a percentage of the first link of the containing path.UserDatagetUserData(int category)Returns user data for the specified category.UserDatagetUserData(int category)protected voidinit(LogicalLightPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData)booleanisFullPath()Returns true if the subpath covers the entire reference path.booleanknowsIntermediateNodeCosts()voidreverse()Reverses the sub-path, and flip the isReverse flag of the reference path.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.voidsetCategorizedUserData(CategorizedUserData cud)voidsetCosts(double[] costs)Sets the costs of the subpath.voidsetEndLinkIndex(int endLinkIndex)Sets the end link index.voidsetEndPercentage(double endPercentage)Sets the location of the end point of the subpath as a percentage of the last link of the containing path.voidsetReferenceLightPath(LogicalLightPath refPath)Sets the path containing the subpath.voidsetStartLinkIndex(int startLinkIndex)Sets the start link index.voidsetStartPercentage(double startPercentage)Sets the location of the starting point of the subpath as a percentage of the first link of the containing path.voidsetUserData(int category, UserData userData)Sets user data for the specified category.voidsetUserData(int category, UserData userData)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.spatial.network.lod.LogicalLightSubPath
getCost, getCosts, getEndLinkIndex, getEndPercentage, getReferenceLightPath, getStartLinkIndex, getStartPercentage, isFullPath, setCosts, setEndLinkIndex, setEndPercentage, setReferenceLightPath, setStartLinkIndex, setStartPercentage
-
-
-
-
Constructor Detail
-
LogicalSubPathImpl
public LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, double[] costsOffRefPath, CategorizedUserData userData)
-
LogicalSubPathImpl
public LogicalSubPathImpl(LogicalPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData)
-
-
Method Detail
-
knowsIntermediateNodeCosts
public boolean knowsIntermediateNodeCosts()
-
getReferencePath
public LogicalPath getReferencePath()
Description copied from interface:LogicalSubPathReturns the path containing the subpath.- Specified by:
getReferencePathin interfaceLogicalSubPath- Returns:
- the logical path that contains the subpath
-
getCostsToNode
public double[] getCostsToNode(int nodeIndex)
Description copied from interface:LogicalSubPathReturns the cumulative costs from the start point to the input node.- Specified by:
getCostsToNodein interfaceLogicalSubPath- Returns:
-
append
public LogicalSubPath append(LogicalSubPath subPath) throws LODNetworkException
Description copied from interface:LogicalSubPathAppends a subpath to this subpath.- Specified by:
appendin interfaceLogicalSubPath- Returns:
- Throws:
LODNetworkException
-
reverse
public void reverse()
Description copied from interface:LogicalLightSubPathReverses the sub-path, and flip the isReverse flag of the reference path. Similar to a path, a sub-path can be represented in the traveling direction, or in the reverse direction. When represented in reverse direction, the isReverse flag of its reference path is set to true.- Specified by:
reversein interfaceLogicalLightSubPath
-
getCategorizedUserData
public abstract CategorizedUserData getCategorizedUserData()
Returns categorized user data.- Returns:
-
setCategorizedUserData
public abstract void setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.- Parameters:
userData-
-
getUserData
public abstract UserData getUserData(int category)
Returns user data for the specified category.- Returns:
-
setUserData
public abstract void setUserData(int category, UserData userData)Sets user data for the specified category.- Parameters:
userData-
-
clone
public abstract java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
init
protected void init(LogicalLightPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, CategorizedUserData userData)
-
getReferenceLightPath
public LogicalLightPath getReferenceLightPath()
Description copied from interface:LogicalLightSubPathReturns the path containing the subpath.- Specified by:
getReferenceLightPathin interfaceLogicalLightSubPath- Returns:
- the light weight logical path that contains the subpath
-
getStartPercentage
public double getStartPercentage()
Description copied from interface:LogicalLightSubPathReturns the location of the starting point of the subpath as a percentage of the first link of the containing path.- Specified by:
getStartPercentagein interfaceLogicalLightSubPath- Returns:
- location of the starting point on the start link
-
getEndPercentage
public double getEndPercentage()
Description copied from interface:LogicalLightSubPathReturns the location of the end point of the subpath as a percentage of the last link of the containing path.- Specified by:
getEndPercentagein interfaceLogicalLightSubPath- Returns:
- location of the end point on the end link
-
getStartLinkIndex
public int getStartLinkIndex()
Description copied from interface:LogicalLightSubPathReturns the start link index.- Specified by:
getStartLinkIndexin interfaceLogicalLightSubPath- Returns:
- the start link index
-
getEndLinkIndex
public int getEndLinkIndex()
Description copied from interface:LogicalLightSubPathReturns the end link index.- Specified by:
getEndLinkIndexin interfaceLogicalLightSubPath- Returns:
- the end link index
-
getCost
public double getCost()
Deprecated.Description copied from interface:LogicalLightSubPathReturns the cost of the subpath.- Specified by:
getCostin interfaceLogicalLightSubPath- Returns:
- cost of the subpath
-
isFullPath
public boolean isFullPath()
Description copied from interface:LogicalLightSubPathReturns true if the subpath covers the entire reference path.- Specified by:
isFullPathin interfaceLogicalLightSubPath- Returns:
- true if the subpath covers the entire reference path, false otherwise.
-
getCosts
public double[] getCosts()
Description copied from interface:LogicalLightSubPathReturns the costs of the subpath.- Specified by:
getCostsin interfaceLogicalLightSubPath- Returns:
- costs of the subpath
-
setReferenceLightPath
public void setReferenceLightPath(LogicalLightPath refPath)
Description copied from interface:LogicalLightSubPathSets the path containing the subpath.- Specified by:
setReferenceLightPathin interfaceLogicalLightSubPath
-
setStartPercentage
public void setStartPercentage(double startPercentage)
Description copied from interface:LogicalLightSubPathSets the location of the starting point of the subpath as a percentage of the first link of the containing path.- Specified by:
setStartPercentagein interfaceLogicalLightSubPath
-
setEndPercentage
public void setEndPercentage(double endPercentage)
Description copied from interface:LogicalLightSubPathSets the location of the end point of the subpath as a percentage of the last link of the containing path.- Specified by:
setEndPercentagein interfaceLogicalLightSubPath
-
setStartLinkIndex
public void setStartLinkIndex(int startLinkIndex)
Description copied from interface:LogicalLightSubPathSets the start link index.- Specified by:
setStartLinkIndexin interfaceLogicalLightSubPath
-
setEndLinkIndex
public void setEndLinkIndex(int endLinkIndex)
Description copied from interface:LogicalLightSubPathSets the end link index.- Specified by:
setEndLinkIndexin interfaceLogicalLightSubPath
-
setCosts
public void setCosts(double[] costs)
Description copied from interface:LogicalLightSubPathSets the costs of the subpath.- Specified by:
setCostsin interfaceLogicalLightSubPath
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
getCategorizedUserData
public CategorizedUserData getCategorizedUserData()
-
setCategorizedUserData
public void setCategorizedUserData(CategorizedUserData cud)
-
getUserData
public UserData getUserData(int category)
-
setUserData
public void setUserData(int category, UserData userData)
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable- Overrides:
clonein classjava.lang.Object- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
-