Page 1 of 1

Use of swim lanes in activity diagram

PostPosted: Wed Sep 01, 2021 11:48 pm
by amit.kalhapure@gmail.com
Hello,
I have made a small model of Air compressor. Please see the attachment.
The issue here is, the signal is not getting transmitted from swimlanes of control room to swimlanes of pumping station.
Please find below the snapshots of the model..
pic1.png

pic2.png

Kindly help.
Thanks in Advance,
Amit.

Re: Use of swim lanes in activity diagram

PostPosted: Thu Sep 02, 2021 9:03 am
by saulius_p
Hello Amit,

Good to talk to you.

Do not use swimlanes to change context of the behavior on receiving side. Use classifier behavior of the block in which you are sending signal, in you case it is pump. See sample at https://youtu.be/Il3V3KOFvTM.

Let us know if more help would be needed.

Sincerely,
Saulius

Re: Use of swim lanes in activity diagram

PostPosted: Thu Sep 02, 2021 9:37 am
by amit.kalhapure@gmail.com
Thanks a lot Saulius,
In my opinion if I use classifier behavior everytime, then I have to deal with so many activity diagrams.
Instead if I use swimlanes then I can bring all the activities in a single activity diagram, and allocate activities to their respective blocks using swimlanes.
Could you suggest any other solution for this?
What if the system has 100+ parts/components ?

thanks again,
Amit.

Re: Use of swim lanes in activity diagram

PostPosted: Thu Sep 02, 2021 10:26 am
by saulius_p
Thank you for your suggestion and notice. We will consider this for future improvements.

The problem in current case is that we have two places were behavior of the block can be defined. One is owned by system and through swimlanes we can change context to specific block second is owned as classifier behavior by block itself. Only classifier behavior is treated as main behavior of the system.

Kind regards,
Saulius

Re: Use of swim lanes in activity diagram

PostPosted: Wed Sep 08, 2021 3:24 am
by amit.kalhapure@gmail.com
Dear Saulius,

I have one more question.
In the IBD as shown in pic 2, how to control input and output ports of pump.
I am doubtful whether signals can be used for controlling the flow through interface blocks?
Basically I want to restrict the operation of pump wherein input port in functioning whereas output port is not functioning.
Thanks in Advance.
Amit.

Re: Use of swim lanes in activity diagram

PostPosted: Fri Sep 10, 2021 1:46 pm
by saulius_p
Hello Amit,

Good to talk to you. Could you give more details what logic is required?

Sincerely,
Saulius

Re: Use of swim lanes in activity diagram

PostPosted: Sun Sep 12, 2021 9:28 pm
by amit.kalhapure@gmail.com
Thanks Saulius,
Assume the pump gets air from the environment at 15deg C and 1 Bar irrespective of pump is on or off. This is at the inlet port.
When pump gets on signal, it should start functioning and delivering the air at 40 deg C and 2 bar at both the outlet ports (i.e tank 1 and tank2).
How to model this? This is just an example for my understanding. You can suggest something better if you want to.
My objective is towards understanding and using the ports + interface blocks + signals in one block.
Thanks in advance.

Amit.

Re: Use of swim lanes in activity diagram

PostPosted: Mon Sep 13, 2021 6:05 pm
by saulius_p
Hello Amit,

Good to talk to you.

Thank you for the case. Indeed now it looks like clear.

you need to ignore signals by pump when you do not need them and handle when you need them. This is pump behavior acting in different way in different states.

Please find sample attached.

Run simulation config as shown in screenshot

Capture.PNG


Let me know if you need more help or have more questions.

Kind regards,
Saulius

Re: Use of swim lanes in activity diagram

PostPosted: Wed Sep 15, 2021 3:45 am
by amit.kalhapure@gmail.com
Thanks Saulius for the reply.
The model is working fine, but the issue here is there is no inlet and outlet port.
I have attached another model of a Refrigeration system. Here I am interested in capturing the state of refrigerant at every port it flows through.
I want flow properties i.e Temp, Press at each port as output.
What is the best way to do it?
Thanks you.

Amit.

pic1.png

pic2.png

Re: Use of swim lanes in activity diagram

PostPosted: Thu Sep 23, 2021 3:08 pm
by saulius_p
Hello Amit,

Good to talk to you!

What about this way using delegate connector between ports or flow properties.

https://youtu.be/_zWHBw2SPWk

Sincerely,
Saulius