public class FeaturePath extends java.lang.Object implements java.lang.Comparable<FeaturePath>
Constructor and Description |
---|
FeaturePath(Feature feature, PathFeature path)
Constructs a FeaturePath object.
|
Modifier and Type | Method and 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() |
public FeaturePath(Feature feature, PathFeature path)
feature
- feature of interestpath
- path that ends at the feature of interestpublic int compareTo(FeaturePath o)
compareTo
in interface java.lang.Comparable<FeaturePath>
o
-public java.lang.String toString()
toString
in class java.lang.Object
public void setFeature(Feature feature)
feature
-public Feature getFeature()
public void setPath(PathFeature path)
path
-public PathFeature getPath()