The reference of the frame depends on its element. In the case of StateMachine or Statechart Diagrams, it is denoted as "stm <name>", and for Activity or Activity Diagrams, it is denoted as "act <name>"
We will consider the extended frame notation in SysML. However, since same UML frame elements are used, a solution is required for discrepancies between UML and SysML. (Allowing users to input directly can also be considered.)
By the way, in what situation is the StateMachine's frame denoted as "class <name>"? Could you share a simple example .mdj file?
Thank you,