L3-S1 Practical Solutions 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.

Slides:



Advertisements
Similar presentations
Assignments.
Advertisements

L8-S1 Datalog Queries 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
Fall 2002 SJSU -- CmpE Enterprise & Application Frameworks Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
 Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5c-S1 Object Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department,
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L16-S1 Object Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
L5-S1 Software StabilitySJSU – CmpE © M.E. Fayad Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
 Fayad SJSU – CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L21-S1 Model-Based Arch SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L3-5d-S1 Class Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L26-S1 Interactions 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L06-2-S1 Activity Diagrams 2003 SJSU -- CmpE Software Engineering II Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
P2-S1 MySQL 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
SJSU -- CmpE © Dr. M. E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L8-S1 CRC Cards 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
© M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
1999 – 2006 M.E. Fayad SJSU -- CmpE Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
© M.E. Fayad SJSU -- CmpE Analysis Heuristics Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L18-S1 Getting Started 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
 Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
© M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L04-S1 Stable Design Patterns 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
L3-6b-S1 Sequence Diagrams © M.E. Fayad SJSU -- CmpE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
1Fall 2008, Chapter 11 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
Practice of ER modeling
L4-S1 ER Diagrams 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José.
L1-S1Introduction 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
L4-S1 Modeling Concepts 2003 SJSU -- CMPE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
HOURS OF OPERATION The Deerwood Academy Media Center is open Monday-Friday from 7:30-2:15. The Deerwood Academy Media Center is open Monday-Friday.
L8-2-S1 Misc Topics © M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of.
Fall 2002 SJSU -- CMPE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department – RM# College of Engineering San José.
L6-S1 MLPQ 2003 SJSU -- CmpE-- M.E. Fayad Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
L1-S1 Infinite R-DB 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.
L12-S1 Spatiotmporal DB 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
SJSU – CmpE © M.E. Fayad Software Engineering Management Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering.
Object-Oriented Analysis & Design
Advanced Object-Oriented Analysis & Design
Database Design Dr. M.E. Fayad, Professor
Software Engineering Management
Component-Based & Software Reuse
Software System Engineering
Object-Oriented Analysis & Design
Software Engineering Management
Software System Engineering
Enterprise & Application Frameworks
Database Design Dr. M.E. Fayad, Professor
Advanced Object-Oriented Analysis & Design
Component Based & Software Reuse
Database Design Dr. M.E. Fayad, Professor
Database Design Dr. M.E. Fayad, Professor
Software Systems Engineering
Classroom.
Database Design Dr. M.E. Fayad, Professor
Software System Engineering
Object-Oriented Analysis & Design
Presentation transcript:

L3-S1 Practical Solutions 2003 SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA

L3-S2 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad 2 Lesson 3: ERDs & Class Diagrams for 1. School 2. File System 3. Kitchen

L3-S3 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Lesson Objectives 3 How to Create an ERD or Class Diagrams Business Rules School’s ERD or Class Diagram File System’s ERD or Class Diagram Kitchen’s ERD or Class Diagram

L3-S4 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Write the business rules Create a model for each Business Rule Connect the resulted models based on the business rules Validate and test the ERD or the Class Diagram 4 How to Create an ERD or Class Diagram for Any Problem

L3-S5 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A school has a principal, many students, and many teachers. Each of these persons has a name and a birthdate, and may borrow and return books. 5 School: Business Rules (1) Teacher salary StudentPrincipal evaluateTeacher() School Person salary birthdate 0..* Book title author loan return Borrows

L3-S6 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Teachers and the principal are both paid a salary; the principal evaluates the teachers. A school board supervises multiple schools and can hire or fire the principle of each school. 6 School: Business Rules (2) School Board hirePrincipal() firePrincipal() School 0..*

L3-S7 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A school has many playgrounds and rooms. A playground has many swings. Each room has many chairs and doors. Rooms include restrooms, classrooms, and the cafeteria. Each classroom has many computers and desks. Each disk has many rulers. 7 School: Business Rules (3)

L3-S8 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad 8 School: Business Rules (3) RestroomCafeteriaClassroom 0..* School RoomDoorChair 0..* Playground Swing ComputerDesk Ruler 0..*

L3-S9 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A drive may have many multiple disks –A hard drive contains many disks. –A floppy drive contains one disk. Please note that: –A drive may exist without a disk –A disk may exist without a drive 9 File System: Business Rules (1)

L3-S10 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A disk is divided into tracks which are in turn subdivided into sectors. Please note: Tracks are part of the disk and sectors are part of the track 10 File System: Business Rules (2)

L3-S11 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A file system may spread on multiple disks and a disk may be partitioned across file systems. 11 File System: Business Rules (3)

L3-S12 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Similarly a disk may contain many files and a file may be partitioned across many disks A file system consists of many files Each file has a filename, owner, permissions for reading and writing, last modifications date, size, checksum. Please note: Files are part of the file system. 12 File System: Business Rules (4)

L3-S13 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Files may be data files and directory files A directory file is associated with a directory A file may correspond to many directories. Data file may be an ASCII file, executable file, or both. 13 File System: Business Rules (5)

L3-S14 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad 14 File System’s Class Diagram Would you be able to generate the file system’s class diagram?

L3-S15 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad A room is part of a building. A building has many rooms A kitchen is a kind of (AKO) a room Please not that a building is a whole and a room is a part. The rest of the business rules are very simple. Would you be able to generate the rest of the business rules and the class diagram? 15 Kitchen: Business Rules (1)

L3-S16 Practical Solutions 2003 SJSU – CmpE --- M.E. Fayad Any Question? 16 Discussion Questions