Package org.knime.core.webui.node.impl
Class WebUINodeModel<S extends DefaultNodeSettings>
java.lang.Object
org.knime.core.node.NodeModel
org.knime.core.webui.node.impl.WebUINodeModel<S>
- Type Parameters:
S- the type of model settings
- All Implemented Interfaces:
org.knime.core.node.AbstractNodeView.ViewableModel
public abstract class WebUINodeModel<S extends DefaultNodeSettings>
extends org.knime.core.node.NodeModel
The
NodeModel for simple WebUI nodes, see WebUINodeFactory.- Author:
- Marc Bux, KNIME GmbH, Berlin, Germany
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebUINodeModel(WebUINodeConfiguration configuration, Class<S> modelSettingsClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.knime.core.data.DataTableSpec[]configure(org.knime.core.data.DataTableSpec[] inSpecs) protected org.knime.core.data.DataTableSpec[]protected final org.knime.core.node.port.PortObjectSpec[]configure(org.knime.core.node.port.PortObjectSpec[] inSpecs) protected org.knime.core.node.port.PortObjectSpec[]protected org.knime.core.node.BufferedDataTable[]execute(org.knime.core.node.BufferedDataTable[] inObjects, org.knime.core.node.ExecutionContext exec) protected org.knime.core.node.BufferedDataTable[]execute(org.knime.core.node.BufferedDataTable[] inData, org.knime.core.node.ExecutionContext exec, S modelSettings) protected org.knime.core.node.port.PortObject[]execute(org.knime.core.node.port.PortObject[] inObjects, org.knime.core.node.ExecutionContext exec) protected org.knime.core.node.port.PortObject[]execute(org.knime.core.node.port.PortObject[] inObjects, org.knime.core.node.ExecutionContext exec, S modelSettings) protected final voidloadInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) protected final voidloadValidatedSettingsFrom(org.knime.core.node.NodeSettingsRO settings) protected voidonLoadInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) Allows extending classes to implement custom behavior duringloadInternals(File, ExecutionMonitor)oprotected voidonReset()Allows extending classes to implement custom behavior duringreset().protected voidonSaveInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) Allows extending classes to implement custom behavior duringsaveInternals(File, ExecutionMonitor)oprotected final voidreset()protected final voidsaveInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) protected final voidsaveSettingsTo(org.knime.core.node.NodeSettingsWO settings) protected final voidvalidateSettings(org.knime.core.node.NodeSettingsRO settings) protected voidvalidateSettings(S settings) Allows extending classes to validate the settings before they are loaded into the NodeModel.Methods inherited from class org.knime.core.node.NodeModel
addWarningListener, computeFinalOutputSpecs, continueLoop, createInitialStreamableOperatorInternals, createMergeOperator, createMessageBuilder, createStreamableOperator, finishStreamableExecution, getAvailableFlowVariables, getAvailableFlowVariables, getAvailableFlowVariables, getAvailableInputFlowVariables, getAvailableInputFlowVariables, getAvailableInputFlowVariables, getCredentialsProvider, getInHiLiteHandler, getInPortType, getInputPortRoles, getInteractiveNodeView, getLogger, getLoopEndNode, getLoopStartNode, getNrInPorts, getNrOutPorts, getOutHiLiteHandler, getOutPortType, getOutputPortRoles, getScopeStartNode, getWarning, getWarningMessage, iterate, notifyViews, onDispose, peekFlowVariable, peekFlowVariableDouble, peekFlowVariableInt, peekFlowVariableString, pushFlowVariable, pushFlowVariableDouble, pushFlowVariableInt, pushFlowVariableString, removeWarningListener, resetAndConfigureLoopBody, saveDefaultViewSettingsTo, setInHiLiteHandler, setWarning, setWarningMessage, stateChanged, validateViewSettings
-
Constructor Details
-
WebUINodeModel
- Parameters:
configuration- theWebUINodeConfigurationfor this factorymodelSettingsClass- the type of the model settings for this node
-
-
Method Details
-
configure
protected final org.knime.core.node.port.PortObjectSpec[] configure(org.knime.core.node.port.PortObjectSpec[] inSpecs) throws org.knime.core.node.InvalidSettingsException - Overrides:
configurein classorg.knime.core.node.NodeModel- Throws:
org.knime.core.node.InvalidSettingsException
-
configure
protected final org.knime.core.data.DataTableSpec[] configure(org.knime.core.data.DataTableSpec[] inSpecs) throws org.knime.core.node.InvalidSettingsException - Overrides:
configurein classorg.knime.core.node.NodeModel- Throws:
org.knime.core.node.InvalidSettingsException
-
configure
protected org.knime.core.node.port.PortObjectSpec[] configure(org.knime.core.node.port.PortObjectSpec[] inSpecs, S modelSettings) throws org.knime.core.node.InvalidSettingsException - Parameters:
inSpecs- the inputPortObjectSpecsmodelSettings- the current model settings- Returns:
- the output
PortObjectSpecs - Throws:
org.knime.core.node.InvalidSettingsException- if the settings are inconsistent with the input specs- See Also:
-
NodeModel.configure(PortObjectSpec[])
-
configure
protected org.knime.core.data.DataTableSpec[] configure(org.knime.core.data.DataTableSpec[] inSpecs, S modelSettings) throws org.knime.core.node.InvalidSettingsException - Parameters:
inSpecs- the inputDataTableSpecsmodelSettings- the current model settings- Returns:
- the output
DataTableSpecs - Throws:
org.knime.core.node.InvalidSettingsException- if the settings are inconsistent with the input specs- See Also:
-
NodeModel.configure(DataTableSpec[])
-
execute
protected org.knime.core.node.port.PortObject[] execute(org.knime.core.node.port.PortObject[] inObjects, org.knime.core.node.ExecutionContext exec) throws Exception - Overrides:
executein classorg.knime.core.node.NodeModel- Throws:
Exception
-
execute
protected org.knime.core.node.BufferedDataTable[] execute(org.knime.core.node.BufferedDataTable[] inObjects, org.knime.core.node.ExecutionContext exec) throws Exception - Overrides:
executein classorg.knime.core.node.NodeModel- Throws:
Exception
-
execute
protected org.knime.core.node.port.PortObject[] execute(org.knime.core.node.port.PortObject[] inObjects, org.knime.core.node.ExecutionContext exec, S modelSettings) throws Exception - Parameters:
inObjects- the inputPortObjectsexec- the currentExecutionContextmodelSettings- the current model settings- Returns:
- the output
PortObjects - Throws:
Exception- if anything goes wrong during the execution- See Also:
-
NodeModel.execute(PortObject[], ExecutionContext)
-
execute
protected org.knime.core.node.BufferedDataTable[] execute(org.knime.core.node.BufferedDataTable[] inData, org.knime.core.node.ExecutionContext exec, S modelSettings) throws Exception - Parameters:
inData- the inputBufferedDataTablesexec- the currentExecutionContextmodelSettings- the current model settings- Returns:
- the output
BufferedDataTables - Throws:
Exception- if anything goes wrong during the execution- See Also:
-
NodeModel.execute(BufferedDataTable[], ExecutionContext)
-
loadInternals
protected final void loadInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) throws IOException, org.knime.core.node.CanceledExecutionException - Specified by:
loadInternalsin classorg.knime.core.node.NodeModel- Throws:
IOExceptionorg.knime.core.node.CanceledExecutionException
-
onLoadInternals
protected void onLoadInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) throws IOException, org.knime.core.node.CanceledExecutionException Allows extending classes to implement custom behavior duringloadInternals(File, ExecutionMonitor)o- Parameters:
nodeInternDir-exec-- Throws:
IOExceptionorg.knime.core.node.CanceledExecutionException
-
saveInternals
protected final void saveInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) throws IOException, org.knime.core.node.CanceledExecutionException - Specified by:
saveInternalsin classorg.knime.core.node.NodeModel- Throws:
IOExceptionorg.knime.core.node.CanceledExecutionException
-
onSaveInternals
protected void onSaveInternals(File nodeInternDir, org.knime.core.node.ExecutionMonitor exec) throws IOException, org.knime.core.node.CanceledExecutionException Allows extending classes to implement custom behavior duringsaveInternals(File, ExecutionMonitor)o- Parameters:
nodeInternDir-exec-- Throws:
IOExceptionorg.knime.core.node.CanceledExecutionException
-
saveSettingsTo
protected final void saveSettingsTo(org.knime.core.node.NodeSettingsWO settings) - Specified by:
saveSettingsToin classorg.knime.core.node.NodeModel
-
validateSettings
protected final void validateSettings(org.knime.core.node.NodeSettingsRO settings) throws org.knime.core.node.InvalidSettingsException - Specified by:
validateSettingsin classorg.knime.core.node.NodeModel- Throws:
org.knime.core.node.InvalidSettingsException
-
validateSettings
Allows extending classes to validate the settings before they are loaded into the NodeModel.- Parameters:
settings- to validate- Throws:
org.knime.core.node.InvalidSettingsException- if the settings are invalid
-
loadValidatedSettingsFrom
protected final void loadValidatedSettingsFrom(org.knime.core.node.NodeSettingsRO settings) throws org.knime.core.node.InvalidSettingsException - Specified by:
loadValidatedSettingsFromin classorg.knime.core.node.NodeModel- Throws:
org.knime.core.node.InvalidSettingsException
-
reset
protected final void reset()- Specified by:
resetin classorg.knime.core.node.NodeModel
-
onReset
protected void onReset()Allows extending classes to implement custom behavior duringreset().
-