Class PointBarrier

    • Constructor Detail

      • PointBarrier

        public PointBarrier​(Point point)
        Creates an instance of PointBarrier with the given Point location.
        Parameters:
        point - point where the barrier should be located
        Throws:
        IllegalArgumentException - if point is null
        Since:
        100.0.0
    • Method Detail

      • getCurbApproach

        public CurbApproach getCurbApproach()
        Gets the curb approach that was set.
        Returns:
        the curb approach. Default value is CurbApproach.EITHER_SIDE.
        Since:
        100.0.0
      • setCurbApproach

        public void setCurbApproach​(CurbApproach curbApproach)
        Sets the curb approach. Specifies how the restriction applies to the direction a vehicle may arrive at or depart from the barrier.
        Parameters:
        curbApproach - curb approach
        Throws:
        IllegalArgumentException - if curbApproach is null
        ArcGISRuntimeException - if the curb approach is CurbApproach.NO_UTURN
        Since:
        100.0.0
      • setType

        public void setType​(BarrierType type)
        Sets the type of the barrier, whether it fully restricts travel across it, or merely increases the cost of travel.
        Parameters:
        type - the current type of this PointBarrier
        Throws:
        IllegalArgumentException - if type is null
        Since:
        100.0.0
      • getAddedCost

        public double getAddedCost​(String attributeName)
        Gets the added cost that was set.
        Parameters:
        attributeName - attribute name. It can be empty. Null is treated as an empty string.
        Returns:
        the added cost. Returns 0 if it was not set.
        Since:
        100.0.0
      • setAddedCost

        public void setAddedCost​(String attributeName,
                                 double addedCost)
        Sets the added cost for the barrier.
        Parameters:
        attributeName - Name of the attribute used to calculate cost. It can be empty. Null is treated as an empty string.
        addedCost - added cost
        Since:
        100.0.0
      • getLocationStatus

        public LocationStatus getLocationStatus()
        Gets the status of where this barrier appears on the underlying transportation network.
        Returns:
        the location status. Returns LocationStatus.NOT_LOCATED by default.
        Since:
        100.0.0
      • getGeometry

        public Point getGeometry()
        Gets where the barrier is located on the map.
        Returns:
        the geometry
        Since:
        100.0.0
      • getName

        public String getName()
        Gets the name of the barrier.
        Returns:
        the name of the barrier
        Since:
        100.3.0
      • setName

        public void setName​(String name)
        Sets the name of the barrier.
        Parameters:
        name - the name of the barrier
        Since:
        100.3.0