Structural Modelling.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling
Advertisements

2006 Pearson Education, Inc. All rights reserved Object-Oriented Programming: Inheritance.
Advanced Piloting Cruise Plot.
UML and Classes, Objects and Relationships [1]
Chapter 7 System Models.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright: SIPC From Ontology to Data Model: Choices and Design Decisions Matthew West Reference Data Architecture and Standards Manager Shell International.
Conceptual Design Modeling the rules of organization Building ER model.
State of New Jersey Department of Health and Senior Services Patient Safety Reporting System Module 2 – New Event Entry.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
2 HOME DELIVERED MEALS Waiver Workshop Presented by: Regional and Local Services (RLS) Access and Intake /Area Agency on Aging (A&I/AAA) May 27-28, 2009.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Conceptual / semantic modelling
Database Design: ER Modelling (Continued)
2010 fotografiert von Jürgen Roßberg © Fr 1 Sa 2 So 3 Mo 4 Di 5 Mi 6 Do 7 Fr 8 Sa 9 So 10 Mo 11 Di 12 Mi 13 Do 14 Fr 15 Sa 16 So 17 Mo 18 Di 19.
Week 2 The Object-Oriented Approach to Requirements
Configuration management
By Waqas Over the many years the people have studied software-development approaches to figure out which approaches are quickest, cheapest, most.
Use Case Diagrams.
VOORBLAD.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
the Entity-Relationship (ER) Model
© 2012 National Heart Foundation of Australia. Slide 2.
Lecture plan Outline of DB design process Entity-relationship model
Systems Analysis and Design with UML Version 2.0, Second Edition
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Executional Architecture
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Januar MDMDFSSMDMDFSSS
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
PSSA Preparation.
Chapter 11 Component-Level Design
1 Abstract Class and Packages from Chapter 9 Lecture.
Modeling Main issues: What do we want to build How do we write this down.
© Copyright 2011 John Wiley & Sons, Inc.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Slide 1 Systems Analysis & Design CS183 Spring Semester 2008 Dr. Jonathan Y. Clark Course Website:
Slide 1 Chapter 7 Structural Modeling. Slide 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
ZEIT2301 Design of Information Systems Structural Design: Class Diagrams School of Engineering and Information Technology Dr Kathryn Merrick.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 4th Edition Copyright © 2012 John Wiley & Sons, Inc. All rights.
Structural Modeling Chapter 7
Slide 1 Structural Modeling Chapter 7. Slide 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business.
Class diagram. Purpose of Structural Models Class diagrams represent –Generic Categories (classes) of things (objects) –Define relationships among Generic.
Structural Modeling. Objectives O Understand the rules and style guidelines for creating CRC cards, class diagrams, and object diagrams. O Understand.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
Lecture 6: Structural Modeling
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
What is a Structural Model?
Structural Modeling Chapter 7. Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes in.
1 Structural Modeling Chapter 7. 2 Key Ideas A structural or conceptual model describes the structure of the data that supports the business processes.
Design Model Lecture p6 T120B pavasario sem.
PowerPoint Presentation for Dennis, Wixom & Tegardem Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
Structural Modeling. Introduction A Structural model is a formal way of representating the objects that are used and created by a business system One.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Haley Wixom, and David Tegarden Chapter 7: Structural Modeling.
Chapter 5: Structural Modeling
Chapter 5: Structural Modeling
INFS 6225 Object Oriented Systems Analysis & Design
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Presentation transcript:

Structural Modelling

Tujuan Memahami aturan dan notasi class dan object diagram Memahami langkah-langkah pembuatan class dan object diagram Memahami keterkaitan antara use-case dan structural model

Deskripsi A structural model describes the structure of the data that supports the business process in an organization. During the analysis phase, the structural model presentas the logical organization of data without indicating how the data are stored, created, or manipulated. Analysts need to understand the information that is used and created by the system A structural model is a formal way of representing the objects that are used and created by a business system.

It illustrates people, places, or things about which information is captured and how they are related to each other. At this stage, the structural models doesn’t represent software component or classes in an OO programming language. It should represent the responsibilities of each class and the collaborations between the classes. Structural models are depicted using CRC cards, class diagram, and object diagram

Tujuan Structural Modelling Reduce the “semantic gap ” between the underlying problem domain and the evolving structural model. Create a vocabulary that can be used by both the analyst and users. Represent the things, ideas, or concepts, that is, the objects, contained in the domain of the problem and their relationships.

Classes Templates for creating instances or objects Typical examples: Concrete Abstract Typical examples: Application domain, user interface, data structure, file structure, operating environment, document, and multimedia classes Atributes : Units of information relevant to the description of the class Only attributes important to the task should be included

Operations : Action that instances/objects can take Focus on relevant problem-specific operations (at this point)

Relationship Generalization Aggregation Association Enables inheritance of attributes and operations Example : staff dan nurse Aggregation Relates parts to wholes Example : house dan door,window Association Miscellaneous relationships between classes Example : patient dan appointment

