Package | Description |
---|---|
nl.tudelft.simulation.event |
Provides classes and interfaces for asynchronous communication.
|
nl.tudelft.simulation.event.util |
Provides an extension to Java's collection library.
|
Modifier and Type | Field and Description |
---|---|
protected EventType |
Event.type
type is the type of the event
|
Modifier and Type | Method and Description |
---|---|
EventType[] |
EventProducer.getEventTypes() |
EventType[] |
EventProducerInterface.getEventTypes()
returns all the eventTypes for which a listener can subscribe.
|
EventType |
EventInterface.getType()
returns the type of the event.
|
EventType |
Event.getType() |
Modifier and Type | Method and Description |
---|---|
boolean |
EventProducer.addListener(EventListenerInterface listener,
EventType eventType)
adds the listener as weak reference to the listener.
|
boolean |
EventProducerInterface.addListener(EventListenerInterface listener,
EventType eventType)
adds a listener as strong reference to the BEGINNING of a queue of
listeners.
|
boolean |
EventProducer.addListener(EventListenerInterface listener,
EventType eventType,
boolean weak) |
boolean |
EventProducerInterface.addListener(EventListenerInterface listener,
EventType eventType,
boolean weak)
adds a listener to the BEGINNING of a queue of listeners.
|
boolean |
EventProducer.addListener(EventListenerInterface listener,
EventType eventType,
short position)
adds the listener as weak reference to the listener.
|
boolean |
EventProducerInterface.addListener(EventListenerInterface listener,
EventType eventType,
short position)
adds a listener as strong reference to the specified position of a queue
of listeners.
|
boolean |
EventProducer.addListener(EventListenerInterface listener,
EventType eventType,
short position,
boolean weak) |
boolean |
EventProducerInterface.addListener(EventListenerInterface listener,
EventType eventType,
short position,
boolean weak)
adds a listener to the specified position of a queue of listeners.
|
protected boolean |
EventProducer.fireEvent(EventType eventType,
boolean value)
fires a boolean value to subscribed listeners subscribed to eventType.
|
protected boolean |
EventProducer.fireEvent(EventType eventType,
boolean value,
double time)
fires a boolean value to subscribed listeners subscribed to eventType.
|
protected byte |
EventProducer.fireEvent(EventType eventType,
byte value)
fires a byte value to subscribed listeners subscribed to eventType.
|
protected byte |
EventProducer.fireEvent(EventType eventType,
byte value,
double time)
fires a byte value to subscribed listeners subscribed to eventType.
|
protected double |
EventProducer.fireEvent(EventType eventType,
double value)
fires a double value to subscribed listeners subscribed to eventType.
|
protected double |
EventProducer.fireEvent(EventType eventType,
double value,
double time)
fires a double value to subscribed listeners subscribed to eventType.
|
protected int |
EventProducer.fireEvent(EventType eventType,
int value)
fires an integer value to subscribed listeners subscribed to eventType.
|
protected int |
EventProducer.fireEvent(EventType eventType,
int value,
double time)
fires an integer value to subscribed listeners subscribed to eventType.
|
protected long |
EventProducer.fireEvent(EventType eventType,
long value)
fires a long value to subscribed listeners subscribed to eventType.
|
protected long |
EventProducer.fireEvent(EventType eventType,
long value,
double time)
fires a long value to subscribed listeners subscribed to eventType.
|
protected Object |
EventProducer.fireEvent(EventType eventType,
Object value)
fires a value to subscribed listeners subscribed to eventType.
|
protected Object |
EventProducer.fireEvent(EventType eventType,
Object value,
double time)
fires a Serializable value to subscribed listeners subscribed to
eventType.
|
protected short |
EventProducer.fireEvent(EventType eventType,
short value)
fires a short value to subscribed listeners subscribed to eventType.
|
protected short |
EventProducer.fireEvent(EventType eventType,
short value,
double time)
fires a short value to subscribed listeners subscribed to eventType.
|
boolean |
EventProducer.removeListener(EventListenerInterface listener,
EventType eventType) |
boolean |
EventProducerInterface.removeListener(EventListenerInterface listener,
EventType eventType)
removes the subscription of a listener for a specific event.
|
Constructor and Description |
---|
Event(EventType type,
Object source,
Object content)
constructs a new Event.
|
TimedEvent(EventType type,
Object source,
Object value,
double timeStamp)
constructs a new timed event.
|
Modifier and Type | Field and Description |
---|---|
static EventType |
EventProducingList.OBJECT_ADDED_EVENT
OBJECT_ADDED_EVENT is fired on new entries
|
static EventType |
EventProducingMap.OBJECT_ADDED_EVENT
OBJECT_ADDED_EVENT is fired on new entries
|
static EventType |
EventProducingSet.OBJECT_ADDED_EVENT
OBJECT_ADDED_EVENT is fired on new entries
|
static EventType |
EventProducingCollection.OBJECT_ADDED_EVENT
OBJECT_ADDED_EVENT is fired on new entries
|
static EventType |
EventProducingList.OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
static EventType |
EventProducingMap.OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
static EventType |
EventIterator.OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
static EventType |
EventProducingSet.OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
static EventType |
EventProducingCollection.OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.