|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.ecap.merchant.shopdecisions.forecasting.ForecastTask
public class ForecastTask
A class representing a single forecasting task, containing all the information needed to schedule, execute at the proper time, and evaluate the forecast.
Constructor Summary | |
---|---|
ForecastTask(java.lang.String productId,
java.util.Date previousForecastEnd,
ForecastEvaluator evaluator)
Constructor |
Method Summary | |
---|---|
ForecastDescription |
call()
Uses the ForecastEvaluator passed in the constructor to prepare the forecast. |
java.util.Date |
getForecastStart()
Gets the date at which the forecast task should be executed. |
java.util.concurrent.Future<ForecastDescription> |
getFuture()
Gets the Future object able to return the result of the completed task. |
java.util.Date |
getPreviousForecastEnd()
Gets the date when the previous forecast period has finished |
java.lang.String |
getProductId()
Gets the id of the product to be forecasted. |
long |
getTaskId()
Gets the task's unique id |
void |
setForecastStart(java.util.Date forecastStart)
Sets the date at which the forecast task should be executed. |
void |
setFuture(java.util.concurrent.Future<ForecastDescription> future)
Sets the Future object able to return the result of the completed task. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForecastTask(java.lang.String productId, java.util.Date previousForecastEnd, ForecastEvaluator evaluator)
productId
- the id of the product to be forecastedpreviousForecastEnd
- the date when the previous forecast period has finishedevaluator
- the ForecastEvaluator
to be used when executing the taskMethod Detail |
---|
public ForecastDescription call() throws java.lang.Exception
ForecastEvaluator
passed in the constructor to prepare the forecast.
call
in interface java.util.concurrent.Callable<ForecastDescription>
java.lang.Exception
public java.util.Date getForecastStart()
public void setForecastStart(java.util.Date forecastStart)
forecastStart
- the date at which the forecast task should be executed.public java.lang.String getProductId()
public java.util.concurrent.Future<ForecastDescription> getFuture()
Future
object able to return the result of the completed task.
Future
object able to return the result of the completed task.public void setFuture(java.util.concurrent.Future<ForecastDescription> future)
Future
object able to return the result of the completed task.
future
- the Future
object able to return the result of the completed task.public java.util.Date getPreviousForecastEnd()
public long getTaskId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |