Package adams.flow.core
Interface TokenEventHandler
-
- All Superinterfaces:
Actor
,AdditionalInformationHandler
,CleanUpHandler
,Comparable
,Destroyable
,ErrorHandler
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,Serializable
,ShallowCopySupporter<Actor>
,Stoppable
,StoppableWithFeedback
,VariableChangeListener
,VariablesInspectionHandler
- All Known Implementing Classes:
ProgrammaticSink
public interface TokenEventHandler extends Actor
Interface for actors that supportTokenEvent
s and handleTokenListener
s.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from interface adams.flow.core.Actor
FILE_EXTENSION, FILE_EXTENSION_GZ
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTokenListener(TokenListener l)
Adds the specified listener.void
notifyTokenListeners(TokenEvent e)
Notifies all theTokenListener
s with the event.void
removeTokenListener(TokenListener l)
Removes the specified listener.TokenListener[]
tokenListeners()
Returns the current listeners.-
Methods inherited from interface adams.flow.core.Actor
cleanUp, compareTo, destroy, equals, execute, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowExecutionListeningSupporter, getFullName, getName, getNextSibling, getParent, getParentComponent, getPreviousSibling, getQuickInfo, getRoot, getScopeHandler, getSilent, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setName, setParent, setSilent, setSkip, setStopFlowOnError, setUp, setVariables, shallowCopy, shallowCopy, sizeOf, stopExecution, stopExecution, toCommandLine, variableChanged, wrapUp
-
Methods inherited from interface adams.core.AdditionalInformationHandler
getAdditionalInformation
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager
-
Methods inherited from interface adams.core.VariablesInspectionHandler
canInspectOptions
-
-
-
-
Method Detail
-
addTokenListener
void addTokenListener(TokenListener l)
Adds the specified listener.- Parameters:
l
- the listener to add
-
removeTokenListener
void removeTokenListener(TokenListener l)
Removes the specified listener.- Parameters:
l
- the listener to remove
-
tokenListeners
TokenListener[] tokenListeners()
Returns the current listeners.- Parameters:
l
- the listeners
-
notifyTokenListeners
void notifyTokenListeners(TokenEvent e)
Notifies all theTokenListener
s with the event.- Parameters:
e
- the event to send
-
-