org.gscg.singleuser.handlers
Class ManufacturerOrderHandlerProduce
java.lang.Object
nl.tudelft.simulation.content.Handler
nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
nl.tudelft.simulation.supplychain.handlers.OrderHandler
org.gscg.singleuser.handlers.ManufacturerOrderHandlerProduce
- All Implemented Interfaces:
- nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable
- public class ManufacturerOrderHandlerProduce
- extends nl.tudelft.simulation.supplychain.handlers.OrderHandler
This handler receives an order and tries to collect the products for it. If
there is not enough on stock, it creates a production order and waits till
the right amount of products is produced.
(c) copyright 2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
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 are proprietary information
of Delft University of Technology.
- Since:
- 1.1.10
- Version:
- $Revision: 1.1 $ $Date: 2005/08/09 15:43:41 $
- Author:
- Stijn-Pieter
van Houten
- See Also:
- Serialized Form
Fields inherited from class nl.tudelft.simulation.supplychain.handlers.OrderHandler |
SHIPMENT_AFTER_PAYMENT, SHIPMENT_BEFORE_PAYMENT, SHIPMENT_WITH_PAYMENT, stock |
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 |
ManufacturerOrderHandlerProduce(nl.tudelft.simulation.supplychain.actor.Trader trader,
nl.tudelft.simulation.supplychain.handlers.ProductionOrderHandler handler)
constructs a new ManufacturerOrderHandlerProduce |
Method Summary |
boolean |
handleContent(java.io.Serializable content)
|
protected void |
ship(nl.tudelft.simulation.supplychain.content.Order order)
Pick and ship the goods. |
Methods inherited from class nl.tudelft.simulation.supplychain.handlers.OrderHandler |
checkContentClass |
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 |
ManufacturerOrderHandlerProduce
public ManufacturerOrderHandlerProduce(nl.tudelft.simulation.supplychain.actor.Trader trader,
nl.tudelft.simulation.supplychain.handlers.ProductionOrderHandler handler)
- constructs a new ManufacturerOrderHandlerProduce
- Parameters:
trader
- the traderhandler
- the handler for production
handleContent
public boolean handleContent(java.io.Serializable content)
- See Also:
HandlerInterface.handleContent(java.io.Serializable)
ship
protected void ship(nl.tudelft.simulation.supplychain.content.Order order)
- Pick and ship the goods.
- Parameters:
order
- the order that should be handled
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.