Package oracle.spatial.network.lod
Class FeaturePath
- java.lang.Object
-
- oracle.spatial.network.lod.FeaturePath
-
- All Implemented Interfaces:
java.lang.Comparable<FeaturePath>
public class FeaturePath extends java.lang.Object implements java.lang.Comparable<FeaturePath>
A FeaturePath object consists of a Feature and the PathFeature that ends at the feature. It is used in analysis results.- Since:
- 12.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Feature
feature
protected PathFeature
path
-
Constructor Summary
Constructors Constructor Description FeaturePath(Feature feature, PathFeature path)
Constructs a FeaturePath object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FeaturePath o)
Compares the cost of the path.Feature
getFeature()
Returns the feature of interest.PathFeature
getPath()
Returns the path feature.void
setFeature(Feature feature)
Sets the feature of interest.void
setPath(PathFeature path)
Sets the path feature.java.lang.String
toString()
-
-
-
Field Detail
-
feature
protected Feature feature
-
path
protected PathFeature path
-
-
Constructor Detail
-
FeaturePath
public FeaturePath(Feature feature, PathFeature path)
Constructs a FeaturePath object.- Parameters:
feature
- feature of interestpath
- path that ends at the feature of interest
-
-
Method Detail
-
compareTo
public int compareTo(FeaturePath o)
Compares the cost of the path.- Specified by:
compareTo
in interfacejava.lang.Comparable<FeaturePath>
- Parameters:
o
-- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setFeature
public void setFeature(Feature feature)
Sets the feature of interest.- Parameters:
feature
-
-
getFeature
public Feature getFeature()
Returns the feature of interest.- Returns:
-
setPath
public void setPath(PathFeature path)
Sets the path feature.- Parameters:
path
-
-
getPath
public PathFeature getPath()
Returns the path feature.- Returns:
-
-