public interface ReaderBase
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasReachedEndOfSuperstep() |
boolean |
isInputClosed() |
void |
publishEvent(AbstractTaskEvent event)
Publishes an event.
|
void |
setIterative(int numEventsUntilEndOfSuperstep) |
void |
startNextSuperstep() |
void |
subscribeToEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType)
Subscribes the listener object to receive events of the given type.
|
void |
unsubscribeFromEvent(EventListener eventListener,
Class<? extends AbstractTaskEvent> eventType)
Removes the subscription for events of the given type for the listener object.
|
boolean isInputClosed()
void subscribeToEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
eventListener - the listener object to registereventType - the type of event to register the listener forvoid unsubscribeFromEvent(EventListener eventListener, Class<? extends AbstractTaskEvent> eventType)
eventListener - the listener object to cancel the subscription foreventType - the type of the event to cancel the subscription forvoid publishEvent(AbstractTaskEvent event) throws IOException, InterruptedException
event - the event to be publishedIOException - thrown if an error occurs while transmitting the eventInterruptedException - thrown if the thread is interrupted while waiting for the event to be publishedvoid setIterative(int numEventsUntilEndOfSuperstep)
void startNextSuperstep()
boolean hasReachedEndOfSuperstep()
Copyright © 2014 The Apache Software Foundation. All rights reserved.