Interface ResourceRequestorInterface<T extends Number & Comparable<T>>

Type Parameters:
T - the simulation time type.
All Known Implementing Classes:
Seize

public interface ResourceRequestorInterface<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-2024 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.

Author:
Peter Jacobs , Alexander Verbraeck
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    receiveRequestedResource(double requestedCapacity, Resource<T> resource)
    receive the requested resource.
  • Method Details

    • receiveRequestedResource

      void receiveRequestedResource(double requestedCapacity, Resource<T> resource) throws RemoteException
      receive the requested resource.
      Parameters:
      requestedCapacity - double; reflects the amount requested.
      resource - Resource<T>; the requested resource.
      Throws:
      RemoteException - on network failure.