org.wdssii.polarmerger
Class MergeableObservations

java.lang.Object
  extended by org.wdssii.polarmerger.MergeableObservations

public class MergeableObservations
extends Object

Stores all the observations and provides operations on them.

Author:
lakshman

Field Summary
private static int EXPECTED_MAX_OBSERVATIONS
           
private static org.apache.commons.logging.Log log
           
private  PowerDensityLookup lookup
           
private  ObservationMerger merger
           
private  List<Observation> observations
           
 
Constructor Summary
MergeableObservations(PolarMerger.MergerStrategy mergerStrategy, PowerDensityLookup lookup)
           
 
Method Summary
 void add(Observation obs)
           
 void fillMergedValues(PolarGrid[] mergedGrids)
           
 int pruneBefore(Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

EXPECTED_MAX_OBSERVATIONS

private static final int EXPECTED_MAX_OBSERVATIONS
See Also:
Constant Field Values

observations

private List<Observation> observations

merger

private ObservationMerger merger

lookup

private PowerDensityLookup lookup
Constructor Detail

MergeableObservations

public MergeableObservations(PolarMerger.MergerStrategy mergerStrategy,
                             PowerDensityLookup lookup)
Method Detail

pruneBefore

public int pruneBefore(Date date)

fillMergedValues

public void fillMergedValues(PolarGrid[] mergedGrids)

add

public void add(Observation obs)