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
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
Modifier and TypeFieldDescriptionstatic 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
ConstructorDescriptionDestroy
(String id, DevsSimulatorInterface<T> simulator) Construct a Destroy flow block. -
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveEntity
(Entity<T> entity) 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
-
Field Details
-
TIME_IN_SYSTEM_EVENT
public static final org.djutils.event.EventType TIME_IN_SYSTEM_EVENTTIME_IN_SYSTEM_EVENT is fired when an entity leaves the system.
-
-
Constructor Details
-
Destroy
Construct a Destroy flow block.- Parameters:
id
- String; the id of the Destroy flow blocksimulator
- DevsSimulatorInterface<T>; the simulator
-
-
Method Details
-
receiveEntity
Arrival of a new entity into the flow object.- Overrides:
receiveEntity
in classFlowObject<T extends Number & Comparable<T>>
- Parameters:
entity
- Entity; the arriving entity
-