Activity diagrams Practice 7. Task 1  The first action in the activity is the adding the item to the order. If the order if formed (“ready”), then it.

Slides:



Advertisements
Similar presentations
Use Case Diagrams Damian Gordon.
Advertisements

Use Case & Use Case Diagram
User Training. Step 1 Press Ctrl-I or choose File > Login, this will open the Login window. Figure 1-1 shows the Login window. Figure 1-1 Login Window.
ELearning Solutions eLearning Solutions The business of education is learning.
Execute Stored Procedure having Output Parameter and returning Result Set in Adeptia Server.
Use Case Model. C-S 5462 Use case model describes what the user expects the system to do –functional requirements may describe only the functionalities.
9/10/2004Use Case Workshop 1 CSC480 Software Engineering Workshop 1 Requirements Modeling.
Introduction to push technology © 2009 Research In Motion Limited.
T-FLEX DOCs PLM, Document and Workflow Management.
Introduction to BizAgi. Slide 2 User Interface (Summary) The user interface for BizAgi resembles Office It uses a similar ribbon The Palette contains.
Interaction Diagrams Activity Diagram State Machine Diagram
28.2 Functionality Application Software Provides Applications supply the high-level services that user access, and determine how users perceive the capabilities.
Interaction Diagrams - Chapter 15 Describe/illustrate sequence of message exchanges among objects that are working together to achieve some functionality.
Concurrency control using transactions 1Transactions.
Inter Process Communication:  It is an essential aspect of process management. By allowing processes to communicate with each other: 1.We can synchronize.
Sept Ron McFadyen1 Extend Relationship.
Systems Analysis I Data Flow Diagrams
C++ fundamentals.
Exmouth House 3–11 Pine Street London EC1R 0JH T F E W ASCE – Railway Hazard Log Technical.
Basic Concepts of Computer Networks
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Process-to-Process Delivery:
Classes and objects Practice 2. Basic terms  Classifier is an element of the model, which specifies some general features for a set of objects. Features.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Copyright CovalentWorks Training Guide for Invoices MYB2B Powered by CovalentWorks.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 21. Review ANALYSIS PHASE (OBJECT ORIENTED DESIGN) Functional Modeling – Use case Diagram Description.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
1 CMPT 275 Software Engineering Requirements Analysis Phase Requirements Analysis Activity (Identifying Objects, Scenarios) Janice Regan,
FTP Client Application CSC 8560 Brian Jorgage 4/27/2004.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
System Descriptions. What we will do today… Today, we will describe the billing and cash receipts systems of a simple company The points to think about.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Interaction and Communication Diagrams Patrick Bailey Keith Vander Linden Calvin College.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Sequence Diagrams And Collaboration Diagrams HungNM.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Business Analysis with For PG MDI, Gurgaon Kamna Malik, Ph.D.
Use cases Practice 4. Task 1  The author of the article “Author” send his paper (“SendPaper”) to the editor of the magazine (“Edition”). The editor send.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
1 Examining Execution Sequences Introducing Sequence Diagrams.
Introduction to JavaScript CS101 Introduction to Computing.
G045 Lecture 08 DFD Level 1 Diagrams (Data Flow Diagrams Level 1)
Chapter 11 Activity Diagrams. 2 “Activity diagrams are a technique to describe procedural logic, business processes, and work flows” - M. Fowler An activity.
Chapter 13 ATM Case Study Part 2: Implementing an Object-Oriented Design Java How to Program, 8/e (C) 2010 Pearson Education, Inc. All rights reserved.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
1 Terminology. 2 Requirements for Network Printing Print server Sufficient RAM to process documents Sufficient disk space on the print server.
WaveMaker Visual AJAX Studio 4.0 Training Java Script Events.
Alice in Action with Java Chapter 4 Flow Control.
State diagrams Practice 5. Task 1  After the creation of the article “Paper” is only a draft “Draft”. After sending (“send”) this article is considered.
Project 3. “System Call and Synchronization” By Dongjin Kim
 Activity diagram is basically a flow chart to represent the flow from one activity to another activity.
UML ACTIVITY DIAGRAM 1. Recap Formal Use Case diagram UML notation for use cases Examples 2.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Module 5: Managing Content. Overview Publishing Content Executing Reports Creating Cached Instances Creating Snapshots and Report History Creating Subscriptions.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED CREATING A SIMPLE PROCESS.
World of Wokcraft The very best in Single pan cooking themed fantasy gaming!
Invoices Training Presentation for Supply Chain Platform: BAE Systems May 2015.
World of Wokcraft The very best in Single pan cooking themed fantasy gaming!
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
Elaboration popo.
PARALLEL PROGRAM CHALLENGES
Unified Modeling Language
Activity Diagram.
State Machine Diagrams
Java Byte IPC: Part 6-Summary
Process-to-Process Delivery:
Presentation transcript:

