Class PolygonBarrier

    • Constructor Summary

      Constructors 
      Constructor Description
      PolygonBarrier​(Polygon polygon)
      Creates an instance of PolygonBarrier with the provided geometry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBarrierId()
      Gets the polygon barrier ID.
      Polygon getGeometry()
      Gets the shape and location of the barrier.
      java.lang.String getName()
      Gets the name of the barrier.
      double getScaleFactorForCost​(java.lang.String attributeName)
      Gets the scale factor for cost.
      BarrierType getType()
      Gets the type of the barrier that was set.
      void setBarrierId​(int barrierId)
      Sets the polygon barrier ID.
      void setName​(java.lang.String name)
      Sets the name of the barrier.
      void setScaleFactorForCost​(java.lang.String attributeName, double addedCost)
      Sets the scale factor for cost for the barrier.
      void setType​(BarrierType type)
      Sets the type of the barrier, whether it fully restricts travel across it, or merely increases the cost of travel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait