ibspan.ecap.merchant.shopdecisions.dataadministration
Class SuppliesFactProcessor

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataadministration.SuppliesFactProcessor

public class SuppliesFactProcessor
extends java.lang.Object

A class responsible for extracting the appropriate information from the supply delivery log and creating a supplies fact object.

Author:
Micha³ Drozdowicz

Constructor Summary
SuppliesFactProcessor()
           
 
Method Summary
 SuppliesFact createSuppliesFact(int orderDateKey, int orderTimeKey, int deliveryDateKey, int deliveryTimeKey, int productKey, int wholesalerKey, DeliveryLog log)
          Creates the supplies fact.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuppliesFactProcessor

public SuppliesFactProcessor()
Method Detail

createSuppliesFact

public SuppliesFact createSuppliesFact(int orderDateKey,
                                       int orderTimeKey,
                                       int deliveryDateKey,
                                       int deliveryTimeKey,
                                       int productKey,
                                       int wholesalerKey,
                                       DeliveryLog log)
Creates the supplies fact.

Parameters:
orderDateKey - the key to the date dimension entry describing the date of the making of the order
orderTimeKey - the key to the time dimension entry describing the time of day of the making of the order.
deliveryDateKey - the key to the date dimension entry describing the date the ordered product was delivered.
deliveryTimeKey - the key to the time dimension entry describing the time of day when the ordered product was delivered.
productKey - the key to the product dimension entry describing the product delivered.
wholesalerKey - the key of the wholesaler dimension entry describing the wholesaler who handled this order.
log - the log describing the delivery
Returns:
the supplies fact