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 classstatic classObsData.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:
 getDataStreamIDin interfaceIObsData- Returns:
 - The internal ID of the data stream that the observation is part of.
 
 - 
getFoiID
 - 
getPhenomenonTime
- Specified by:
 getPhenomenonTimein 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:
 getResultTimein 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:
 getParametersin interfaceIObsData- Returns:
 - Observation parameters map
 
 - 
getPhenomenonLocation
public org.locationtech.jts.geom.Geometry getPhenomenonLocation()- Specified by:
 getPhenomenonLocationin 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
 
 -