Package org.sensorhub.api.data
Class ObsData
java.lang.Object
org.sensorhub.api.data.ObsData
- All Implemented Interfaces:
IObsData
Immutable object representing observation data and that can be stored in an observation datastore.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
ObsData.ObsDataBuilder<B extends ObsData.ObsDataBuilder<B,
T>, T extends ObsData> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dataStreamID
-
foiID
-
resultTime
-
phenomenonTime
-
parameters
-
phenomenonLocation
protected org.locationtech.jts.geom.Geometry phenomenonLocation -
result
-
-
Constructor Details
-
ObsData
protected ObsData()
-
-
Method Details
-
getDataStreamID
- Specified by:
getDataStreamID
in interfaceIObsData
- Returns:
- The internal ID of the data stream that the observation is part of.
-
getFoiID
-
getPhenomenonTime
- Specified by:
getPhenomenonTime
in interfaceIObsData
- Returns:
- The time of occurrence of the measured phenomenon (e.g. for
many automated sensor devices, this is typically the sampling time).
This field cannot be null.
-
getResultTime
- Specified by:
getResultTime
in interfaceIObsData
- Returns:
- The time at which the observation result was obtained.
This is typically the same as the phenomenon time for many automated in-situ and remote sensors doing the sampling and actual measurement (almost) simultaneously, but different for measurements made in a lab on samples that were collected previously. It is also different for models and simulations outputs (e.g. for a model, this is the run time).
If no result time was explicitly set, this returns the phenomenon time
-
getParameters
- Specified by:
getParameters
in interfaceIObsData
- Returns:
- Observation parameters map
-
getPhenomenonLocation
public org.locationtech.jts.geom.Geometry getPhenomenonLocation()- Specified by:
getPhenomenonLocation
in interfaceIObsData
- Returns:
- Area or volume (2D or 3D) where the observation was made.
If value is null, FoI geometry is used instead when provided. If neither geometry is provided, observation will never be selected when filtering on geometry.
In a given data store, all geometries must be expressed in the same coordinate reference system.
-
getResult
-
toString
-