A simple control panel holding the control elements necessary to control the InterruptibleNodeModel, that is a "Run"-, "Break"- and "Finish"-Button and a slider to adjust the delay.
This class provides a generic implementation of a node that can be stopped and resumed during execution.
This class provides a generic view for the InterruptibleNodeModel and all deriving classes, which basically consists in a control panel, with some control elements such as a "Run"-, a "Break"- and a "Finish"-Button and a slider to adjust the delay.
A helper class for the use of the GridBagLayout.
InterruptibleNodeModelconsists of three abstract methods:
init m(DataTable)method is called. The model starts with
paused = true. When this is set to
paused = falsethe
executeOneIterationmethod is called until the model is set to the paused state again. In this way the model could be run and paused arbitrary often. When the model is set to
getOutput()method is called and the result is provided at the out-port and the model is executed and must be reset for a new run.
while-loop. Then the content of this loop has to be put into
InterruptibleNodeViewis also provided, with some default control elements always on top. These control elements are contained in the
InterruptControlPanel. They are a play, break and finish and a next step button and a slider to adjust the delay how often the
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.