class-resbonsibility-collaboration card

Content Responsibilities Collaboration Knowing Doing Objects working together to service a request

A CRC Card

class diagram

Notasi Class Diagram A CLASS ClassName -attribute +operation () AN ATTRIBUTE AN OPERATION AN ASSOCIATION ClassName -attribute +operation () Attribute name/ derived attribute name operation name () 1..* 0..1 ______verb phrase____

Example

Atribut Derived attributes Visibility /age, for example can be calculated from birth date and current date Visibility Public (+) Protected (#) Private (-)

Operasi Constructor Query Update Creates object Typically not written explicitly on the class diagram Query Makes information about the state of an object available to other objects Update Changes values of some or all attributes

Relationship Tepat satu Nol atau lebih Satu atau lebih Sebuah Department hanya memiliki satu Boss Nol atau lebih Satu Employee memiliki nol atau banyak Child Satu atau lebih Satu Boss memimpin satu atau lebih Employee Department Boss 1 Employee Child 0 .. * Boss Employee 1..*

Multiple, disjoint ranges Nol atau satu Seorang Employee dapat menikah dengan nol atau satu pasangan Kisaran tertentu Seorang Employee dapat memperoleh jatah Vacation 2 hingga 4 kali per tahun Multiple, disjoint ranges Seorang Employee adalah anggota dari satu hingga tiga atau lima komite Employee Spouse 0..1 Employee Vacation 2..4 Employee Comitte 1..3, 5

In these cases, a class is formed, called an association class Sometimes a relationship has associated properties, especially when its classes share a many-to-many relationship. In these cases, a class is formed, called an association class Example : Gejala Penyakit Pengobatan

Generalization & Aggregation Occurs when we need to use words as “is a-kind-of” to describe the relationship. Example : the blue line Aggregation Classes actually comprises other class Example : the red line

Object Diagram

Object Identification Common approaches : Textual analysis Common object lists Patterns

Textual Analysis Analysis of the text in the use-case descriptions Starts by reviewing the use-case descriptions and the use-case diagrams. Identify potential objects, attributes, operations, and relationships. The nouns  possible classes, the verbs  possible operations

Common Object List Simply list the objects that are common to the business domain of the system. Several categories : things incidents roles interactions

Patterns Is a useful group of collaborating classes that provide a solution to a commonly occurring problem. For example : many business transactions involve the same type of objects and interactions : a transaction class a transaction line item class an item class a location class a participant class

Steps for Object Identification and Structural Modeling 1. Create CRC cards by performing textual analysis on the use-cases. 2. Brainstorm additional candidate classes, attributes, operations, and relationships by using the common object list approach. 3. Role-play each use-case using the CRC cards. 4. Create the class diagram based on the CRC cards. 5. Review the structural model for missing and/or unnecessary classes, attributes, operations, and relationships. 6. Incorporate useful patterns. 7. Review the structural model.

Class Tasks Gambarlah class diagram untuk kelas-kelas berikut : Movie (title, producer, length, director, genre) Ticket (price, adult or child, showtime, movie) Patron (name, adult or child, age) Patient (age, name, hobbies, blood type, occupation, insurance carrier, address, phone) Insurance carrier (name, number of patients on plan, address, contact name, phone) Doctor (speciality, provider identification number, age, phone, name)

Gambarkan relasi-relasi berikut : Seorang pasien hanya boleh mendaftar ke seorang dokter, dan seorang dokter boleh memeriksa banyak pasien Seorang pegawai dapat memiliki satu ekstensi telpon, dan satu nomor ekstensi telpon hanya diberikan untuk satu pegawai Sebuah teater dapat menayangkan banyak filem dan sebuah film dapat ditayangkan di banyak teater

Buatlah class diagram untuk situasi berikut : Saat pasien pertama kali berkonsultasi, mereka harus mengisi informasi pasien yang berisi data-data tentang nama, alamat, nomor telpon, dan asuransi yang disimpan di file informasi pasien. Pasien hanya dapat terdaftar pada satu asuransi. Seorang pasien hanya dapat berkonsultasi dengan seorang dokter. Setiap kali pasien mengunjungi dokter, sebuah klaim asuransi dikirim kepada pihak asuransi berkaitan dengan pembayaran. Klaim berisi informasi kunjungan yaitu tentang tanggal, tujuan, dan biaya. Seorang pasien bisa mengajukan maksimal 2 klaim di hari yang sama.

Tugas Kelompok Buat paper tentang : Object Based Formal Specification (OBFS) Aturan : Minimal berasal dari 2 jurnal Tulisan dalam bahasa Indonesia dengan struktur dan tata bahasa yang tepat. Ditulis di kertas A4, minimal 5 halaman (tidak termasuk cover). Cantumkan referensi yang digunakan Dikumpulkan via email dalam format pdf paling lambat 2 Juni 2011