JTemporal Home
Tutorial

net.sf.jtemporal
Interface MissingInstantHandler


Deprecated.

public interface MissingInstantHandler

Reacts on missing elements.

Version:
$Id: MissingInstantHandler.java,v 1.6 2005/07/17 08:39:49 tabeck Exp $

Method Summary
 void handleMissingElement(TimeSeries ts, Instant i)
          Deprecated. This method is called when get(Instant) is called on the timeseries and no value is found.
 

Method Detail

handleMissingElement

void handleMissingElement(TimeSeries ts,
                          Instant i)
Deprecated. 
This method is called when get(Instant) is called on the timeseries and no value is found.
It's up to the implementor to decide whether only the missing entry must be added to the timeseries, or whether other entry are added by prefetching. This method, should typically call CachedTimeSeries.putInCache(Instant, Object), by storing one or multiple entries.
Note: If there exist no entry for the given instant, then you should store a null. This will cache the information that there is no entry for this instant.

Parameters:
ts - the TimeSeries instance originating the call
i - the keys whose no value is associated

JTemporal Home
Tutorial