org.deegree.observation.model
Class MeasurementCollection

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

public class MeasurementCollection
extends Object
implements Iterable<Measurement>

This class is a collection of Measurements.

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

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

Constructor Detail

MeasurementCollection

public MeasurementCollection(Collection<Property> 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<Measurement> iterator()
Specified by:
iterator in interface Iterable<Measurement>

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.