Activity diagrams Practice 7

Task 1  The first action in the activity is the adding the item to the order. If the order if formed (“ready”), then it is sent to the receiver by the action “ShipOrder”, and the activity ends. Else another element of the order is added.  Using the fork and join nodes, add an action for sending the invoice (“SendInvoice”) so that it is executed after the order is formed, regardless of the sending of the order. Along with this, the activity does not end without sending the invoice.  Provide the option after adding the item to add another item to the order under the condition [continue] or to end the executing of the activity under the condition [cancel].  Let the action of adding an item takes t1 cycles, the action of sending of the order takes t2 cycles, the action of sending an invoice takes t3 cycles. The next action begins on the next cycle after the previous. Determine the total execution time of the activity, if there are k delivered elements in the order.

Task 2  The client “Customer” accesses the cashier by the action “AddressCashier”, the cashier greets the client and asks him for his papers by the action “AskDocuments”. The client gets a receipt for the payment of the money from the account and gives it to the cashier. The cashier checks the receipt by the action of giving money “GiveMoney” and returns to the client a few notes of a class “Note” in one pack. The client gets and recalculates money by the action “ReceiveMoney”, says goodbye (“Farewell”) and leaves completing the activity’s execution.  Add to the cashier the action to thank the customer (“ThankCustomer”) that occurs after the transfer of the notes, without waiting for the completion of the counting of banknotes by the client, but before he'll say goodbye.

Task 2  Add to the cashier the action for checking the passport (“CheckPassport”). The client passes the passport along with other documents, but the cashier first checks his passport, then uses the passport information when issuing money and returns the passport together with banknotes.  Changing the properties of the contacts, make sure that the cashier passes and the client counted banknotes one by one.  Calculate the total number of created and absorbed labels, transmitted by the edges of the activity, if the cashier gives the customer a single note.  List the classes, instances of which are used to perform the activity.

Task 3  The synchronous operations are defined in the class “Barrier”. The behavior of the class is described by the reentrant (isReentrant=true) activity, represented in fig.

Task 3  What values will be returned as a result of calling of operations one() and two()? Explain.  Using the fork and join nodes indicate that the return from the operation one() is only possible after calling the operation two(), and vice versa.

Task 4  Class “Semafore” implements a simple semaphore operations wait() and signal(). A single call to signal allows a single call to wait. Initially, the operation wait will wait for a call to signal. The class definition is presented in fig.

Task 4  Using the actions of receiving a call operation "AcceptCallAction" and "ReplyAction", imagine the behavior “basicSemafore” in the activity.  Modify the model so that the first call to wait wouldn’t expect the call to signal.  Modify the class “Semafore”. Implement a public operation signal(count:Integer), which permits to count (“count”) calls to wait.

Task 5  There is the activity diagram in fig.  What is returned as a result of the activity?  What is the type of the action "a+b"?  Now suppose that the behavior “add” is defined in the model, which implements the addition of two integers. What type of the action will this behavior have?  Modify the activity so that the activity will return the multiplication of the array elements.

Task 5

Task 6  The activity “Configure plugins" begins from the construction “BuildPluginsList” and displaying “DisplayPluginsList” the list of installed plugins. Then the operation continues only after receiving the signal from the user “UserActivityRecieved”. Depending on the user's choice there happens either the configuration of the specific plugin “ConfigureSelectedPlugin” or the installation of the new plugins “InstallNewPlugins”.

Task 6  Specify in the model that the operations “BuildPluginsList”, “ConfigureSelectedPlugins” and “InstallNewPlugins” are implemented in the controller of the multimedia player “PlayerController”. In the user interface “PlayerUI” the operation “DisplayPlugins” and the reception of signals “UserActivityRecieved” are implemented.  When the plugin list is built, you need to check in a background thread of execution the plugin updates on the server “UpdatePlugins”.

Task 6  Implement the update operation for plug-ins “UpdatePlugins”, which means the establishment of the connection with the server “EstablishConnection”, the check “CheckUpdates” and download updates UpdatePluginsfor each plugin, if there the updates exist. Using the area of the extension, add the appropriate elements to the model.

Task 7  From the initial action of the activity “BuildTrafficLights” the control flow enters the call behavior action “createInstance”. The result is placed in the output contact “result”. The control flow after the action “createInstance” goes to the call behavior action “createTrafficLights”. The action has an output contact of the type “TrafficLights”. After that the object stream enters the incoming contact of the call operation action of adding a traffic light “addTrafficLights”. This operation is called by the instance of the type “Controller”, which is passed through a second contact of the operation, going out of the object stream from “createInstance”.

Task 7  Modify the model, Specify that the traffic light is created with parameter 1 and is added by the action “addTrafficLights” with index 2.