View Javadoc

1   /*
2    * @(#)InteractiveBillTimeOutHandler.java Jul 11, 2004
3    * 
4    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * See for project information <a href="http://www.simulation.tudelft.nl/">
8    * www.simulation.tudelft.nl </a>.
9    * 
10   * The source code and binary code of this software is proprietary information
11   * of Delft University of Technology.
12   */
13  package org.gscg.singleuser.handlers;
14  
15  import java.io.Serializable;
16  
17  import nl.tudelft.simulation.supplychain.actor.SupplyChainActor;
18  import nl.tudelft.simulation.supplychain.content.Bill;
19  import nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler;
20  
21  /***
22   * The InteractiveBillTimeOutHandler implements the most basic rules to deal
23   * with bills. In this case it is only used as a placeholder to prevent
24   * exceptions. Later versions may include rules, which are customized by a
25   * human.
26   * <p>
27   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
28   * Delft, the Netherlands. All rights reserved.
29   * 
30   * See for project information <a href="http://www.simulation.tudelft.nl/">
31   * www.simulation.tudelft.nl </a>.
32   * 
33   * The source code and binary code of this software is proprietary information
34   * of Delft University of Technology.
35   * 
36   * @author <a
37   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
38   *         van Houten </a>
39   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:56 $
40   * @since 1.0.0
41   */
42  public class InteractiveBillHandler extends SupplyChainHandler
43  {
44  	/*** the serial version uid */
45  	private static final long serialVersionUID = 11L;
46  
47  	/***
48  	 * Constructor of the empty interactive QuoteHandler
49  	 * 
50  	 * @param owner the actor for this QuoteHandler.
51  	 */
52  	public InteractiveBillHandler(final SupplyChainActor owner)
53  	{
54  		super(owner);
55  	}
56  
57  	/***
58  	 * @see nl.tudelft.simulation.supplychain.handlers.SupplyChainHandler#checkContentClass(java.io.Serializable)
59  	 */
60  	protected boolean checkContentClass(final Serializable content)
61  	{
62  		return (content instanceof Bill);
63  	}
64  
65  	/***
66  	 * @see nl.tudelft.simulation.content.HandlerInterface#handleContent(java.io.Serializable)
67  	 */
68  	public boolean handleContent(final Serializable content)
69  	{
70  		return true;
71  	}
72  }