ibspan.ecap.merchant.shopdecisions.forecasting
Class ForecastedProductInventory

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

public class ForecastedProductInventory
extends java.lang.Object

A class managing the list of products which sales are forecasted.

Author:
Michal

Constructor Summary
ForecastedProductInventory()
           
 
Method Summary
 java.util.List<java.lang.String> getForecastedProducts()
          Returns a list of products which sales are forecasted.
 boolean isForecasted(java.lang.String productId)
          Checks whether the specified product's sales are forecasted.
 void registerForForecast(java.lang.String productId)
          Registers a new product for sales forecasting.
 void withdrawFromForecast(java.lang.String productId)
          Withdraws a product from sales forecasting.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForecastedProductInventory

public ForecastedProductInventory()
Method Detail

registerForForecast

public void registerForForecast(java.lang.String productId)
Registers a new product for sales forecasting.

Parameters:
productId - The id of the product to be forecasted.

withdrawFromForecast

public void withdrawFromForecast(java.lang.String productId)
Withdraws a product from sales forecasting.

Parameters:
productId - The id of the product to be withdrawn.

isForecasted

public boolean isForecasted(java.lang.String productId)
Checks whether the specified product's sales are forecasted.

Parameters:
productId - The id of the product to check.
Returns:
True if the product's sales are forecasted, false otherwise.

getForecastedProducts

public java.util.List<java.lang.String> getForecastedProducts()
Returns a list of products which sales are forecasted.

Returns:
A list of products which sales are forecasted.