Sequence diagrams Practice 7. Task 1 The “Author” sends his paper to the “Editor” by the...

download Sequence diagrams Practice 7. Task 1  The “Author” sends his paper to the “Editor” by the message “manuscript” and waits the confirmation.

If you can't read please download the document

Transcript of Sequence diagrams Practice 7. Task 1 The “Author” sends his paper to the “Editor” by the...

Sequence diagrams Practice 7 Task 1 The Author sends his paper to the Editor by the message manuscript and waits the confirmation of receipt. The editor sends the paper to the reviewer (Peer) by the message evaluate. The reviewer sends the editor a message with an assessment of the paper review. The editor sends the author a message with results resolution and sends the reviewer his gratitude thanks. Build the structural model of the interaction in the form of collaboration ReviewManuscript, specify the multiplicity of the role of reviewer so as the paper is send for review to one of five reviewers. Specify, using the fragments, that the paper is sent for review to any three of five reviewers. Using fragments, show, that the order of sending the results of the paper reviewing to the author and sending the gratitude to the reviewers doesnt matter. Task 2 The passenger (Person) comes into the elevator and presses the button (pressButton) with the number of the floor (floor). The lift closes doors and starts moving with the synchronous calling the operation startMoving. After that it shows the passenger the numbers of the moved floors by the message floorReached. Then lift calls the operation stopMoving and stops. The passengers presses the button (pressDoors) for making the doors opened. How can you clarify the mode, if it is known that a lift works from the first to the fifth floors? Specify that before pressing the button with a number of floor the person must close the doors (pressDoors). Using fragments, show that a passenger cant press buttons for opening and closing of the door while moving. Specify that a lift moves one floor for 3 sec. Task 3 The sequence diagram SelectFloor contains the lifeline of the cage, represented by the instance of the active class Cabin, the lifeline floor of the instance of the class FloorButton with selector 1 and the lifeline of the class Algorithm. The interaction starts from the synchronous calling of the operation for button isPressed at the lifeline floor from the cage. This operation returns the boolean value true if the button is pressed. Then the instance of the class Cabin calls the operation selectFloor at the algorithm. Using the operator of a cycle (loop) show that there is a check of all buttons if they are pressed. The variable of the cycle with a number of the floor must be declared as an attribute of the interaction. Add calls of the operations of specifying numbers of floors which buttons are pressed. Give the example of the allowed and forbidden paths at this interaction.