User Tools

Site Tools


dev-guide:add-object-as-node-production

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev-guide:add-object-as-node-production [2025/01/08 14:49] – [toNode method] gaetandev-guide:add-object-as-node-production [2025/01/08 16:33] (current) – [ProducingNode interface] gaetan
Line 28: Line 28:
  
 The toNode() method works well but requires a class. When working on bigger projects you might want to create interfaces that includes the knowledge that all implementation classes should have a "toNode()" method. Such classes or interface should implements/ extends [[https://javadoc.grogra.de/imp/de/grogra/imp/objects/ProducingNode.html|ProducingNode]]. The toNode() method works well but requires a class. When working on bigger projects you might want to create interfaces that includes the knowledge that all implementation classes should have a "toNode()" method. Such classes or interface should implements/ extends [[https://javadoc.grogra.de/imp/de/grogra/imp/objects/ProducingNode.html|ProducingNode]].
-Then, instead of using "toNode()", which is taken, the classes needs to implements <code java>public Node produceNode()</code>+Then, instead of using "toNode()", which is taken, the classes needs to implements 
 + 
 +<code java> 
 +public Node produceNode() { //return a Node } 
 +</code>
  
dev-guide/add-object-as-node-production.1736344160.txt.gz · Last modified: 2025/01/08 14:49 by gaetan