Book a Demo

Author Topic: EA fails to select Sub-States in Composit-States  (Read 2052 times)

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
EA fails to select Sub-States in Composit-States
« on: May 18, 2011, 01:44:59 am »
Bug Feature or Nasty Trick with Implications? Please help me.

I am exercising the EASamples for code generation from state diagrams (activity, sequence and interactions), as found in the Systems Enginering Model, starting with Package C# downward.

I detected the following on the example files provided.

Some very very clever guy has just droped ReadSerialPorts and ReadUSBPorts which actually belong to the Sub-States of the IO State,
onto the sub-states shown when you do "Show Composit Diagram" after you placed the IOState to the main Machine State Diagram SearchExternal Media.

I was unaware about that. I could just not select the substate in the StateMachin diagram "SearchExternaMedia". But I was perfectly able to select this substates in the example files.

When I clicket IO State the composit diagram opens and shows me what I have drawn as well in my files as in the example files. So no difference. And it tdid as well so when I did it with the example files.

Then I found out, that after dropping the composit IO stae to the diagram, and using the Advanced Command Show Composit Diagram, all sub-states are shown. Buit opening the state transition table from this main diagram does not show you any of the sub-states of the IOState. ;

I've found that non-of the substates are present when you jumpt to the state transition table from diagram SearchExternalMedia.

But when you doubble cklick IOState and go to the sub-state diagram, then select a substeate there, and do find in state transition table, a different smaller state transition table is shown and all substates are there.

So why does EA show the substates in a larger state transition table when starting in the example files from SearchExternalMedia.

Why does EA not show the same substates in a larger state tzransition table when starting from my own files?

I was unable to select in my SearchExternalMedia Statemachin Diagram one of the substates of the IO State. But in the exmaple files I can do so.

The trick he did was:

He has placed the not-opening substates very exactly over the non-selectabel sub-states in the diagram again.

I can only say after half a day of work: A very nasty trick ...

And I do not kown yet if that trick is sufficent to allow later for the EASL Code generator to generate the proper code.

In my mind it is a bug that we can not select sub-states of composit diagrams when the diagram is drawn by dropping the state and do Show Composit Diagram.

Why can I not select sub states and why are this sub-states not shown in the state transition tabvle when the diagram is brougt to surface by droping a compoit state and then using "Show Composit Diagram on its placement?"

Josef