org.deegree.observation.model
Class Observation
java.lang.Object
org.deegree.observation.model.Observation
- All Implemented Interfaces:
- java.lang.Iterable<MeasurementCollection>
public class Observation
- extends java.lang.Object
- implements java.lang.Iterable<MeasurementCollection>
This class is a collection of muliple Measurement
s. The Measurements are grouped by its procedures in
MeasurementCollection
s.
- Version:
- $Revision: 24362 $, $Date: 2010-05-12 15:42:07 +0200 (Mi, 12. Mai 2010) $
- Author:
- Oliver Tonnhofer, last edited by: $Author: aionita $
Constructor Summary |
Observation(java.util.Collection<Property> properties)
Create a Observation with some observed properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Observation
public Observation(java.util.Collection<Property> properties)
- Create a Observation with some observed properties.
- Parameters:
properties
-
add
public void add(Measurement measurement)
- Add a new measurement to the collection.
- Parameters:
measurement
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
iterator
public java.util.Iterator<MeasurementCollection> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<MeasurementCollection>
size
public int size()
- Returns:
- the number of measurements in this collection
getProperties
public java.util.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.