adms-bis bouwkundige informatiesystemen adms 2006 uml part 2 jan dijkstra - 16 oktober 2006

22
ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

Upload: connor-trathen

Post on 01-Apr-2015

219 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Bouwkundige InformatiesystemenADMS 2006

UML part 2

Bouwkundige InformatiesystemenADMS 2006

UML part 2

Jan Dijkstra - 16 oktober 2006

Page 2: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

SubjectsSubjects

• Objects & Classes 16 okt.

• UML : Class DiagramUML : Class Diagram 23 okt23 okt..• UML : Object DiagramUML : Object Diagram 23 okt23 okt..• UML : Class Diagrams ExercisesUML : Class Diagrams Exercises 23 okt23 okt..• Exercise Class Diagram MKWExercise Class Diagram MKW 23 okt23 okt..• Discussion Exercise Class Diagram MKWDiscussion Exercise Class Diagram MKW 30 okt.30 okt.

• UML : Class Diagrams - Advanced ConceptsUML : Class Diagrams - Advanced Concepts 30 okt.30 okt.

• Task UML-part 2Task UML-part 2 30 okt.30 okt.

Page 3: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Objects & ClassesObjects & Classes

Page 4: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Analyses and design of a systemAnalyses and design of a system

• Process orientationprocesses, activities, functions

“How?”

• Data orientationdata, entities, objects

“What?”

Page 5: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Data aspectData aspect

• Structure of information– Which are the “static” objects?– What are the classes of objects? How did they differ?– What are the relationships between them?

• Information modeling

Page 6: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Basic concept of information modelingBasic concept of information modeling

An information system has to represent information about objects (entities) that occurs in the UoD (Universe of Discourse) associated with its application domain.

Design domain model modeling approach

Design IS model data model

Page 7: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Basics data modelBasics data model

Data models in IS development– Problem domain : UoD

1. Store information

2. Present information

3. Manipulate information

Page 8: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Data model conceptsData model concepts

• Objects are – Physical (tangible) like students, or

– Conceptual (intangible) like name

things in the real world

• Objects have properties– Property of object = attribute + value

• Link = connection between objects

• Multiple objects are identifiable by a unique identity

Page 9: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

File card of StudentFile card of Student

Name Stud van TUE 24 March 1980 M / F

Address Terborg 7, 2745 XY Gieten Tel 06 23840692

Date Finished Courses

21/02/2002 7m063

24/03/2005 7m822

Page 10: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Objects and links 1Objects and links 1

• We can not store real-world objects only information about them

• Information objects represent the corresponding real-world object

• The properties of an object are represented by the attributes of the corresponding information objects

• At any time an (information) object has a certain state consisting of the current values of its attributes

• The state of an object can be depicted by means of an object diagram

Page 11: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Objects diagramObjects diagram

Stud van TUE: Student

Name = Stud van TUEGender = MDateOfBirth = 24-03-1980Address = Terborg 7, 2745XY Gieten

Elsa van UvT: Student

Name = Elsa van UvTGender = VDateOfBirth = 07-04-1982Address = As 17, 5623TW Waalre

Page 12: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Objects diagram Objects diagram

877: Student

Name = Stud van TUEGender = MDateOfBirth = 24-03-1980Address = Terborg 7, 2745XY Gieten

1221: Student

Name = Elsa van UvTGender = FDateOfBirth = 07-04-1982Address = As 17, 5623TW Waalre

Students with identification numbers

Page 13: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Objects and links 2Objects and links 2

877: Student 2002022101: Coursehas

Bas: Person Louise: PersonIsMarriedTo

Page 14: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

ClassesClasses

• A class is an abstract concept– Each object is an instance of a class

• A class has attributes with no values

• Classes classify objects– Object analysis than values to attributes

Page 15: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Class diagramClass diagram

• Object diagrams reveal both the structure and the state of objects

• In an information model, we are interested in the structure of objects and not specific in their state

• Classes of objects and their relationships with each other are described in a class diagram

Page 16: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Class diagram 2Class diagram 2

Student

NameGender DateOfBirthAddress

Student

StudentNoNameGender DateOfBirthAddress

Page 17: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Question ?Question ?

Describe the class Rectangle

and describe an instance of this class

Rectangle

length : intwidth : int

R1: Rectangle

length =25width = 10

Page 18: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Class and relationsClass and relations

Student Coursehas finished

PersonIsMarriedTo

Husband

Wife

role name

link

association name

Page 19: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

Object class and their data typesObject class and their data types

Student

StudentNo : Int(8)Name : Char(15)Gender : Char(1)DateOfBirth : DateAddress : Char(125)

Page 20: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

ExerciseExercise

Een aantal projectteamleden maakt deel uit van een uitvoerend comité.

Eén van de projectteamleden is voorzitter van dit uitvoerend comité.

Tevens is één van de projectteamleden mentor van een aantal andere projectteamleden.

Vraag:

geef klassenaanduidingen, rolnamen, en mogelijke associatie van bovenstaande beschrijving in een diaghram weer.

Page 21: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

SolutionSolution

Projectteam lid Comité

Mentor Voorzitter

maakt deel uit van

Page 22: ADMS-BIS Bouwkundige Informatiesystemen ADMS 2006 UML part 2 Jan Dijkstra - 16 oktober 2006

AD

MS

-BIS

ReferencesReferences

• Sommerville, Ian (2001)

Software Engineering, 6th edition

http://www.software-engin.com

• Timothy Lethbridge & Robert Laganière (2005)

Object-Oriented Software Engineering, 2nd edition

http://www.lloseng.com