org.gscg.singleuser.handlers
Class PCShopRequestForQuoteHandler
java.lang.Object
nl.tudelft.simulation.content.Handler
nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
org.gscg.singleuser.handlers.PCShopRequestForQuoteHandler
- All Implemented Interfaces:
- nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable
- public class PCShopRequestForQuoteHandler
- extends nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
The RequestForQuotehandler implements the business logic for a supplier who
receives a RequestForQuote. The most simple version answers yes if the
product is on stock or ordered, and bases the price on the average costs of
the items on stock, after adding a fixed, but changeable, profit margin. The
answer is no if the product is not on stock, nor ordered.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
- Version:
- 1.0 Mar 4, 2004
- Author:
- Alexander
Verbraeck
- See Also:
- Serialized Form
Fields inherited from class nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler |
owner, validPartners, validProducts |
Fields inherited from class nl.tudelft.simulation.content.Handler |
stream |
Constructor Summary |
PCShopRequestForQuoteHandler(nl.tudelft.simulation.supplychain.actor.Trader owner,
nl.tudelft.simulation.jstats.distributions.DistContinuous handlingTimeDistribution,
nl.tudelft.simulation.supplychain.product.Product[] products,
DistTriangularGetters[] priceDistributions,
nl.tudelft.simulation.jstats.distributions.DistContinuous delayDistribution)
Construct a new RFQ handler. |
Method Summary |
void |
changePrice(nl.tudelft.simulation.supplychain.product.Product product,
boolean up,
double percentage)
Method changePrice changes the price distribution of a PCManufacturer |
protected boolean |
checkContentClass(java.io.Serializable content)
|
boolean |
handleContent(java.io.Serializable content)
|
Methods inherited from class nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler |
addValidPartner, addValidProduct, checkContent, getValidPartners, getValidProducts, isValidContent, setValidPartners, setValidProducts |
Methods inherited from class nl.tudelft.simulation.content.Handler |
getStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PCShopRequestForQuoteHandler
public PCShopRequestForQuoteHandler(nl.tudelft.simulation.supplychain.actor.Trader owner,
nl.tudelft.simulation.jstats.distributions.DistContinuous handlingTimeDistribution,
nl.tudelft.simulation.supplychain.product.Product[] products,
DistTriangularGetters[] priceDistributions,
nl.tudelft.simulation.jstats.distributions.DistContinuous delayDistribution)
- Construct a new RFQ handler.
- Parameters:
owner
- a trader in this case as only traders handle RFQshandlingTimeDistribution
- the distribution for the handling timeproducts
- the products to link to the price distributionspriceDistributions
- the price distributionsdelayDistribution
- the distribution for the delay
handleContent
public boolean handleContent(java.io.Serializable content)
- See Also:
HandlerInterface.handleContent(java.io.Serializable)
checkContentClass
protected boolean checkContentClass(java.io.Serializable content)
- See Also:
SupplyChainHandler.checkContentClass(java.io.Serializable)
changePrice
public void changePrice(nl.tudelft.simulation.supplychain.product.Product product,
boolean up,
double percentage)
- Method changePrice changes the price distribution of a PCManufacturer
- Parameters:
product
- the product to change the distribution forup
- if true, price will increase, if false, the price will decreasepercentage
- the percentage to change the price with
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.