ibspan.ecap.merchant.shopdecisions.forecasting
Class FileDataProvider
java.lang.Object
ibspan.ecap.merchant.shopdecisions.forecasting.FileDataProvider
- All Implemented Interfaces:
- DataProvider
public class FileDataProvider
- extends java.lang.Object
- implements DataProvider
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDataProvider
public FileDataProvider()
getHistoricalData
public net.sourceforge.openforecast.DataSet getHistoricalData(java.lang.String productId,
java.util.Date startDate,
int periodLength)
throws java.lang.Exception
- Description copied from interface:
DataProvider
- Creates a
DataSet
containing historical data needed to perform the forecast.
- Specified by:
getHistoricalData
in interface DataProvider
- Parameters:
productId
- the global id of the product to be forecastedstartDate
- the date starting from which the sales should be forecastedperiodLength
- 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
public net.sourceforge.openforecast.DataPoint getFuturePoint(java.lang.String productId,
java.util.Date startDate,
int periodLength,
net.sourceforge.openforecast.DataSet historicalData)
- Description copied from interface:
DataProvider
- Creates a
DataPoint
containing the known (independent) future variables used by
the forecast evaluator to predict the sales volume of a product.
- Specified by:
getFuturePoint
in interface DataProvider
- Parameters:
productId
- the global id of the product to be forecastedstartDate
- the date starting from which the sales should be forecastedperiodLength
- the length (in days) of the forecast period
- Returns:
- a
DataSet
containing historical data needed to perform the forecast