Class FenceParameters

    • Method Detail

      • getBufferDistance

        public double getBufferDistance()
        Gets a buffer distance in meters to apply when checking if a FenceGeotrigger condition is met.

        For example, if the rule is "enters within 50 meters" you use a FenceGeotrigger.getRuleType() of FenceRuleType.ENTER and set this property to 50.

        Buffers are Geodetic and created using the following default values:

        If your fences use point or polyline Geometry then you must set this property to a value greater than 0.
        Returns:
        a buffer distance in meters to apply when checking if a FenceGeotrigger condition is met
        Since:
        100.12.0
      • createFromGeoElement

        public static FenceParameters createFromGeoElement​(GeoElement geoElement,
                                                           double bufferDistance)
        Static factory function to create a FenceParameters.

        This method creates the appropriate type of FenceParameters based on the type of the GeoElement that was supplied. The supported types of GeoElement are Graphic and Feature. If passed an unsupported GeoElement, this method will return null.

        Parameters:
        geoElement - an individual GeoElement used to create a FenceParameters object
        bufferDistance - a buffer distance in meters to apply to the GeoElement when checking if a Geotrigger condition is met
        Returns:
        a FenceParameters created from a GeoElement
        Throws:
        java.lang.IllegalArgumentException - if geoElement is null
        Since:
        100.12.0