public interface EventProducerInterface
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
| Modifier and Type | Field and Description |
|---|---|
static short |
FIRST_POSITION
The FIRST_POSITION in the queue
|
static short |
LAST_POSITION
The LAST_POSITION in the queue
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(EventListenerInterface listener,
EventType eventType)
adds a listener as strong reference to the BEGINNING of a queue of
listeners.
|
boolean |
addListener(EventListenerInterface listener,
EventType eventType,
boolean weak)
adds a listener to the BEGINNING of a queue of listeners.
|
boolean |
addListener(EventListenerInterface listener,
EventType eventType,
short position)
adds a listener as strong reference to the specified position of a queue
of listeners.
|
boolean |
addListener(EventListenerInterface listener,
EventType eventType,
short position,
boolean weak)
adds a listener to the specified position of a queue of listeners.
|
EventType[] |
getEventTypes()
returns all the eventTypes for which a listener can subscribe.
|
boolean |
removeListener(EventListenerInterface listener,
EventType eventType)
removes the subscription of a listener for a specific event.
|
static final short FIRST_POSITION
static final short LAST_POSITION
boolean addListener(EventListenerInterface listener, EventType eventType) throws RemoteException
listener - the listener which is interested at events of eventtype.eventType - the events of interest.RemoteException - If a network connection failure occurs.WeakReferenceboolean addListener(EventListenerInterface listener, EventType eventType, boolean weak) throws RemoteException
listener - the listener which is interested at events of eventtype.eventType - the events of interest.weak - whether or not the listener is added as weak reference.RemoteException - If a network connection failure occurs.WeakReferenceboolean addListener(EventListenerInterface listener, EventType eventType, short position) throws RemoteException
listener - the listener which is interested at events of eventtype.eventType - the events of interest.position - the position of the listener in the queue.RemoteException - If a network connection failure occurs.WeakReferenceboolean addListener(EventListenerInterface listener, EventType eventType, short position, boolean weak) throws RemoteException
listener - which is interested at certain events,eventType - the events of interest.position - the position of the listener in the queueweak - whether the reference should be weak or strong.RemoteException - If a network connection failure occurs.EventType[] getEventTypes() throws RemoteException
RemoteException - If a network connection failure occurs.boolean removeListener(EventListenerInterface listener, EventType eventType) throws RemoteException
listener - which is no longer interested.eventType - the event which is of no interest any more.RemoteException - If a network connection failure occurs.Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.