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

java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.formalisms.flow.FlowObject<T>
nl.tudelft.simulation.dsol.formalisms.flow.Destroy<T>
Type Parameters:
T - the time type itself to be able to implement a comparator on the simulation time.
All Implemented Interfaces:
Serializable, Remote, org.djutils.base.Identifiable, org.djutils.event.EventProducer

public class Destroy<T extends Number & Comparable<T>> extends FlowObject<T>
The Destroy flow block where entities will be destroyed from the model.

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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.djutils.event.EventType
    TIME_IN_SYSTEM_EVENT is fired when an entity leaves the system.

    Fields inherited from class nl.tudelft.simulation.dsol.formalisms.flow.FlowObject

    RECEIVE_EVENT, RELEASE_EVENT

    Fields inherited from interface org.djutils.event.EventProducer

    FIRST_POSITION, LAST_POSITION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a Destroy flow block.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Arrival of a new entity into the flow object.

    Methods inherited from class nl.tudelft.simulation.dsol.formalisms.flow.FlowObject

    getDestination, getId, getSimulator, releaseEntity, setDestination, toString

    Methods inherited from class org.djutils.event.LocalEventProducer

    addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • TIME_IN_SYSTEM_EVENT

      public static final org.djutils.event.EventType TIME_IN_SYSTEM_EVENT
      TIME_IN_SYSTEM_EVENT is fired when an entity leaves the system.
  • Constructor Details

    • Destroy

      public Destroy(String id, DevsSimulatorInterface<T> simulator)
      Construct a Destroy flow block.
      Parameters:
      id - String; the id of the Destroy flow block
      simulator - DevsSimulatorInterface<T>; the simulator
  • Method Details