Observations and Measurements

From CSSEMediaWiki
Revision as of 04:55, 18 October 2010 by Nelson Shaw (Talk | contribs)
Jump to: navigation, search

Observations and Measurements refers to a group of analysis patterns from Martin Fowler 1997. These patterns apply to computer systems that record information about objects in the real world. The typical way of doing this is by recording each piece of information as an attribute of an object. However, this is not always an ideal solution, and these design patterns are intended to provide better solutions by factoring out data into objects.

Contents

Quantity

When recording measurements in a computer system, the simplest way is to store the data as a numerical attribute on a class. However, it isn't meaningful to measure something by a number only - there must also be a unit present for the quantity to have any significance. This obvious "clump" of data (see the Data clumps smell) implies that the two fields should be factored out into a new class.

Standard

A specific Open Geospatial Consortium standard exists which defines a XML encoding and conceptual schema for observations. This model is not specifically related to OO design, but was derived from the pattern produced by Martin Fowler.

Observational Schema

The observational schema is defined in Part 1 of the standard. An observation is an act that results in the estimation of the value of a feature property. This involves application of a specified procedure, such as a sensor, instrument, algorithm or process chain. Observation details are important for data discovery and for data quality estimation. An observation is defined in terms of the set of properties that support these applications. The Observation model is concerned with the user's viewpoint, which emphasizes the feature and its properties.

The core properties of an observation are:

  • Feature of interest
  • Observed property
  • Result
  • Procedure - the instrument, algorithm or process used
  • Sampling time - the real-world time associated with the result
  • Result time - the time when the result was generated

The key to the model is the separation of the observation and its feature of interest. This separates the concerns so that the appropriate information is associated with the description of each object.

Sampling Features

In Part 2 of the standard, a schema is provided for Sampling Features. This standard defines a common set of sampling feature types classified primarily by spatial dimension, as well as samples for ex-situ observations. The schema includes relationships between sampling features (sub-sampling, derived samples).

The core properties of the sampling features can be summarised as:

  • Sampled feature - which links the sampling artefact with the real-world feature of interest
  • Related observation
  • Related sampling feature - linking sampling features into complexes
Personal tools