Interface IntResourceRequestorInterface<T extends Number & Comparable<T>>
-
- Type Parameters:
T- the simulation time type.
- All Known Implementing Classes:
Container
public interface IntResourceRequestorInterface<T extends Number & Comparable<T>>This interface provides a callback method to the resource. Whenever resource is available this method is invoked on the requestor..Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Since:
- 1.5
- Author:
- Peter Jacobs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidreceiveRequestedResource(int requestedCapacity, IntResource<T> resource)receive the requested resource.voidreceiveRequestedResource(long requestedCapacity, IntResource<T> resource)receive the requested resource.
-
-
-
Method Detail
-
receiveRequestedResource
void receiveRequestedResource(long requestedCapacity, IntResource<T> resource) throws RemoteExceptionreceive the requested resource.- Parameters:
requestedCapacity- long; reflects the amount requested.resource- IntResource<T>; the requested resource.- Throws:
RemoteException- on network failure.
-
receiveRequestedResource
default void receiveRequestedResource(int requestedCapacity, IntResource<T> resource) throws RemoteExceptionreceive the requested resource.- Parameters:
requestedCapacity- int; reflects the amount requested.resource- IntResource<T>; the requested resource.- Throws:
RemoteException- on network failure.
-
-