ibspan.ecap.merchant.shopdecisions.dataadministration
Class SalesFactProcessor
java.lang.Object
ibspan.ecap.merchant.shopdecisions.dataadministration.SalesFactProcessor
public class SalesFactProcessor
- extends java.lang.Object
A class responsible for extracting the appropriate information from the negotiation and transaction finalisation logs and creating a supplies fact object.
- Author:
- Micha³ Drozdowicz
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SalesFactProcessor
public SalesFactProcessor()
createSalesFact
public SalesFact createSalesFact(int endDateKey,
int endTimeKey,
int strategyKey,
int templateKey,
int productKey,
NegotiationLog log)
- Creates the sales fact.
- Parameters:
endDateKey
- the key to the date dimension entry describing the negotiation end date.endTimeKey
- the key to the time dimension entry describing the negotiation end time.strategyKey
- the key to the strategy dimension entry describing the strategy used during the negotiation.templateKey
- the key to the template dimension entry describing the template used during the negotiation.productKey
- the key to the product dimension entry describing the offered product.log
- the details of the negotiation
- Returns:
- the sales fact
updateSalesFact
public void updateSalesFact(SalesFact fact,
TransactionLog log)
- Updates the sales fact with the information available after the finalisation of a transaction.
- Parameters:
fact
- the sales fact to updatelog
- the log containg information about a finished transaction