public abstract class ExtendedScopeNodeModel extends NodeModel
NodeModel
that widens the scope of some of the methods. It's used internally
by certain system nodes like the subnode internal start/end nodes to have more control. For instance, they allow
the node model implementation to set the entire node inactive.Modifier | Constructor and Description |
---|---|
protected |
ExtendedScopeNodeModel(int nrInDataPorts,
int nrOutDataPorts)
Constructor inherited from parent.
|
protected |
ExtendedScopeNodeModel(PortType[] inPortTypes,
PortType[] outPortTypes)
Constructor inherited from parent.
|
Modifier and Type | Method and Description |
---|---|
protected PortObject[] |
executeModel(PortObject[] rawData,
ExecutionEnvironment exEnv,
ExecutionContext exec)
Widens scope to
protected . |
addWarningListener, clearLoopContext, computeFinalOutputSpecs, configure, configure, configureModel, continueLoop, createInitialStreamableOperatorInternals, createMergeOperator, createStreamableOperator, execute, execute, finishStreamableExecution, getAvailableFlowVariables, getAvailableFlowVariables, getAvailableInputFlowVariables, getCredentialsProvider, getFlowObjectStack, getInHiLiteHandler, getInitialScopeContext, getInPortType, getInputPortRoles, getInteractiveNodeView, getLogger, getLoopContext, getLoopEndNode, getLoopStartNode, getNrInPorts, getNrOutPorts, getOutgoingFlowObjectStack, getOutHiLiteHandler, getOutPortType, getOutputPortRoles, getPauseLoopExecution, getSimulatedHiliteHandlerPortIndex, getTrueHiliteHandlerPortIndex, getWarningMessage, hasContent, iterate, loadInternals, loadSettingsFrom, loadValidatedSettingsFrom, notifyViews, notifyWarningListeners, onDispose, peekFlowScopeContext, peekFlowVariableDouble, peekFlowVariableInt, peekFlowVariableString, pushFlowVariable, pushFlowVariableDouble, pushFlowVariableInt, pushFlowVariableString, registerView, removeWarningListener, reset, resetAndConfigureLoopBody, resetModel, restoreWarningMessage, saveInternals, saveSettingsTo, setCredentialsProvider, setFlowObjectStack, setHasContent, setInHiLiteHandler, setLoopEndNode, setLoopStartNode, setNewInHiLiteHandler, setPauseLoopExecution, setWarningMessage, stateChanged, toBDTArray, unregisterAllViews, unregisterView, validateSettings
protected ExtendedScopeNodeModel(int nrInDataPorts, int nrOutDataPorts)
nrInDataPorts
- ...nrOutDataPorts
- ...protected PortObject[] executeModel(PortObject[] rawData, ExecutionEnvironment exEnv, ExecutionContext exec) throws Exception
protected
.
Invokes the abstract #execute()
method of this model. In
addition, this method notifies all assigned views of the model about the
changes.executeModel
in class NodeModel
rawData
- An array of PortObject
objects holding the data
from the inputs (includes flow variable port).exEnv
- The execution environment used for execution of this model.exec
- The execution monitor which is passed to the execute method
of this model.DataTable
elements, as many as the node has
outputs.Exception
- any exception or error that is fired in the derived
model will be just forwarded. It may throw an
CanceledExecutionException if the user pressed cancel during
execution. Even if the derived model doesn't check, the
result will be discarded and the exception thrown.IllegalStateException
- If the number of PortObject
objects returned by the derived NodeModel
does not match the number of outputs. Or if any of them is
null.NodeModel.execute(PortObject[],ExecutionContext)
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.