ibspan.ecap.merchant.shopdecisions.forecasting
Interface DataProvider

All Known Implementing Classes:
DatabaseDataProvider, FileDataProvider

public interface DataProvider

An interface describing a set of methods creating data collections required by the forecast evaluator to prepare the prediction.

Author:
Micha³ Drozdowicz

Method Summary
 net.sourceforge.openforecast.DataPoint getFuturePoint(java.lang.String productId, java.util.Date startDate, int periodLength, net.sourceforge.openforecast.DataSet historicalData)
          Creates a DataPoint containing the known (independent) future variables used by the forecast evaluator to predict the sales volume of a product.
 net.sourceforge.openforecast.DataSet getHistoricalData(java.lang.String productId, java.util.Date startDate, int periodLength)
          Creates a DataSet containing historical data needed to perform the forecast.
 

Method Detail

getHistoricalData

net.sourceforge.openforecast.DataSet getHistoricalData(java.lang.String productId,
                                                       java.util.Date startDate,
                                                       int periodLength)
                                                       throws java.lang.Exception
Creates a DataSet containing historical data needed to perform the forecast.

Parameters:
productId - the global id of the product to be forecasted
startDate - the date starting from which the sales should be forecasted
periodLength - the length (in days) of the forecast period
Returns:
a DataSet containing historical data needed to perform the forecast
Throws:
java.lang.Exception - when the retrieval of the data was unsuccessful

getFuturePoint

net.sourceforge.openforecast.DataPoint getFuturePoint(java.lang.String productId,
                                                      java.util.Date startDate,
                                                      int periodLength,
                                                      net.sourceforge.openforecast.DataSet historicalData)
                                                      throws java.lang.Exception
Creates a DataPoint containing the known (independent) future variables used by the forecast evaluator to predict the sales volume of a product.

Parameters:
productId - the global id of the product to be forecasted
startDate - the date starting from which the sales should be forecasted
periodLength - the length (in days) of the forecast period
Returns:
a DataSet containing historical data needed to perform the forecast
Throws:
java.lang.Exception