org.gscg.singleuser.handlers
Class InteractiveOrderConfirmationFineHandler
java.lang.Object
nl.tudelft.simulation.content.Handler
nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
org.gscg.singleuser.handlers.InteractiveOrderConfirmationFineHandler
- All Implemented Interfaces:
- nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable
- public class InteractiveOrderConfirmationFineHandler
- extends nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
The InteractiveOrderConfirmationFineHandler is a simple implementation of the
business logic for a OrderConfirmation that comes in. When the confirmation
is positive: just ignore it. When it is negative: it is more difficult. The
easiest is to go to the 'next' option, e.g. to the next Quote when there were
quotes. It is also possible to redo the entire ordering process from scratch.
The latter strategy is implemented in this version of the handler.
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.
- Since:
- 1.0.0
- Version:
- $Revision: 1.2 $ $Date: 2005/08/03 08:52:50 $
- 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 |
InteractiveOrderConfirmationFineHandler(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
double maximumTimeOut,
double fineMargin,
double fixedFine)
constructs a new InteractiveOrderConfirmationFineHandler |
Method Summary |
protected boolean |
checkContentClass(java.io.Serializable content)
|
protected void |
checkShipment(nl.tudelft.simulation.supplychain.content.OrderConfirmation orderConfirmation)
|
boolean |
handleContent(java.io.Serializable content)
For the moment, the handler will just reorder the products from the start
of the process, in case the confirmation is negative. |
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 |
InteractiveOrderConfirmationFineHandler
public InteractiveOrderConfirmationFineHandler(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
double maximumTimeOut,
double fineMargin,
double fixedFine)
- constructs a new InteractiveOrderConfirmationFineHandler
- Parameters:
owner
- the ownermaximumTimeOut
- the time outfineMargin
- the marginfixedFine
- the fixed fine
handleContent
public boolean handleContent(java.io.Serializable content)
- For the moment, the handler will just reorder the products from the start
of the process, in case the confirmation is negative.
- See Also:
HandlerInterface.handleContent(java.io.Serializable)
checkShipment
protected void checkShipment(nl.tudelft.simulation.supplychain.content.OrderConfirmation orderConfirmation)
- Parameters:
orderConfirmation
- the order confirmation
checkContentClass
protected boolean checkContentClass(java.io.Serializable content)
- See Also:
SupplyChainHandler.checkContentClass(java.io.Serializable)
Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.