How to Model and Simulate States and Activities Together as Part of a Single System Model in SysML
HTML-код
- Опубликовано: 26 авг 2024
- In this step by step tutorial we show all three methods how to model and simulate states and activities (functions) of the system together in context of single executable system model.
Activities are behaviors and they can be executed by the state.
But what if we have more then one activity? Which shall be executed while in the state? We have at last three ways to solve this problem:
1. Multiple inner states associated with activities as behaviors.
2. One activity executed by the state and this activity is calling other activities.
3. Internal transitions triggered by signals and executing activities as an effects
Here is the model: www.dropbox.co...
I remember once I learned about internal transitions, I realized the real power of state machines. Great explanation!
Hello Becca. Great feedback. Experts understand real value of simple but important things!
Really nice video. LOTs of informational packed into this video! I’m just learning SysML and these methods introduced here will be useful.
Thank you Steve!
Hi, I can say I follow the same steps but for the last method.i could not see the inside run in scan activity diagram. Could it be from software version (sp 19.2) or maybe i have done a wrong step? Thanks in advance!
Hello Tuna. Hard to say. Maybe you can share sample at MBSEExecution@gmail.com
Thanks for the video. I am looking how to integrate a decision table into an activity diagram. I have three parameters that could take boolean values, and need to output specific values for each combination of parameters. How can this be modeled and simulated? Ideal is to take the input parameters from parameters values of defined blocks and output to an other parameter of targeted block.
What about opaque action with input and output pins performing some logic?
Thanks for the very helpful video. I run into a problem when activity diagram has a decision node, in that case the diagram opens in a new window. Is there any work around?
Hello, thank you! Yes you can have guards after decision node which are resolved automatically: based on value property pf context block, randomness, or just True / False.
I have multiple states that all perform the same activity while in each respective state. From a reuse perspective, I am concerned by having multiple activities with the same name in my model. Is there a way to assign activity to a state without creating another duplicate activity calling the original one? I understand state transitions and assigning activity to a signal, but that still creates another activity and diagram essentially acting as a pass through to the main activity.
Hello Jake, thank you for your feedback. As you know and indicate by draging activity on state it gets assigned to it. Same activity can be assigned to multiple states. Standard requires that activity would be in state, so on drag and drop of activity another activity is created which calls oroginal one and added into state. So original activity can be at any location and be compleatly reusable.
This is really great example how to change states based on activities.thank you! Do you have similar examples of thermal/fluidics systems?(ex: valve states on/off according to pressure or temperature etc. )
Thank you for the feedback Tuna! I think you can use change event on transition in state - e.g. when (pressure < 20) . E.g. ruclips.net/video/MlY_8uHIxx0/видео.html Also you can do change event with activities E.g. ruclips.net/video/8eFfBVilHm4/видео.html
@@MBSEExecution thank you😊
You are very welcome! :)
too bad the tool is Eclipse based... I don't know why people keep using it... even with modern computers, eclipse remains slow, sluggish and inelegant UI/UX...
Hello Gunmi, it is not Eclipse based. Never was.
@@MBSEExecution hmmm interesting... I could swear I heard it mentioned in the video
Thank you for asking. It interchange files with Eclipse in some very specific scenarios. But does not depend on it in any way.