Observation
open class Observation : CoatyObject
An Observation is the act of measuring or otherwise determining the value of a property.
-
Undocumented
Declaration
Swift
open override class var objectType: String { get }
-
The time instant or period of when the Observation happens.
Declaration
Swift
public var phenomenonTime: Double
-
The estimated value of an ObservedProperty from the Observation. Depends on the observationType defined in the associated Datastream.
Declaration
Swift
public var result: AnyCodable
-
The time of the Observation’s result was generated.
Declaration
Swift
public var resultTime: Double
-
Describes the quality of the result.
Should of type DQ_Element: https://geo-ide.noaa.gov/wiki/index.php?title=DQ_Element However, it is considered as a string even by the test suite: https://github.com/opengeospatial/ets-sta10/search?q=resultquality
Declaration
Swift
public var resultQuality: [String]?
-
The time period during which the result may be used.
Declaration
Swift
public var validTime: CoatyTimeInterval?
-
Key-value pairs showing the environmental conditions during measurement.
Declaration
Swift
public var parameters: [String : String]?
-
Each Observation of the Sensor observes on one-and-only-one FeatureOfInterest (optional). It should refer to the objectId of either a FeatureOfInterest or a Location object. When the FeatureOfInterest changes, a snaphot of the Sensor should be created to display the change.
Declaration
Swift
public var featureOfInterest: CoatyUUID?
-
init(phenomenonTime:
result: resultTime: resultQuality: validTime: parameters: featureOfInterest: name: objectId: externalId: parentObjectId: objectType: ) Undocumented
Declaration
Swift
public init(phenomenonTime: Double, result: AnyCodable, resultTime: Double, resultQuality: [String]? = nil, validTime: CoatyTimeInterval? = nil, parameters: [String: String]? = nil, featureOfInterest: CoatyUUID? = nil, name: String, objectId: CoatyUUID = .init(), externalId: String? = nil, parentObjectId: CoatyUUID? = nil, objectType: String = Observation.objectType)
-
Undocumented
Declaration
Swift
required public init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
open override func encode(to encoder: Encoder) throws