170 likes | 297 Views
The story of two friends and sequence diagrams :D. Patrick: Whats wrong with you spongebob !!!!!!!!!!!!!!!. Spongebob :
E N D
Patrick: Whats wrong with you spongebob!!!!!!!!!!!!!!!
Spongebob: Patrick I don’t know whats wrong with me. I just cant get a grasp of whatever was taught to me in the class.I don’t wanna give the papers.Please help me or ill be doomed ! :’(
Patrick: What!!!. Is it one of your software engineering issues again????? . I do have a feeling that I can help u.
Spongebob: No you cant!!!! I don’t get a thing about whatever These sequence diagrams are :’(
Patrick: Listen buddy!. I can definitely tell u about sequence diagrams. U see! They are nothing but helpers!!!!!!!!!!
Spongebob: Helpers??????????
Patrick: Yes!! Helpers. Most of the times, when you code , u need to visualize the objects, And how they interact!!. U also need to get a rough idea About the time lapse of different function calls between objects!. U must have experienced this in your lab Nevertheless, the sequence diagrams are all about those interactions.
Spongebob: I’m not sure I apprehended what u said.
Patrick: Let me elaborate!. Sequence diagrams represent dynamic aspects of your system,mainly the sequence of your function calls.Generally ,there is one sequence diagram for one use case. An organization's technical staff can find sequence diagrams useful in documenting how a future system should behave. In order to start making your own, u need to learn certain rules! 1-the dotted line represents lifeline. 2-horizontal solid lines indicate function calls. 3-horizontal dotted line is the return value 4-ul see that each successive function call comes below the function call so that explains the idea of Time ordering :D Now lets make our own :D
Spongebob: Sounds interesting lets do it.
Patrick: So first give me an idea about your use case that you want to implement. That will become the functionality of your diagram
Sponge bob: Well, I’m hungry!!! So, I guess, nothing Will be better than ordering burgers right now :D
Well u are totally right . so here you go Your use case.
Patrick: So look closely U will learn everything Firstly, we need to decide the objects or classes of burger delivery which will be the waiter, the burger and the burger makers :D So here is how they will interact
Spongebob: That was so interesting and easy