Discovering Classes.

Slides:



Advertisements
Similar presentations
Database development (MIS 533) MBS in Management Information Systems and Managerial Accounting Systems (2007 / 2008) Fergal Carton Business Information.
Advertisements

© Copyright 2011 John Wiley & Sons, Inc.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1/18 Use Case Analysis – continued Control Classes.
6/8/991 Analysis Tuesday 09/14/99 Revised: September 11, 2000 (APM)
Further Data Modelling …and the effect of time. Plan Introduction Structured Methods –Data Flow Modelling –Data Modelling –Relational Data Analysis –Further.
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 More on use cases System sequence.
SABAL SHRESTHA SHERIF HALAWA SHAMA KHADPEKAR JIANWEI LAI SI TRAN GROUP A Tri-Airport Shuttle System.
The Project Process Inception - initial planning Elaboration - refining the design Construction - building the system Transition - installation support.
Systems Analysis and Design in a Changing World, Fifth Edition
A Model of Accounting Information System Data Information Database Data processing software Management Environment Input physical resources Output physical.
Faculty of Computer & Information
Conceptual Modeling Modeling the Problem Domain. Conceptual Modeling Decompose problem space into comprehensible concepts. Clarify the terminology or.
1. Go to 2. Complete the requested information.
Class diagram Used for describing structure and behaviour in the use cases Provide a conceptual model of the system in terms of entities and their relationships.
Planning Tool for Classes A Single Class Class name Attributes (Properties) Operations (Methods)
MSF Design Example Conceptual Design Logical Design Physical Design.
5 Systems Analysis and Design in a Changing World, Fifth Edition.
Three Layer Architecture Why Bother with the Middle Layer?
Analysis Paralysis We spend so much time thinking about the problem and making sure the next step is “perfect” there is a risk that we never actually.
Confidential Web Ordering Overview. Confidential LOG ON:   Enter your login name &
 Shopping Basket  Stages to maintain shopping basket in framework  Viewing Shopping Basket.
