Sequence Diagram as Interaction Scenario
Vložit
- čas přidán 22. 07. 2019
- Video demonstrates usage of sequence diagram to model and execute interaction scenario. Different messages are send through different connectors which is specified on message connector property. Messages are passing signals with parameters and arguments specified on message. Signal parameters are updated during simulation before and after signal is sent.
Video download: bit.ly/3b6x9pb - Věda a technologie
Actually the only good SysML coach, If you are looking for tutorial stop right now - this is the guy you are looking for
Thanks so much for all of your videos! extremely helpful stuff!!
Thank you Will!
Hello, thank you for the tutorial. Sorry, my English still poor. I have some trouble during simulation, I have added a user as a block to the system context. User send a request to subsystem B1 and B1 send another signal to subsystem B2. But the signal from the user to the subsystems B1 is not send (user block is not a part of my system).
Could you help me please?
Thank you.
Hello Hector. Please send sample with indication what you execute and what is not working to MBSEexecution@gmail.com
I don't know how much I can thank you.
Super Saulius :)
Thank you Aditya!
Can you explain more why the B1's State Machine couldn't use the activity "Get Message" Accept signal? Is there an option where you can use an accept signal to accept the trigger's signal? If so , how? Thanks for the great video!!
Hello Dez, thank you for great question. This is because accept event action was not active as it was in not active state. Ones transition was triggered by signal so accept event action which is in state will not be triggered by same signal anymore unless it will come again.
Great tutorial. I'm building an example similar to this but I get a Null expression body error where I assign x to the message (shown at 46.40). The only difference is the parameter is of an Enum type rather than a string. The signal parameters are correctly received from what I can see from the simulation.
Hello. Maybe worth to write enumeration value to strong before sending? Just workaround in case so unknown issue..
A little late to this but: why is it that the activity "get message" assigned as an entry behavior to the "Updating message" state knows to take the content of the signal S2 as the input parameter? Is there a way to formalize this? I notice when I added a second parameter to "get message", it did not work anymore
I'm trying to trigger one state machine after the trigger of a signal in another state machine. Can this be done using a parametric model (like your state machine example) or does it have to be done using an activity diagram?
Hello Priscilla. State machine can be triggered by an event (signal, property change, call operation, time) which it can see - so in context from which it was executed.
@ time ~ 34:04 you name the activity parameter node "p1".. My question is does it need to have the name p1 or could it be named anything?...Please elaborate
Yes it is needed if you have more than one parameter. Lets say you have two or more signal parameters with same type, so they are identified by name at the moment when they are captured.
Thank You
Seeking Assistance with DFIG Wind Turbine
Dear Professor Saulius Pavalkis,
This is Farshid Abdehgah a student of Persian Country
I hope you are doing well. I am currently working on my student project and could use guidance to complete it successfully. I understand you may be busy, but any help would be greatly appreciated.
Please let me know how I can reach you. Thank you for your time and consideration!
Sincerely,
Farshid Abdehgah
Hello, you can contact at MBSEexecution@gmail.com
Hello, Thank you for this tutorial on sending signals using sequence diagram. I was able to follow along up minute 40:00, but had trouble as soon as I added a loop. The console says that "x" is not defined but as far as I can tell, it is defined with the opaque expression x>0 for the loop. I didn't see anywhere else to define X or the type of x as say, and integer?
00:00:00,000 : **** Block System is initialized. ****
00:00:00,000 : **** Block System behavior is started! ****
00:00:01,253 ERROR: Cannot evaluate Opaque Expression: ReferenceError: "x" is not defined in at line number 1 expression body: x>0 00:00:01,263 : **** Interaction System execution is terminated. ****
00:00:01,283 : **** Block System execution is terminated. ****
Hello D J. Block System shall have value property "x" as this is context of sequence diagram. Variables used in fragments in sequence diagram context is block from which this sequence diagram is called - owner in this case as sequence diagram is classifier behavior of this block. Also be sure that you set the type for value as Opaque Expression ~ 40:54
Thank you.
@@MBSEExecution Thanks! I had the same issue as well. I didn't see you add the "x" as an integer in the video.
Thank you for sharing Dez!
Would you be willing to provide me with the finished example so I can mess around with it myself?
Hello Will! Thank you for your request! Here it is - bit.ly/3b6x9pb
@@MBSEExecution If you could make a video to explain how to use an interaction use on a sequence diagram that would be extremely helpful. Struggling to get it to work. I keep getting the error: "element from a different interaction cannot appear in the diagram of this interaction" when connecting arrows to the diagram frame.
Hello Will. Rhank you for suggestion. Definately. Maybe this is issue with Interaction not covering lifelines. There should be action from interaction right click menu to control which lifelines are covered.