Class RoadFeature


  • public final class RoadFeature
    extends java.lang.Object
    Record describing road feature.
    • Constructor Summary

      Constructors 
      Constructor Description
      RoadFeature​(java.lang.String identifier, boolean isOneWay, double length, RoadClass functionalClass, float averageSpeed, short speedLimit, java.util.ArrayList<MapCoordinates> geometry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getAverageSpeed()
      The speed vehicles usually drive when passing along the part of the road represented by the feature, in km/h.
      RoadClass getFunctionalClass()
      The functional class of the feature.
      java.util.ArrayList<MapCoordinates> getGeometry()
      The geometry of the feature.
      java.lang.String getIdentifier()
      The identifier of the feature.
      boolean getIsOneWay()
      Indicates whether the part of the road represented by the feature allows to drive in one direction only.
      double getLength()
      The length of the feature, in meters.
      short getSpeedLimit()
      Maximal speed vehicles are allowed to drive when passing along the part of the road represented by the feature, in km/h.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RoadFeature

        public RoadFeature​(java.lang.String identifier,
                           boolean isOneWay,
                           double length,
                           RoadClass functionalClass,
                           float averageSpeed,
                           short speedLimit,
                           java.util.ArrayList<MapCoordinates> geometry)
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        The identifier of the feature.
      • getIsOneWay

        public boolean getIsOneWay()
        Indicates whether the part of the road represented by the feature allows to drive in one direction only.
      • getLength

        public double getLength()
        The length of the feature, in meters.
      • getFunctionalClass

        public RoadClass getFunctionalClass()
        The functional class of the feature.
      • getAverageSpeed

        public float getAverageSpeed()
        The speed vehicles usually drive when passing along the part of the road represented by the feature, in km/h.
      • getSpeedLimit

        public short getSpeedLimit()
        Maximal speed vehicles are allowed to drive when passing along the part of the road represented by the feature, in km/h.
      • getGeometry

        public java.util.ArrayList<MapCoordinates> getGeometry()
        The geometry of the feature.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object