Behavior aspect problem
Hi,
I am seeing some unexpected behavior in Behavior aspect which is explained as follow:
Root Node concept: Constants
Constants children concept: Constant
Now in constant_behavior Constructor
info "" + this —-> constant
info "" + this.parent —-> Null
this.parent gives null where it should print Constants
I am seeing some unexpected behavior in Behavior aspect which is explained as follow:
Root Node concept: Constants
Constants children concept: Constant
Now in constant_behavior Constructor
info "" + this —-> constant
info "" + this.parent —-> Null
this.parent gives null where it should print Constants
Please sign in to leave a comment.
Vaclav
So is there any way to access the parent node in the Constructor because i want to set a value based on its parent in constructor.
You may, however, use NodeFactories (in the Actions aspect), to customise already constructed nodes.
Vaclav
It works well.
Lokesh
If adding node by auto-completion menu then NodeFactories are useful to customise already constructed nodes
But if adding same node by using Intentions then NodeFactories not work and does not customise the intialised node.
Lokesh
If you use the "initialised" constructs, then the factory will get called.
E.g. new initialised node<>, add new initialised node<> or replace with new initialized node<>
you will need the j.m.lang.actions language to be used in your intentions
Vaclav