new PortObject

Dear all.

I like to define my own type for an input/output port. As I understood from the discussions on the forum I need to implement the PortObject interface.

Unfortunately, from the discussions it is not clear to me how this implementation exactly needs to be done and whether any other interfaces need to be implemented. Also, the link with the NodeModel is not clear.

Could you please provide any suggestions to me or pointers to relevant documentation?

Thanks in advance!

 

Best regards,

 

Martina

Hi Martina, I would suggest looking into one of the other port implementations in KNIME, for example http://tech.knime.org/docs/api/org/knime/core/node/port/image/ImagePortObject.html derived from PortObject and implementing an accessor method for PortObjectSpec. The PortType is also important to define since this is the object to set in the NodeModel-constructor to have indiviuell port(s) at your node.