Class PathFeatureImpl

    • 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 interface PathFeature
        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 interface PathFeature
        Returns:
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Support cloneable
        Overrides:
        clone in class FeatureImpl
        Returns:
        cloned object
        Throws:
        java.lang.CloneNotSupportedException
      • 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 -
      • getUserData

        public UserData getUserData​(int category)
      • setUserData

        public void setUserData​(int category,
                                UserData userData)