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

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

public class Duplicate<T extends Number & Comparable<T>> extends FlowObject<T>
The Duplicate flow block makes a number of copies of incoming entities and sends them to a destination.

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

    • Duplicate

      public Duplicate(String id, DevsSimulatorInterface<T> simulator, FlowObject<T> duplicateDestination)
      Create a new Duplicate flow block that makes 1 copy.
      Parameters:
      id - String; the id of the FlowObject
      simulator - DevsSimulatorInterface<T>; on which is scheduled
      duplicateDestination - FlowObject<T>; the duplicate destination
    • Duplicate

      public Duplicate(String id, DevsSimulatorInterface<T> simulator, FlowObject<T> duplicateDestination, int numberCopies)
      Create a new Duplicate flock block that makes numberCopies copies.
      Parameters:
      id - String; the id of the FlowObject
      simulator - DevsSimulatorInterface<T>; on which is scheduled
      duplicateDestination - FlowObject<T>; which is the duplicate definition
      numberCopies - int; the number of copies
  • Method Details