As a URCap Developer, I would like the the ability to implement some kind of destruction instructions upon program node deletion so that my URCap will behave differently based on the presence of a program node in the current robot program.
I believe this would add some beneficial functionality. For example, if a Program Node is present, more initialization script would be added via generateScript() in the Installation Node Contribution, but if a Program Node is never added, this init script will not be included.
Currently, a Program Node Service object has a
createNode() method. Adding a
destroyNode() method to handle node deletion would be perfect. I realize that since Java doesn’t require destructors, this may be much easier said than done.