Class DynamicEntityObservation
- All Implemented Interfaces:
GeoElement
GeoElement that represents a static observation of a DynamicEntity
received from a DynamicEntityDataSource.
Dynamic entity observations are objects streamed by a DynamicEntityDataSource. Each observation is a snapshot of
the state of a DynamicEntity at a given point in time.
Observations are stored in a local data cache as they are received from the data source. Observations may be purged
from the local data cache according to DynamicEntityDataSourcePurgeOptions.
Multiple observations may be associated with a single DynamicEntity (via a shared track ID). These observations
may be retrieved using DynamicEntity.getObservations(int). The most current observation of a
DynamicEntity may be retrieved using DynamicEntity.latestObservation().
Observations may also be retrieved by identifying observations on a map or scene, or by handling events
directly from the DynamicEntityDataSource.
- Since:
- 200.1.0
- See Also:
-
Property Summary
PropertiesTypePropertyDescriptionThe geometry.A unique identifier for the DynamicEntityObservation. -
Method Summary
Modifier and TypeMethodDescriptioncomputeCalloutLocation(Point tapLocation, MapView mapView) TheDynamicEntityassociated with this observation.The geometry.Gets the attributes of the GeoElement as a collection of name/value pairs.Gets the value of thegeometryproperty.longGets the value of theobservationIdproperty.A unique identifier for the DynamicEntityObservation.voidsetGeometry(Geometry geometry) Sets the value of thegeometryproperty.
-
Property Details
-
observationId
A unique identifier for the DynamicEntityObservation.This property uniquely identifies a DynamicEntityObservation and is useful when determining if two observations are the same.
- Since:
- 200.1.0
- See Also:
-
geometry
The geometry.- Since:
- 200.1.0
- See Also:
-
-
Method Details
-
observationIdProperty
A unique identifier for the DynamicEntityObservation.This property uniquely identifies a DynamicEntityObservation and is useful when determining if two observations are the same.
- Returns:
- the
observationIdproperty - Since:
- 200.1.0
- See Also:
-
getObservationId
public long getObservationId()Gets the value of theobservationIdproperty.- Property description:
- A unique identifier for the DynamicEntityObservation.
This property uniquely identifies a DynamicEntityObservation and is useful when determining if two observations are the same.
- Returns:
- the value of the
observationIdproperty - Since:
- 200.1.0
- See Also:
-
dynamicEntity
TheDynamicEntityassociated with this observation.Use this method to retrieve the
DynamicEntityassociated with this observation.This method returns null if the associated
DynamicEntityhas been purged from the local data cache, which happens when all observations associated with a dynamic entity have been purged.- Returns:
- the
DynamicEntityfor this observation, or null if none - Since:
- 200.1.0
-
getAttributes
Description copied from interface:GeoElementGets the attributes of the GeoElement as a collection of name/value pairs.Attribute values are returned as Object instances, but the underlying value type is based on the
Field.Type.- Specified by:
getAttributesin interfaceGeoElement- Returns:
- the attributes of the GeoElement as a collection of name/value pairs
-
geometryProperty
The geometry.- Returns:
- the
geometryproperty - Since:
- 200.1.0
- See Also:
-
getGeometry
Gets the value of thegeometryproperty.- Specified by:
getGeometryin interfaceGeoElement- Property description:
- The geometry.
- Returns:
- the value of the
geometryproperty - Since:
- 200.1.0
- See Also:
-
setGeometry
Sets the value of thegeometryproperty.- Specified by:
setGeometryin interfaceGeoElement- Property description:
- The geometry.
- Parameters:
geometry- the value for thegeometryproperty- Since:
- 200.1.0
- See Also:
-
computeCalloutLocation
- Specified by:
computeCalloutLocationin interfaceGeoElement- Parameters:
tapLocation- location used to compute the callout location, can be nullmapView- if specified and if a marker symbol is displayed for this GeoElement, the leader offset of the marker symbol will be used in this computation; can be null- Returns:
- the computed location to place the callout
- if tapLocation is null, computed location will be based on geometry alone
- if tapLocation is not-null and inside geometry, then the computed location is same as the tapLocation
- if tapLocation is not-null and outside geometry, then the computed location is the nearest point on the geometry from the tapLocation
-