org.deegree.observation.model
Class Observation

java.lang.Object
  extended by org.deegree.observation.model.Observation
All Implemented Interfaces:
Iterable<MeasurementCollection>

public class Observation
extends Object
implements Iterable<MeasurementCollection>

This class is a collection of muliple Measurements. The Measurements are grouped by its procedures in MeasurementCollections.

Version:
$Revision: 24362 $, $Date: 2010-05-12 15:42:07 +0200 (Wed, 12 May 2010) $
Author:
Oliver Tonnhofer, last edited by: $Author: aionita $

Constructor Summary
Observation(Collection<Property> properties)
          Create a Observation with some observed properties.
 
Method Summary
 void add(Measurement measurement)
          Add a new measurement to the collection.
 List<Property> getProperties()
           
 TimePeriod getSamplingTime()
           
 Iterator<MeasurementCollection> iterator()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Observation

public Observation(Collection<Property> properties)
Create a Observation with some observed properties.

Parameters:
properties -
Method Detail

add

public void add(Measurement measurement)
Add a new measurement to the collection.

Parameters:
measurement -

toString

public String toString()
Overrides:
toString in class Object

iterator

public Iterator<MeasurementCollection> iterator()
Specified by:
iterator in interface Iterable<MeasurementCollection>

size

public int size()
Returns:
the number of measurements in this collection

getProperties

public List<Property> getProperties()
Returns:
a list of all stored properties.

getSamplingTime

public TimePeriod getSamplingTime()
Returns:
the sampling time of this collection. The TimePeriod will contain all SamplingTimes of this collection.


Copyright © 2011. All Rights Reserved.