I have 2 statecharts, one being the parent and the other being the child. When the parent statechart is created, it also creates a child statechart using
import: "Child.ysc"
var child: Child
The parent statechart can easily raise an event in the child statechart, for example:
raise child.goToD
But the problem is that there's no way to reference the same parent in the child statechart to be able to raise an event in the parent. Is there a way to send events to parent statecharts? Or can the child send a reference of itself as an attribute to the parent (for example using this in python) which can then save it in a variable to be accessed for sending those events?
PS: both statecharts have the default domain and not the C/C++ domain