Package adams.flow.execution
Class CurrentlyExecuted
- java.lang.Object
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<FlowExecutionListener>,SizeOfHandler,FlowExecutionListener,GraphicalFlowExecutionListener,TimedFlowExecutionListener,Serializable,Comparable
public class CurrentlyExecuted extends AbstractTimedFlowExecutionListenerWithTable
Shows what actors are currently being executed.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-update-interval <int> (property: updateInterval) The update interval after which the GUI gets refreshed. default: 1 minimum: 1
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>m_Countskeeps track of the actors that are being executed (actor name - start time).protected DateFormatm_DateFormatthe date formatter for the timestamps.-
Fields inherited from class adams.flow.execution.AbstractTimedFlowExecutionListenerWithTable
m_Counter, m_UpdateInterval
-
Fields inherited from class adams.flow.execution.AbstractFlowExecutionListenerWithTable
m_FileChooser, m_PanelSearch, m_Table
-
Fields inherited from class adams.flow.execution.AbstractGraphicalFlowExecutionListener
m_ListenerPanel
-
Fields inherited from class adams.flow.execution.AbstractFlowExecutionListener
m_Owner
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description CurrentlyExecuted()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Cleans up data structures, frees up memory.protected TableModelcreateTableModel()Creates a new table model with the current data.voidfinishListening()Gets called when the flow execution ends.StringgetListenerTitle()The title of this listener.StringglobalInfo()Returns a string describing the object.protected voidinitialize()Initializes the members.voidpostExecute(Actor actor)Gets called after the actor was executed.voidpreExecute(Actor actor)Gets called before the actor gets executed.voidstartListening()Gets called when the flow execution starts.StringupdateIntervalTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.execution.AbstractTimedFlowExecutionListenerWithTable
defineOptions, getDefaultUpdateInterval, getUpdateInterval, incCounter, setUpdateInterval
-
Methods inherited from class adams.flow.execution.AbstractFlowExecutionListenerWithTable
getFileChooser, getSheet, newListenerPanel, updateGUI
-
Methods inherited from class adams.flow.execution.AbstractGraphicalFlowExecutionListener
getDefaultFrameSize, getDisposeOnFinish, newListenerPanelIfNecessary
-
Methods inherited from class adams.flow.execution.AbstractFlowExecutionListener
compareTo, equals, getListeners, getOwner, postInput, postOutput, preInput, preOutput, setOwner, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.execution.FlowExecutionListener
getOwner, postInput, postOutput, preInput, preOutput, setOwner
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Counts
protected Map<String,String> m_Counts
keeps track of the actors that are being executed (actor name - start time).
-
m_DateFormat
protected transient DateFormat m_DateFormat
the date formatter for the timestamps.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractFlowExecutionListenerWithTable
-
updateIntervalTipText
public String updateIntervalTipText()
Returns the tip text for this property.- Specified by:
updateIntervalTipTextin interfaceTimedFlowExecutionListener- Specified by:
updateIntervalTipTextin classAbstractTimedFlowExecutionListenerWithTable- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getListenerTitle
public String getListenerTitle()
The title of this listener.- Returns:
- the title
-
createTableModel
protected TableModel createTableModel()
Creates a new table model with the current data.- Specified by:
createTableModelin classAbstractFlowExecutionListenerWithTable- Returns:
- the model with the current data
-
startListening
public void startListening()
Gets called when the flow execution starts.- Specified by:
startListeningin interfaceFlowExecutionListener- Overrides:
startListeningin classAbstractTimedFlowExecutionListenerWithTable
-
preExecute
public void preExecute(Actor actor)
Gets called before the actor gets executed.- Specified by:
preExecutein interfaceFlowExecutionListener- Overrides:
preExecutein classAbstractFlowExecutionListener- Parameters:
actor- the actor that gets executed
-
postExecute
public void postExecute(Actor actor)
Gets called after the actor was executed.- Specified by:
postExecutein interfaceFlowExecutionListener- Overrides:
postExecutein classAbstractFlowExecutionListener- Parameters:
actor- the actor that was executed
-
finishListening
public void finishListening()
Gets called when the flow execution ends.
Outputs the counts in debug mode.- Specified by:
finishListeningin interfaceFlowExecutionListener- Overrides:
finishListeningin classAbstractGraphicalFlowExecutionListener
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUpin interfaceCleanUpHandler- Overrides:
cleanUpin classAbstractTimedFlowExecutionListenerWithTable
-
-