ibspan.ecap.merchant.shopdecisions.dataaccess
Class SalesFact

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataaccess.SalesFact

public class SalesFact
extends java.lang.Object

A class representing an observation about the sales process of a single product. It is roughly equivalent to an entity of the Sales fact table.

Author:
Micha³ Drozdowicz

Constructor Summary
SalesFact()
          Instantiates a new sales fact.
SalesFact(int negotiationEndDateKey, int negotiationEndTimeKey, int productOfferedKey, int strategyUsedKey, int templateUsedKey, int negotiationId, int quantityOffered, float valueOffered, float minimumValueOffered, int quantityReserved, float valueReserved, int quantityConfirmed, float valueConfirmed, int bidCount, int winningBidCount, int finishedTransactionCount)
          Creates a new instance of SalesFact.
 
Method Summary
 int getBidCount()
          Gets the number of bids during the negotiation.
 int getFinishedTransactionCount()
          Gets the number of finished transactions following this negotiation, that is the reservations that ended up either confirmed, cancelled or expired.
 float getMinimumValueOffered()
          Gets the total value of the product offered using the minimum price set in the negotiation strategy.
 int getNegotiationEndDateKey()
          Gets the key to the date dimension entry describing the negotiation end date.
 int getNegotiationEndTimeKey()
          Gets the key to the time dimension entry describing the negotiation end time.
 int getNegotiationId()
          Gets the negotiation's operational id.
 int getProductOfferedKey()
          Gets the key to the product dimension entry describing the offered product.
 int getQuantityConfirmed()
          Gets the amount of product confirmed by the buyers and considered sold.
 int getQuantityOffered()
          Gets the amount of product offered for negotiation.
 int getQuantityReserved()
          Gets the amount of product reserved after negotiation.
 int getStrategyUsedKey()
          Gets the key to the strategy dimension entry describing the strategy used during the negotiation.
 int getTemplateUsedKey()
          Gets the key to the template dimension entry describing the template used during the negotiation.
 float getValueConfirmed()
          Gets the total value of the products confirmed by the buyers and considered sold.
 float getValueOffered()
          Gets the total value of the products offered for negotiation counted using the starting price.
 float getValueReserved()
          Gets the total value of the products reserved after the negotiation.
 int getWinningBidCount()
          Gets the number of winning bids.
 void setBidCount(int bidCount)
          Sets the number of bids during the negotiation.
 void setFinishedTransactionCount(int finishedTransactionCount)
          Sets the number of finished transactions following this negotiation, that is the reservations that ended up either confirmed, cancelled or expired.
 void setMinimumValueOffered(float minimumValueOffered)
          Sets the total value of the product offered using the minimum price set in the negotiation strategy.
 void setNegotiationEndDateKey(int negotiationEndDateKey)
          Sets the key to the date dimension entry describing the negotiation end date.
 void setNegotiationEndTimeKey(int negotiationEndTimeKey)
          Sets the key to the time dimension entry describing the negotiation end time.
 void setNegotiationId(int negotiationId)
          Sets the negotiation's operational id.
 void setProductOfferedKey(int productOfferedKey)
          Sets the key to the product dimension entry describing the offered product.
 void setQuantityConfirmed(int quantityConfirmed)
          Sets the amount of product confirmed by the buyers and considered sold.
 void setQuantityOffered(int quantityOffered)
          Sets the amount of product offered for negotiation.
 void setQuantityReserved(int quantityReserved)
          Sets the amount of product reserved after negotiation.
 void setStrategyUsedKey(int strategyUsedKey)
          Sets the key to the strategy dimension entry describing the strategy used during the negotiation.
 void setTemplateUsedKey(int templateUsedKey)
          Sets the key to the template dimension entry describing the template used during the negotiation.
 void setValueConfirmed(float valueConfirmed)
          Sets the total value of the products confirmed by the buyers and considered sold.
 void setValueOffered(float valueOffered)
          Sets the total value of the products offered for negotiation counted using the starting price.
 void setValueReserved(float valueReserved)
          Sets the total value of the products reserved after the negotiation.
 void setWinningBidCount(int winningBidCount)
          Sets the number of winning bids.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SalesFact

