org.gscg.singleuser.handlers
Class InteractiveBillTimeOutHandler

java.lang.Object
  extended bynl.tudelft.simulation.content.Handler
      extended bynl.tudelft.simulation.supplychain.handlers.SupplyChainHandler
          extended byorg.gscg.singleuser.handlers.InteractiveBillTimeOutHandler
All Implemented Interfaces:
nl.tudelft.simulation.content.HandlerInterface, java.io.Serializable

public class InteractiveBillTimeOutHandler
extends nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler

The InteractiveBillTimeOutHandler implements the most basic rules to deal with bills. In this case it is only used as a placeholder to prevent exceptions. Later versions may include rules, which are customized by a human.

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.1 $ $Date: 2005/06/16 12:33:56 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Field Summary
 
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
InteractiveBillTimeOutHandler(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner, double maximumTimeOut)
          constructs a new InteractiveBillTimeOutHandler
 
Method Summary
protected  boolean checkContentClass(java.io.Serializable content)
           
protected  void checkPayment(nl.tudelft.simulation.supplychain.content.Bill bill)
           
 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
 

Constructor Detail

InteractiveBillTimeOutHandler

public InteractiveBillTimeOutHandler(nl.tudelft.simulation.supplychain.actor.SupplyChainActor owner,
                                     double maximumTimeOut)
constructs a new InteractiveBillTimeOutHandler

Parameters:
owner - the owner
maximumTimeOut - the time out to use
Method Detail

checkContentClass

protected boolean checkContentClass(java.io.Serializable content)
See Also:
SupplyChainHandler.checkContentClass(java.io.Serializable)

handleContent

public boolean handleContent(java.io.Serializable content)
See Also:
HandlerInterface.handleContent(java.io.Serializable)

checkPayment

protected void checkPayment(nl.tudelft.simulation.supplychain.content.Bill bill)
Parameters:
bill - the bill


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.