Class LocalEventProducer
- All Implemented Interfaces:
 EventProducer
- Direct Known Subclasses:
 EventProducingCollection,EventProducingIterator,EventProducingList,EventProducingMap,EventProducingSet
The EventProducer forms the reference implementation of the publish side of the pub/sub design pattern. The storage of the listeners is done in a Map with the EventType as the key, and a List of References (weak or strong) to the Listeners. Note that the term 'Local' used in the class name is opposed to remote event producers such as the RmiEventProducer.
Copyright (c) 2002-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html. This class was originally part of the DSOL project, see https://simulation.tudelft.nl/dsol/manual.
- Author:
 - Peter Jacobs , Alexander Verbraeck
 
- 
Field Summary
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionReturn the map with the EventListener entries and the reference types.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener 
- 
Constructor Details
- 
LocalEventProducer
public LocalEventProducer() 
 - 
 - 
Method Details
- 
getEventListenerMap
Description copied from interface:EventProducerReturn the map with the EventListener entries and the reference types.- Specified by:
 getEventListenerMapin interfaceEventProducer- Returns:
 - the map with the EventListener entries and the reference types
 
 
 -