Package oracle.spatial.network.lod
Interface LogicalLightSubPath
-
- All Superinterfaces:
java.lang.Comparable
- All Known Subinterfaces:
LogicalSubPath,SpatialSubPath
- All Known Implementing Classes:
LogicalSubPathImpl,SpatialSubPathImpl
public interface LogicalLightSubPath extends java.lang.ComparableLight weight logical sub-path that references to aLogicalLightPath- Since:
- 11gR2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()Support cloneableCategorizedUserDatagetCategorizedUserData()Returns categorized user data.doublegetCost()Deprecated.use getCosts();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.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.booleanisFullPath()Returns true if the subpath covers the entire reference path.voidreverse()Reverses the sub-path, and flip the isReverse flag of the reference path.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.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.
-
-
-
Method Detail
-
getReferenceLightPath
LogicalLightPath getReferenceLightPath()
Returns the path containing the subpath.- Returns:
- the light weight logical path that contains the subpath
-
getStartPercentage
double getStartPercentage()
Returns the location of the starting point of the subpath as a percentage of the first link of the containing path.- Returns:
- location of the starting point on the start link
-
getEndPercentage
double getEndPercentage()
Returns the location of the end point of the subpath as a percentage of the last link of the containing path.- Returns:
- location of the end point on the end link
-
getStartLinkIndex
int getStartLinkIndex()
Returns the start link index.- Returns:
- the start link index
-
getEndLinkIndex
int getEndLinkIndex()
Returns the end link index.- Returns:
- the end link index
-
getCost
double getCost()
Deprecated.use getCosts();Returns the cost of the subpath.- Returns:
- cost of the subpath
-
getCosts
double[] getCosts()
Returns the costs of the subpath.- Returns:
- costs of the subpath
-
setReferenceLightPath
void setReferenceLightPath(LogicalLightPath refPath)
Sets the path containing the subpath.
-
setStartPercentage
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.
-
setEndPercentage
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.
-
setStartLinkIndex
void setStartLinkIndex(int startLinkIndex)
Sets the start link index.
-
setEndLinkIndex
void setEndLinkIndex(int endLinkIndex)
Sets the end link index.
-
setCosts
void setCosts(double[] costs)
Sets the costs of the subpath.
-
isFullPath
boolean isFullPath()
Returns true if the subpath covers the entire reference path.- Returns:
- true if the subpath covers the entire reference path, false otherwise.
-
reverse
void reverse()
Reverses 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.
-
getCategorizedUserData
CategorizedUserData getCategorizedUserData()
Returns categorized user data.- Returns:
-
setCategorizedUserData
void setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.- Parameters:
userData-
-
getUserData
UserData getUserData(int category)
Returns user data for the specified category.- Returns:
-
setUserData
void setUserData(int category, UserData userData)Sets user data for the specified category.- Parameters:
userData-
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
-