ibspan.ecap.merchant.shopdecisions.forecasting
Class ForecastEvaluator

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.forecasting.ForecastEvaluator

public class ForecastEvaluator
extends java.lang.Object

A class responsible for calculating a sales forecast for a given product.

Author:
Micha³ Drozdowicz

Constructor Summary
ForecastEvaluator()
           
 
Method Summary
 ForecastDescription prepareForecast(java.lang.String productId, java.util.Date forecastStart)
          Prepares a forecast of the specified product starting at the given date.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForecastEvaluator

public ForecastEvaluator()
Method Detail

prepareForecast

public ForecastDescription prepareForecast(java.lang.String productId,
                                           java.util.Date forecastStart)
                                    throws DataLoadException
Prepares a forecast of the specified product starting at the given date.

Parameters:
productId - the id of the product
forecastStart - the start date of the forecast
Returns:
the description of the sales forecast of the product starting at the given date
Throws:
DataLoadException - when the data needed for forecast could not be loaded.