Package oracle.spatial.network.lod
Class SpatialSubPathImpl
- java.lang.Object
-
- oracle.spatial.network.lod.LogicalSubPathImpl
-
- oracle.spatial.network.lod.SpatialSubPathImpl
-
- All Implemented Interfaces:
java.lang.Comparable,LogicalLightSubPath,LogicalSubPath,SpatialSubPath
public class SpatialSubPathImpl extends LogicalSubPathImpl implements SpatialSubPath
Default implementation of SpatialSubPath.- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description SpatialSubPathImpl(SpatialPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, JGeometry geometry, CategorizedUserData userData)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.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.JGeometrygetGeometry()Returns the geometry information of the path.LogicalLightPathgetReferenceLightPath()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.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 oracle.spatial.network.lod.LogicalSubPathImpl
append, getCostsToNode, getReferencePath, knowsIntermediateNodeCosts, reverse
-
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, reverse, setCosts, setEndLinkIndex, setEndPercentage, setReferenceLightPath, setStartLinkIndex, setStartPercentage
-
Methods inherited from interface oracle.spatial.network.lod.LogicalSubPath
append, getCostsToNode, getReferencePath
-
-
-
-
Constructor Detail
-
SpatialSubPathImpl
public SpatialSubPathImpl(SpatialPath referencePath, int startLinkIndex, double startPercentage, int endLinkIndex, double endPercentage, double[] costs, JGeometry geometry, CategorizedUserData userData)
-
-
Method Detail
-
getGeometry
public JGeometry getGeometry()
Description copied from interface:SpatialSubPathReturns the geometry information of the path.- Specified by:
getGeometryin interfaceSpatialSubPath- Returns:
- the geometry information of the path
-
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
-
-