Enum FenceEnterExitSpatialRelationship
- java.lang.Object
-
- java.lang.Enum<FenceEnterExitSpatialRelationship>
-
- com.esri.arcgisruntime.geotriggers.FenceEnterExitSpatialRelationship
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FenceEnterExitSpatialRelationship>
public enum FenceEnterExitSpatialRelationship extends java.lang.Enum<FenceEnterExitSpatialRelationship>
The spatial relationship that determines when a fence has been entered or exited.When determining whether a feed entity has entered or exited a fence polygon, there are two spatial operations that can be used:
- Intersects, where the geometry of the feed must intersect the fence polygon.
- Contains, where the geometry of the feed must be contained by the fence polygon.
Note that when the feed geometry is a
Point
there is no difference between intersection and containment so these options will not affect behavior. When using aLocationGeotriggerFeed
, setFenceGeotrigger.getFeedAccuracyMode()
toFenceGeotriggerFeedAccuracyMode.USE_GEOMETRY_WITH_ACCURACY
in order to create a polygon geometry that accounts for the area of uncertainty around aLocationDataSource.Location.getPosition()
.- Since:
- 100.13.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTER_CONTAINS_AND_EXIT_DOES_NOT_CONTAIN
The fence polygon will be entered when it contains the entity from aGeotriggerFeed
and exited when it no longer contains.ENTER_CONTAINS_AND_EXIT_DOES_NOT_INTERSECT
The fence polygon will be entered when it contains the entity from aGeotriggerFeed
and exited when it no longer intersects.ENTER_INTERSECTS_AND_EXIT_DOES_NOT_INTERSECT
The fence polygon will be entered when it intersects the entity from aGeotriggerFeed
and exited when it no longer intersects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FenceEnterExitSpatialRelationship
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FenceEnterExitSpatialRelationship[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTER_INTERSECTS_AND_EXIT_DOES_NOT_INTERSECT
public static final FenceEnterExitSpatialRelationship ENTER_INTERSECTS_AND_EXIT_DOES_NOT_INTERSECT
The fence polygon will be entered when it intersects the entity from aGeotriggerFeed
and exited when it no longer intersects.This option will tend to increase the number of notifications sent as you approach a fence polygon. Use this option when you wish to receive all possible notifications - for example when you want to be warned that you are approaching a hazard.
This option will have no effect unless the feed entity geometry is a
Polygon
. SetFenceGeotrigger.getFeedAccuracyMode()
toFenceGeotriggerFeedAccuracyMode.USE_GEOMETRY_WITH_ACCURACY
in order to create a polygon geometry that accounts for the area of uncertainty around aLocationDataSource.Location.getPosition()
.In the diagram below, the feed enters the fence on the left (shown in yellow) and exits on the right (shown in purple).
- Since:
- 100.13.0
-
ENTER_CONTAINS_AND_EXIT_DOES_NOT_CONTAIN
public static final FenceEnterExitSpatialRelationship ENTER_CONTAINS_AND_EXIT_DOES_NOT_CONTAIN
The fence polygon will be entered when it contains the entity from aGeotriggerFeed
and exited when it no longer contains.This option will limit notifications to situations where the entity is fully within the fence polygon. Use this option to be certain you are within a given fence - for example when carrying out work within a specific parcel.
This option will have no effect unless the feed entity geometry is a
Polygon
. SetFenceGeotrigger.getFeedAccuracyMode()
toFenceGeotriggerFeedAccuracyMode.USE_GEOMETRY_WITH_ACCURACY
in order to create a polygon geometry that accounts for the area of uncertainty around aLocationDataSource.Location.getPosition()
.In the diagram below, the feed enters the fence on the left (shown in yellow) and exits on the right (shown in purple).
- Since:
- 100.13.0
-
ENTER_CONTAINS_AND_EXIT_DOES_NOT_INTERSECT
public static final FenceEnterExitSpatialRelationship ENTER_CONTAINS_AND_EXIT_DOES_NOT_INTERSECT
The fence polygon will be entered when it contains the entity from aGeotriggerFeed
and exited when it no longer intersects.This option will tend to minimize the number of notifications sent. The entity must be fully within the fence polygon before entering and must also be fully outside before exiting. This combination acts to reduce the number of spurious notifications that occur as you move around the border of a fence. Use this option when you wish to limit notifications - for example when driving past properties on your way to a delivery address.
This option will have no effect unless the feed entity geometry is a
Polygon
. SetFenceGeotrigger.getFeedAccuracyMode()
toFenceGeotriggerFeedAccuracyMode.USE_GEOMETRY_WITH_ACCURACY
in order to create a polygon geometry that accounts for the area of uncertainty around aLocationDataSource.Location.getPosition()
.In the diagram below, the feed enters the fence on the left (shown in yellow) and exits on the right (shown in purple).
- Since:
- 100.13.0
-
-
Method Detail
-
values
public static FenceEnterExitSpatialRelationship[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FenceEnterExitSpatialRelationship c : FenceEnterExitSpatialRelationship.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FenceEnterExitSpatialRelationship valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-