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

  Your company is currently investigating the use of linux

your company is currently investigating the use of linux. your manager has asked you to research the feasibility of

  How program to document the program internally

It will be necessary for you to access Service Request: SR-kf-008, Tax Calculator from the Virtual Organizations portal. Complete Change Request #1. Insert comments in the program to document the program internally. Attach a design flow chart to a..

  Discuss use of client-side technologies in your microsite

Your report (Arial - font size 12) should discuss on the following area: Explain the message that you want to be communicated through your microsite. Outline and discuss the use of client-side technologies in your microsite. Discuss how the design of..

  Explain what is an xml element

How can I make my existing HTML files work with XML?explain What is an XML element.

  The cost of building and maintaining an organizational

the cost of building and maintaining an organizational computing ecosystem has become a bigger part of most

  Assess how section 508 affects developing user interfaces

building a user interface that meets the needs of a diverse population can be incredibly difficult. research the best

  Use at least three quality resources in this assignment

write a two to four page paper in which youdescribe the reasons for disneys adoption of itil. nbspexamine the results

  What is the value of the given twos complement number

What is the value of the following 2's complement number? What technique is being utilized when high performance is obtained by subdividing the clock cycle into a number of sub-intervals Pipelining technique.

  Active and passive tcp connection

At the time of establishment of the TCP session between 2 BGPv4 peers one is developed as active and the other as passive.

  Create a program generates a 3-digit random number 100 times

Write down a C# application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers. Every 10th number you should display a String consisting of a any phrase of your cho..

  Questiona program that accepts a candy name such as for

questiona program that accepts a candy name such as for example chocolate-covered blueberries price per pound and

  Health care services

Compare and contrast the cost-effectiveness, benefit-cost, and cost-utility analysis and find which is most useful to assess value of the health care services overall.

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