ibspan.ecap.merchant.shopdecisions.negotiationpreparation
Class PreparationTask

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.negotiationpreparation.PreparationTask
All Implemented Interfaces:
java.util.concurrent.Callable<NegotiationDescription>

public class PreparationTask
extends java.lang.Object
implements java.util.concurrent.Callable<NegotiationDescription>

A Callable class representing a negotiation preparation task. The template is prepared by a TemplatePreparer specified in a constructor.

Author:
Micha³ Drozdowicz

Constructor Summary
PreparationTask(java.lang.String productId, java.util.Date preparationDate, NegotiationDescription previousTemplate, TemplatePreparer preparer)
          Creates a new instance of PreparationTask.
 
Method Summary
 NegotiationDescription call()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparationTask

public PreparationTask(java.lang.String productId,
                       java.util.Date preparationDate,
                       NegotiationDescription previousTemplate,
                       TemplatePreparer preparer)
Creates a new instance of PreparationTask.

Parameters:
productId - the id of the product for which a negotiation template is to be prepared
preparationDate - the date from which the template is to be used
previousTemplate - the template used previously
preparer - the object responsible for preparing the template
Method Detail

call

public NegotiationDescription call()
                            throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<NegotiationDescription>
Throws:
java.lang.Exception