Develop a class diagram for the system

Assignment Help Computer Engineering
Reference no: EM131390067

PROBLEM 1:

A system keeps track of prices of machine parts in a warehouse. Prices of machine parts in the warehouse may change. Interested users may register with the system to watch price changes of a specific machine part in the warehouse. Each machine part is uniquely identified by its name and ID number. At any time different types of users may register or un-register to watch the price of a specific machine part in the warehouse. Each time when the price of a machine part changes, the system notifies all users registered to watch the price change of this machine part.

a. Develop a class diagram for the system using the Observer design pattern. For each class list all operations with parameters and briefly specify them using pseudo-code. In addition, for each class provide its attributes. Make the necessary assumptions for your design. Notice that the components in your design should be de-coupled as much as possible. In  addition, components should have high cohesion.

b. Provide two sequence diagrams showing:

  • How the user registers to observe a price change of a selected machine part.
  • How the system notifies users about price change of a specific machine part.

PROBLEM 2:

The ACCOUNT component supports the following operations:

OPEN (int p, int y, int a)   // open an account where  p is a pin,  y is an user's identification #, and a is a balance

PIN (int x)    // provides pin #

DEPOSIT (int d);  // deposit amount d  

WITHDRAW (int w);  // withdraw amount w 

BALANCE ();   // display the current balance

LOGIN(int y)   // login where y is a client's identification #

LOGOUT()    // logout from the account

suspend()    // suspends an account

activate()     // activates a suspended account 

close()      // an account is closed

The  ACCOUNT component is a state-based component and supports three types of transactions: withdrawal, deposit, and balance inquiry.  Before any transaction can be performed, operation OPEN(p, y, a) must be issued, where y is a client's identification #, p is a pin used to get permission to perform transactions and a is an initial balance in the account. It is assumed that OPEN() operation is issued only once for a given account. Before any transaction can be performed, operation LOGIN(y) must be issued (where y is a client's identification #) followed by PIN(x) operation. The PIN(x) operation must contain the valid pin # that must be the same as the pin # provided in OPEN(p,  y,  a) operation. There is a limit on the number of attempts with an invalid pin. The account can be overdrawn. If the account is overdrawn  then the withdrawal  transaction cannot be performed. The account may become suspended by suspend() operation. If the account is suspended, withdrawal, deposit, and logout transactions cannot be performed. A suspended account can be activated by activate() operation. In addition, a suspended account can be closed by  close() operation. The detailed behavior of the ACCOUNT component is specified using EFSM. The EFSM of Figure 1 shows the detail behavior of the ACCOUNT component.

Design the system using the State design pattern. Provide two solutions:

  • de-centralized version of the State pattern
  • centralized version of the State pattern

Notice that the components in your design should be de-coupled as much as possible. In addition, components should have high cohesion.

For each solution:

a. Provide a class diagram for the system.  For each class list all operations with parameters and specify them using pseudo-code. In addition, for each class provide its attributes and data structures. Make the necessary assumptions for your design.

b. Provide a sequence diagram for the following operation sequence: OPEN(123,111,1000), LOGIN(111), PIN(123), DEPOSIT(200), BALANCE(), suspend(), close()

Attachment:- Assignment Files.rar

Reference no: EM131390067

Questions Cloud

What is this contact arrangement called : In a forward-reverse control circuit, a normally closed F contact is connected in series with the R starter coil, and a normally closed R contact is connected in series with the F starter coil. What is the purpose of doing this and what is this co..
Determine the probability that someone is under 30 : Determine the probability that someone is under 30,- the probability that someone has a high income given that he or she is under 30,
What is being done to recruit a more diverse workforce : What is being done (if anything) to recruit a more diverse workforce? What type of external recruitment method is being used on these web sites? What is the reason for your classification?
Britney positions over a specific time interval : Britney Spears is on stage in Vegas, being acted upon by gravity, maybe even a backup dancer. Here are Britney's positions over a specific time interval:
Develop a class diagram for the system : CS 586; Spring 2017 ASSIGNMENT. Develop a class diagram for the system using the Observer design pattern. For each class list all operations with parameters and briefly specify them using pseudo-code
Describe three key metrics needed to guide a new pmo : Describe three key metrics needed to guide a new PMO. Identify the information technology needed for the implementation of PMO standards and metrics.
What is the magnitude of the total electrostatic force : What is the magnitude of the total electrostatic force on a third particle with charge 9 uC placed on the x-axis at 2 cm? The Coulomb constant is 8:9875 109 Nm2=C2. Answer in units of N.
Describe role compensation plays in organizational strategy : You have recently been promoted from an HR Assistant position to the Compensation Manager position for your firm. Describe the role compensation plays in organizational strategy.
Which of the following could cause this condition : Assume that the start button is pressed and the oil pump starts operating. After a delay of 5 seconds, the COMP pilot light turns on, but the compressor motor does not start. Which of the following could cause this condition?

Reviews

len1390067

2/10/2017 5:50:35 AM

This is the Software Systems Architectures homework. We need to write the pseudo-code and draw some diagrams such as class diagram and several design patterns. I will provide the HW deatil pdf that you can see what we need to do for the HW. Also, I will provide the last year HW pdf and solutions from my other classmate that you can reference to know how to write this time HW. I will upload two rar files. One is last year HW, and the other is this year HW, the one we need to do this year which detail and request is on the pdf. The problem you need to do is that write this year hw only for #problem 2. You should use state pattern to provide two solutions: de-centralized version of the State pattern and centralized version of the State pattern. For each solution you should provide class diagrams and pseudo-code. And provide the sequence diagrams for the hw requirements. You can see this year homework 1.pdf for more detail.

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd