Class Release<T extends Number & Comparable<T>>

Type Parameters:
T - the time type
All Implemented Interfaces:
Serializable, Remote, Identifiable, EventProducer

public class Release<T extends Number & Comparable<T>> extends FlowObject<T>
The Release flow object releases a given quantity of a claimed resource.

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
See Also:
  • Constructor Details

    • Release

      public Release(String id, DevsSimulatorInterface<T> simulator, Resource<T> resource)
      Construct a Release flow object to release seized resource units.
      Parameters:
      id - String; the id of the FlowObject
      simulator - DevsSimulatorInterface<T>; on which is scheduled
      resource - Resource<T>; which is released
    • Release

      public Release(String id, DevsSimulatorInterface<T> simulator, Resource<T> resource, double amount)
      Constructor for Release.
      Parameters:
      id - String; the id of the FlowObject
      simulator - DevsSimulatorInterface<T>; on which is scheduled
      resource - Resource<T>; which is released
      amount - double; of resource which is released
  • Method Details