Point of Sale System

Only available on StudyMode
  • Topic: Use case, Unified Modeling Language, Use case diagram
  • Pages : 36 (6263 words )
  • Download(s) : 525
  • Published : May 5, 2011
Open Document
Text Preview
Object-oriented Analysis and Design

Software Requirement Specification

Software Engineering

1

Object-oriented Analysis and Design

Requirements Analysis 1
As Marketing requested it.

Software Engineering

2

Object-oriented Analysis and Design

Requirements Analysis 2
As Sales ordered it.

Software Engineering

3

Object-oriented Analysis and Design

Requirements Analysis 3
As Engineering designed it.

Software Engineering

4

Object-oriented Analysis and Design

Requirements Analysis 4
As Production manufactured it.

Software Engineering

5

Object-oriented Analysis and Design

Requirements Analysis 5
As Maintenance installed it.

Software Engineering

6

Object-oriented Analysis and Design

Requirements Analysis 6
What the customer wanted.

Software Engineering

7

Object-oriented Analysis and Design

A Short Example 1
Define Use Cases
Play a Dice Game use case:
Player requests to roll the dice. System presents results: If the dice face value totals seven, player wins; otherwise, player loses. Die Game player

Roll Dies

Software Engineering

8

Object-oriented Analysis and Design

A Short Example 2
Define a Domain Model
creating a description of the domain from the perspective of objects. There is an identification of the concepts, attributes, and associations that are considered noteworthy. Player name 1 Plays 1 DiceGame 1 Includes 1 Rolls 2 Die faceValue 2

Software Engineering

9

Object-oriented Analysis and Design

A Short Example 3
Assign Object Responsibilities and Draw Interaction Diagrams to illustrate these collaborations is the sequence diagram. It shows the flow of messages between software objects, and the invocation of methods. :DiceGame play() roll() fv1 := getFaceValue() roll() fv2 := getFaceValue() die1 : Die die2 : Die

Software Engineering

10

Object-oriented Analysis and Design

A Short Example 4
Define Design Class Diagrams
a static view of the class definitions is usefully shown with a design class diagram. This illustrates the attributes and methods of the classes.

DiceGame die1 : Die die2 : Die play() 1 2

Die faceValue : int getFaceValue() : int roll()

Software Engineering

11

Object-oriented Analysis and Design

Case Study

Software Engineering

12

Object-oriented Analysis and Design

Problem Description 1
The Point-of-Sale terminal is a computerized system used to record sales and handle payments; it is typically used in a retail store. It includes hardware components such as a computer and bar code scanner, and software to run the system. It interfaces to various service applications, such as a third-party tax calculator and inventory control. These systems must be relatively fault-tolerant; that is, even if remote services are temporarily unavailable (such as the inventory system), they must still be capable of capturing sales and handling at least cash payments (so that the business is not crippled). Software Engineering

13

Object-oriented Analysis and Design

Problem Description 2
A POS system increasingly must support multiple and varied client-side terminals and interfaces. These include a thin-client Web browser terminal, a regular personal computer with something like a Java Swing graphical user interface, touch screen input, wireless PDAs, and so forth. Furthermore, we are creating a commercial POS system that we will sell to different clients with disparate needs in terms of business rule processing. Each client will desire a unique set of logic to execute at certain predictable points in scenarios of using the system, such as when a new sale is initiated or when a new line item is added. Software Engineering

14

Object-oriented Analysis and Design

Problem Description 3
Therefore, we will need a mechanism to provide this flexibility and customization. Using an iterative development strategy, we are going to proceed through...
tracking img