public SalesFact()
Instantiates a new sales fact.


SalesFact

public SalesFact(int negotiationEndDateKey,
                 int negotiationEndTimeKey,
                 int productOfferedKey,
                 int strategyUsedKey,
                 int templateUsedKey,
                 int negotiationId,
                 int quantityOffered,
                 float valueOffered,
                 float minimumValueOffered,
                 int quantityReserved,
                 float valueReserved,
                 int quantityConfirmed,
                 float valueConfirmed,
                 int bidCount,
                 int winningBidCount,
                 int finishedTransactionCount)
Creates a new instance of SalesFact.

Parameters:
negotiationEndDateKey - the negotiation end date key
negotiationEndTimeKey - the negotiation end time key
productOfferedKey - the product offered key
strategyUsedKey - the strategy used key
templateUsedKey - the template used key
negotiationId - the negotiation id
quantityOffered - the quantity offered
valueOffered - the value offered
minimumValueOffered - the minimum value offered
quantityReserved - the quantity reserved
valueReserved - the value reserved
quantityConfirmed - the quantity confirmed
valueConfirmed - the value confirmed
bidCount - the bid count
winningBidCount - the winning bid count
finishedTransactionCount - the finished transaction count
Method Detail

getBidCount

public int getBidCount()
Gets the number of bids during the negotiation.

Returns:
the number of bids during the negotiation.

setBidCount

public void setBidCount(int bidCount)
Sets the number of bids during the negotiation.

Parameters:
bidCount - the number of bids during the negotiation to set.

getFinishedTransactionCount

public int getFinishedTransactionCount()
Gets the number of finished transactions following this negotiation, that is the reservations that ended up either confirmed, cancelled or expired.

Returns:
the number of finished transactions following this negotiation

setFinishedTransactionCount

public void setFinishedTransactionCount(int finishedTransactionCount)
Sets the number of finished transactions following this negotiation, that is the reservations that ended up either confirmed, cancelled or expired.

Parameters:
finishedTransactionCount - the number of finished transactions following this negotiation to set

getMinimumValueOffered

public float getMinimumValueOffered()
Gets the total value of the product offered using the minimum price set in the negotiation strategy.

Returns:
the total value of the product offered using the minimum price set in the negotiation strategy.

setMinimumValueOffered

public void setMinimumValueOffered(float minimumValueOffered)
Sets the total value of the product offered using the minimum price set in the negotiation strategy.

Parameters:
minimumValueOffered - the the total value of the product offered using the minimum price set in the negotiation strategy to set

getNegotiationEndDateKey

public int getNegotiationEndDateKey()
Gets the key to the date dimension entry describing the negotiation end date.

Returns:
the the key to the date dimension entry describing the negotiation end date.

setNegotiationEndDateKey

public void setNegotiationEndDateKey(int negotiationEndDateKey)
Sets the key to the date dimension entry describing the negotiation end date.

Parameters:
negotiationEndDateKey - the key to the date dimension entry describing the negotiation end date.

getNegotiationEndTimeKey

public int getNegotiationEndTimeKey()
Gets the key to the time dimension entry describing the negotiation end time.

Returns:
the key to the time dimension entry describing the negotiation end time.

setNegotiationEndTimeKey

public void setNegotiationEndTimeKey(int negotiationEndTimeKey)
Sets the key to the time dimension entry describing the negotiation end time.

Parameters:
negotiationEndTimeKey - the key to the time dimension entry describing the negotiation end time to set

getNegotiationId

public int getNegotiationId()
Gets the negotiation's operational id.

Returns:
the negotiation's operational id.

setNegotiationId

public void setNegotiationId(int negotiationId)
Sets the negotiation's operational id.

