SPFramework API

org.n52.ifgicopter.spf.data
Class AbstractInterpolator

java.lang.Object
  extended by org.n52.ifgicopter.spf.data.AbstractInterpolator

public abstract class AbstractInterpolator
extends Object

Abstract class for an interpolation algorithm.

Author:
Matthes Rieke

Constructor Summary
AbstractInterpolator()
           
 
Method Summary
abstract  int getMinimumDataCount()
           
abstract  Map<String,Object> interpolateForTimestamp(Map<String,SortedMap<Long,Object>> data, long timestamp)
           
abstract  Map<String,Object> interpolateForTimestamp(Map<String,SortedMap<Long,Object>> data, Long timestamp, Set<String> forItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInterpolator

public AbstractInterpolator()
Method Detail

interpolateForTimestamp

public abstract Map<String,Object> interpolateForTimestamp(Map<String,SortedMap<Long,Object>> data,
                                                           long timestamp)
Parameters:
data - the sorted map
timestamp - the timestamp to get the data
Returns:
one data set for the timestamp

interpolateForTimestamp

public abstract Map<String,Object> interpolateForTimestamp(Map<String,SortedMap<Long,Object>> data,
                                                           Long timestamp,
                                                           Set<String> forItems)
Parameters:
data - the sorted map
timestamp - the timestamp to get the data
forItems - only create data for this items
Returns:
map with interpolated values

getMinimumDataCount

public abstract int getMinimumDataCount()
Returns:
the number of data values needed for interpolation

SPFramework API

Copyright © 2004-2012 52north.org. All Rights Reserved.