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.Object
clone()
Support cloneableCategorizedUserData
getCategorizedUserData()
Returns categorized user data.CategorizedUserData
getCategorizedUserData()
double[]
getCosts()
Returns the path costs.UserData
getUserData(int category)
Returns user data for the specified category.UserData
getUserData(int category)
boolean
isReverse()
Whether the path is a reverse path.void
setCategorizedUserData(CategorizedUserData userData)
Sets categorized user data.void
setCategorizedUserData(CategorizedUserData cud)
double[]
setCosts(double[] costs)
Sets the path costs.void
setUserData(int category, UserData userData)
Sets user data for the specified category.void
setUserData(int category, UserData userData)
java.lang.String
toString()
-
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:
getCosts
in interfacePathFeature
- Returns:
-
setCosts
public double[] setCosts(double[] costs)
Sets the path costs.- Parameters:
costs
-- Returns:
-
isReverse
public boolean isReverse()
Description copied from interface:PathFeature
Whether the path is a reverse path. A reverse path is usually generated by a backward search.- Specified by:
isReverse
in interfacePathFeature
- Returns:
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Support cloneable- Overrides:
clone
in classFeatureImpl
- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-