Parameters:
negotiationId - the negotiation's operational id to set.

getProductOfferedKey

public int getProductOfferedKey()
Gets the key to the product dimension entry describing the offered product.

Returns:
the key to the product dimension entry describing the offered product.

setProductOfferedKey

public void setProductOfferedKey(int productOfferedKey)
Sets the key to the product dimension entry describing the offered product.

Parameters:
productOfferedKey - the key to the product dimension entry describing the offered product to set

getQuantityConfirmed

public int getQuantityConfirmed()
Gets the amount of product confirmed by the buyers and considered sold.

Returns:
the amount of product confirmed by the buyers and considered sold.

setQuantityConfirmed

public void setQuantityConfirmed(int quantityConfirmed)
Sets the amount of product confirmed by the buyers and considered sold.

Parameters:
quantityConfirmed - the amount of product confirmed by the buyers and considered sold to set

getQuantityOffered

public int getQuantityOffered()
Gets the amount of product offered for negotiation.

Returns:
the amount of product offered for negotiation.

setQuantityOffered

public void setQuantityOffered(int quantityOffered)
Sets the amount of product offered for negotiation.

Parameters:
quantityOffered - the amount of product offered for negotiation.

getQuantityReserved

public int getQuantityReserved()
Gets the amount of product reserved after negotiation.

Returns:
the amount of product reserved after negotiation.

setQuantityReserved

public void setQuantityReserved(int quantityReserved)
Sets the amount of product reserved after negotiation.

Parameters:
quantityReserved - the amount of product reserved after negotiation to set

getStrategyUsedKey

public int getStrategyUsedKey()
Gets the key to the strategy dimension entry describing the strategy used during the negotiation.

Returns:
the key to the strategy dimension entry describing the strategy used during the negotiation.

setStrategyUsedKey

public void setStrategyUsedKey(int strategyUsedKey)
Sets the key to the strategy dimension entry describing the strategy used during the negotiation.

Parameters:
strategyUsedKey - the key to the strategy dimension entry describing the strategy used during the negotiation to set

getTemplateUsedKey

public int getTemplateUsedKey()
Gets the key to the template dimension entry describing the template used during the negotiation.

Returns:
the key to the template dimension entry describing the template used during the negotiation.

setTemplateUsedKey

public void setTemplateUsedKey(int templateUsedKey)
Sets the key to the template dimension entry describing the template used during the negotiation.

Parameters:
templateUsedKey - the key to the template dimension entry describing the template used during the negotiation to set

getValueConfirmed

public float getValueConfirmed()
Gets the total value of the products confirmed by the buyers and considered sold.

Returns:
the total value of the products confirmed by the buyers and considered sold.

setValueConfirmed

public void setValueConfirmed(float valueConfirmed)
Sets the total value of the products confirmed by the buyers and considered sold.

Parameters:
valueConfirmed - the total value of the products confirmed by the buyers and considered sold to set

getValueOffered

public float getValueOffered()
Gets the total value of the products offered for negotiation counted using the starting price.

Returns:
the total value of the products offered for negotiation counted using the starting price.

setValueOffered

public void setValueOffered(float valueOffered)
Sets the total value of the products offered for negotiation counted using the starting price.

Parameters:
valueOffered - the total value of the products offered for negotiation counted using the starting price to set

getValueReserved

public float getValueReserved()
Gets the total value of the products reserved after the negotiation.

Returns:
the total value of the products reserved after the negotiation.

setValueReserved

public void setValueReserved(float valueReserved)
Sets the total value of the products reserved after the negotiation.

Parameters:
valueReserved - the total value of the products reserved after the negotiation to set

getWinningBidCount

public int getWinningBidCount()
Gets the number of winning bids.

Returns:
the number of winning bids.

setWinningBidCount

public void setWinningBidCount(int winningBidCount)
Sets the number of winning bids.

Parameters:
winningBidCount - the number of winning bids to set