View Javadoc

1   /*
2    * @(#)ResourceRequestorInterface.java Feb 1, 2003
3    * 
4    * Copyright (c) 2003 Delft University of Technology Jaffalaan 5, 2628 BX Delft,
5    * the Netherlands All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.dsol.formalisms;
11  
12  import java.rmi.RemoteException;
13  
14  /***
15   * This interface provides a callback method to the resource. Whenever resource
16   * is available this method is invoked on the requestor.
17   * <p>
18   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
19   * University of Technology </a>, the Netherlands. <br>
20   * See for project information <a href="http://www.simulation.tudelft.nl">
21   * www.simulation.tudelft.nl </a> <br>
22   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
23   * License (GPL) </a>, no warranty <br>
24   * 
25   * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
26   *         Jacobs </a>
27   * @version 1.2 2004-03-26
28   * @since 1.0
29   */
30  public interface ResourceRequestorInterface
31  {
32  	/***
33  	 * receive the requested resource
34  	 * 
35  	 * @param requestedCapacity reflects the amount requested
36  	 * @param resource the requested resource
37  	 * @throws RemoteException on network failure
38  	 */
39  	void receiveRequestedResource(final double requestedCapacity,
40  			final Resource resource) throws RemoteException;
41  }