Group Booking : Reserve Multiple Rooms In Single entry Book Multiple Rooms in Single Entry.
IS3320 Developing and Using Management Information Systems Lecture 18: Data-Flow Diagrams 3 – Level 1 Modelling Rob Gleasure
Product V Process Planning Tool for Classes Relationship Between Layers Presentation (Use cases)Middle (Classes)Data (Entities)
18/2/16.  Aggregation  Part-of relationship between a component or an aggregate (collection) object)
TRANSACTIONAL DATA. TRANSACTION DATA THE COLLECTED INFORMATION ABOUT THE SELL AND PURCHASE TRANSACTION IS THE ACTIVITIES THAT OCCUR EVERY TIME YOU BUY.
Invoices and Service Invoices Training Presentation for Raytheon Supply Chain Platform (RSCP) April 2016.
Introductions Robin Godfrey, Executive Director Sue Bell, Member Services Director Chris Denning, Integra Planner.
Use Case Diagrams A Detailed Description. Use Case Diagrams Use case diagrams describe relationships between users and use cases A use case is a (usually.
Chapter 5: Structural Modeling
1 Terminal Management System Usage Overview Document Version 1.1.
PowerTeacher Gradebook PTG and PowerTeacher Pro PT Pro A Comparison The following slides will give you an overview of the changes that will occur moving.
You will need to… Sort out your teams Know your assessment schedule Identify your personal project title Discover the core functionality Agree the shared.
 Class and Diagram  Representation of Class Name Attributes Operations  Visibility of Attributes and Operations.
Welcome to the ABC Bakers PowerPoint on Girls Selling Cookies Online with E-Cards. ABCSmartcookies.com is your Girl Scout’s all-in-one access to learn.
Shopping on Amazon & Safe Shopping
Document Handling Contents: General Structure of Documents
Rob Gleasure IS3320 Developing and Using Management Information Systems Lecture 15: Data-Flow Diagrams 2 – Level.
Discovering Use Cases.
Project Management: Messages
Chapter 9 Domain Models.
Tutorial 3 Data Modelling.
Entity Relationship Diagram
Module4 Company Website.
CIS C Project Presentation 4
Use Case Model.
Classes, Sequence Diagrams and Triangulation
Sequence Diagrams.
Sequence Diagrams.
Welcome to the ABC Bakers PowerPoint on Girls Selling Cookies Online with E-Cards. ABCSmartcookies.com is your Girl Scout’s all-in-one access to learn.
Class diagram Description
Parts.cat.com Client training 2016.
OO Domain Modeling With UML Class Diagrams and CRC Cards
Database Applications
ER MODEL Lecture 3.
Accounting Information Systems 9th Edition
WEBSITE REP TRAINING.
Sequence Diagrams.
Tech Data: Your Source For Sony Products
© 2016 Blackboard Inc. All rights reserved..
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
CRC Card Design A CRC Model is a collection of cards (usually standard index cards or larger) that are divided into three sections. 1. Class 2. Responsibility.
Discovering Use Cases.
Copyright 2007 Oxford Consulting, Ltd
Systems Analysis and Design I
Membership/Post Processing - Process Membership
Use Case Analysis – continued
Domain Model: Visualizing Concepts
DFD Process & Examples.
Presentation transcript:

Discovering Classes

Product V Process

Planning Tool for Classes

Relationship Between Layers Presentation (Use cases) Middle (Classes) Data (Entities)

A Single Class Class name Attributes (Properties) Operations (Methods)

Translated to Class File in Visual Studio

Attributes Become Properties

Operations Become Methods

Starting from the Event Table Subject Verb Object Response User Views Address List Addresses are listed by the system Filters Address list is filtered based on pattern Adds Address Address is added to the system Updates Address is updated on the system Deletes Address is deleted from the system System Validates Address data is accepted or error is displayed

Starting from the Scenario At the end of each year students have purchased a number of books that are surplus to requirements by the end of the year / course. In order to recycle the books and possibly make a little money a system is required allowing students to sell their books on to students following them on lower years. The application will be web based allowing students to access sales and account details at home. Students will sign up to the site providing contact details. Once authenticated on the system a student will be able to add books that they no longer require. Initially books will be viewable only to the student themselves. To sell on a book the student must take the book to the book shop on the ground floor of Gateway house. The book will be handed to the system administrator (Brenda) who will place the book into stock, provide a receipt for the student and then flag the book on the system as “in stock”. Now that the book is in stock it is visible to other students on the system who may reserve the book for collection. Once reserved the purchasing student must visit the book shop and pay for the book. They will be issued with the book along with a receipt or they have the option of cancelling the transaction if the book was not what they expected (wrong edition of poor condition). As soon as the transaction is completed the seller of the book is notified. They need to visit the bookshop to claim the money paid by the buyer. Identify the nouns

Authentication System What attributes / operations might this class have?

What About?…. Is it correct? clsAuthenticationSystem Attempts:Int32 CheckLogin(UserName:string,Password:string):Boolean Is it correct?

Adding a few more Classes clsAuthenticationSystem Attempts:Int32 CheckLogin(UserName:string, Password:string):Boolean clsUser UserNo:Int32 UserName:string Find(UserNo) Validate(UserDetails) clsDataConnection Count:Int32 DataTable:DataTable AddParameter (ParamName:string, ParamValue:object):void Execute (SProcName:string):Int32

How do we find Associations? Subject Verb Object Response Consultant Inputs Card Data accepted by the system System Checks Identifying duplicates Updates New data input Clues may be found looking at subjects and Object

Multiplicity how many of one class may be used by another class

Adding Multiplicity clsUser UserNo:Int32 UserName:string Find(UserNo) clsAuthenticationSystem Attempts:Int32 CheckLogin(UserName:string, Password:string):Boolean clsUser UserNo:Int32 UserName:string Find(UserNo) Validate(UserDetails) clsDataConnection Count:Int32 DataTable:DataTable AddParameter (ParamName:string, ParamValue:object):void Execute (SProcName:string):Int32 1

Composition (Has relationship) Can an order line exist without an order? No – so we indicate a strong relationship Order Order Line Has 1 0..* Attributes Operations Order Order Line Has 1 0..* Attributes Operations

Aggregation (Uses relationship) Can an address exist without a customer? Yes - so we express this with a clear diamond Customer Address Uses 1 1..* Attributes Operations Customer Address Uses 1 1..* Attributes Operations

Collection Classes 1 Collection class allows you to manage many instances of the item class A good starting point is to consider 1 table needs 2 classes to control it

Classes you must Identify In your diagram you WILL have Collection classes + associated item class (1:M) Aggregations Composition If the above are absent on your diagram you have probably missed something!

Exercise Assuming every table ends up with two classes, write down some candidate classes for your system. What are their names? What are their attributes? What are their operations? What associations might exist between them?