PolylineBarrier QML Type

  • Esri.ArcGISRuntime
  • PolylineBarrier
  • A polyline barrier is used to restrict route solving. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    Object

    Properties

    Signals

    Methods

    Detailed Description

    A class that represents a linear feature to be avoided (or penalized) by a route. A polyline barrier may represent a linear feature (e.g., a subpath in the network) to be avoided (i.e., not crossed or followed) by a route or to penalize/delay a route along any portions of the feature traversed by the route (e.g., a stretch of interstate with temporarily reduced speed limits due to local construction along an adjacent lane).

    The polyline barrier class is derived from the graphic class.

    This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

    TypeDefault Property
    Polylinegeometry

    Property Documentation

    [since Esri.ArcGISRuntime 100.6] barrierId : int

    Polyline barrier ID.

    This is a caller supplied foreign key that can be used to associate output polyline barriers with input polyline barriers.

    This property was introduced in Esri.ArcGISRuntime 100.6.

    See also RouteParameters::setPolylineBarriers, RouteResult::polylineBarriers, ClosestFacilityParameters::setPolylineBarriers, ClosestFacilityResult::polylineBarriers, ServiceAreaParameters::setPolylineBarriers, and ServiceAreaResult::polylineBarriers.


    barrierType : Enums.BarrierType

    The BarrierType of this PolylineBarrier.

    See also Enums.BarrierType.


    [default] geometry : Polyline

    The polyline of this PolylineBarrier.


    [since Esri.ArcGISRuntime 100.3] name : string

    The name of this PolylineBarrier.

    This property was introduced in Esri.ArcGISRuntime 100.3.

    See also Polyline.


    Signal Documentation

    [since Esri.ArcGISRuntime 100.6] barrierIdChanged()

    Emitted when the barrierId property of this PolylineBarrier changes.

    Note: The corresponding handler is onBarrierIdChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.6.


    barrierTypeChanged()

    Emitted when the barrierType property of this PolylineBarrier changes.

    Note: The corresponding handler is onBarrierTypeChanged.


    geometryChanged()

    Emitted when the geometry property of this PolylineBarrier changes.

    Note: The corresponding handler is onGeometryChanged.


    [since Esri.ArcGISRuntime 100.3] nameChanged()

    Emitted when the name property of this PolylineBarrier changes.

    Note: The corresponding handler is onNameChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.3.


    Method Documentation

    [since Esri.ArcGISRuntime 200.1] PolylineBarrier clone()

    Creates a deep copy of this object.

    This method was introduced in Esri.ArcGISRuntime 200.1.


    double scaleFactorForCost(string attributeName)

    Returns scale factor for cost of a given attributeName.

    See also setScaleFactorForCost().


    void setScaleFactorForCost(string attributeName, double scaleFactorForCost)

    Sets scale factor for cost.

    • attributeName - The name of attribute.
    • scaleFactorForCost - The scale factor for cost.

    See also scaleFactorForCost().


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.