If you want to extend the functionality of KNIME you can implement your own Nodes and contribute them to the KNIME Node Repository. A node consists of four basic classes:
- The NodeModel: contains the main algorithm and administrates the data flow.
- The NodeDialog (optional): provides the means to configure the algorithm of the NodeModel.
- The NodeView (optional): displays information about the result of the NodeModel's algorithm.
- The NodeFactory: Bundles all the classes together.
NumericBinnerNodeModel
, NumericBinnerNodeDialog
, etc.). In the package name field specify the package name of the node. In the node vendor field enter your name. Your name appears as the author name in the java doc. In the node description text field provide a short description of your node. Finally specify the node type: this assigns a specific background color to the node in the KNIME workflow. After clicking the finish button the new-node-extension-wizard creates the project and all necessary directories and files required for a proper KNIME plugin as depicted in Illustration 2:
If the project contains errors concerning the Java build path try the following: Select from the menu Project->Clean... Select "Clean projects selected below" and select the newly created project or "Clean all projects". This fixes the errors in most of the cases. The created classes contain only exemplary method stubs that can be completely deleted. You must add the desired functionality. The following sections explain how to do this step-by-step.