Package oracle.spatial.network.lod
Class PathFeatureImpl
- java.lang.Object
-
- oracle.spatial.network.lod.FeatureImpl
-
- oracle.spatial.network.lod.PathFeatureImpl
-
- All Implemented Interfaces:
Feature,PathFeature
public class PathFeatureImpl extends FeatureImpl implements PathFeature
Default implementation of PathFeature.- Since:
- 12.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface oracle.spatial.network.lod.Feature
Feature.FeatureType
-
-
Constructor Summary
Constructors Constructor Description PathFeatureImpl(long id, FeatureElement[] elements, double[] costs, CategorizedUserData userData, boolean isReverse)Constructs a PathFeature instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Support cloneableCategorizedUserDatagetCategorizedUserData()Returns categorized user data.CategorizedUserDatagetCategorizedUserData()double[]getCosts()Returns the path costs.UserDatagetUserData(int category)Returns user data for the specified category.UserDatagetUserData(int category)booleanisReverse()Whether the path is a reverse path.voidsetCategorizedUserData(CategorizedUserData userData)Sets categorized user data.voidsetCategorizedUserData(CategorizedUserData cud)double[]setCosts(double[] costs)Sets the path costs.voidsetUserData(int category, UserData userData)Sets user data for the specified category.voidsetUserData(int category, UserData userData)java.lang.StringtoString()-
Methods inherited from class oracle.spatial.network.lod.FeatureImpl
addElement, addElements, deleteElement, equals, findElement, getElement, getElements, getId, getNumberOfElements, getType, setElement
-
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface oracle.spatial.network.lod.Feature
addElement, addElements, deleteElement, findElement, getElement, getElements, getId, getNumberOfElements, getType, setElement
-
-
-
-
Constructor Detail
-
PathFeatureImpl
public PathFeatureImpl(long id, FeatureElement[] elements, double[] costs, CategorizedUserData userData, boolean isReverse)Constructs a PathFeature instance.- Parameters:
id-elements-costs-userData-
-
-
Method Detail
-
getCosts
public double[] getCosts()
Returns the path costs.- Specified by:
getCostsin interfacePathFeature- Returns:
-
setCosts
public double[] setCosts(double[] costs)
Sets the path costs.- Parameters:
costs-- Returns:
-
isReverse
public boolean isReverse()
Description copied from interface:PathFeatureWhether the path is a reverse path. A reverse path is usually generated by a backward search.- Specified by:
isReversein interfacePathFeature- Returns:
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionSupport cloneable- Overrides:
clonein classFeatureImpl- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classFeatureImpl
-
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-
-
getCategorizedUserData
public CategorizedUserData getCategorizedUserData()
-
setCategorizedUserData
public void setCategorizedUserData(CategorizedUserData cud)
-
getUserData
public UserData getUserData(int category)
-
setUserData
public void setUserData(int category, UserData userData)
-
-