|
|
Re: Finite State Machine - The sequel [message #1871013 is a reply to message #1870998] |
Thu, 12 September 2024 18:03 |
Peter Boudewijns Messages: 2 Registered: September 2024 |
Junior Member |
|
|
Hello Pauline,
Thanks for the explanation. I've tried to simulate the statemachine in your example, but with no luck.
For starters I'm not familiar enough with UML to really understand the entire construcion with a system and the lamp class. But as I already found out its a Class for which the statemachine should be its classifier behaviour.
I read the fUML paragraph that describes the exclusion of a timeEvent (or the entire timing as a matter of fact), so I understand the construction of a trigger like 'after 5' or 'at 5' won't work. Since my job and hobby mainly concern embedded systems I would like to simulate the statemachine with an animated diagram reacting to simulated triggers. But now I'm still wondering, even after seeing your example how I can throw the events causing the triggers to occur.
And even more, when the statemachine would have to respond to a simple switch (manually actuated in the real world), how should I do this in Papyrus.
The programs like Matlab Stateflow/Simulink or Itemis Create allow for simple manual triggers by clicking a tickbox for instance.
So, perhaps for starters : How can I make the statemachine under simulation halt in the Off state, and let the trigger to On occur at my command?
I also added 2 attachments, because 'out of the box' your example yields several errors when trying to validate/simulate.
Looking forward to your response :-)
Peter
[Updated on: Thu, 12 September 2024 18:15] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds