syp zusammenfassung

Download SYP Zusammenfassung

Post on 17-Nov-2015

213 views

Category:

Documents

0 download

Embed Size (px)

DESCRIPTION

SYP Zusammenfassung

TRANSCRIPT

  • Zusammenfassung SYP Modellierungsmuster, Sequenzdiagramme usw.

    Markus Paller 25.3.2015

  • SYP Zusammenfassung Markus Paller Seite 1 von 16

    Inhalt

    Sequenzdiagramm .............................................................................................................................................. 2

    Szenario .......................................................................................................................................................... 2

    Geschftsprozess und Szenario ....................................................................................................................... 2

    Notation Szenario ........................................................................................................................................ 2

    Sequenzdiagramm .......................................................................................................................................... 2

    Classes ................................................................................................................................................................ 3

    Introduction.................................................................................................................................................... 3

    Constructive steps to identify classes .............................................................................................................. 3

    Analytical steps to validate classes ................................................................................................................... 3

    Associations ........................................................................................................................................................ 4

    Goal ................................................................................................................................................................ 4

    Constructive Steps to Identify Associations ..................................................................................................... 4

    Analytical Steps to Validate Associations ........................................................................................................ 4

    Analysis Pattern .................................................................................................................................................. 5

    General ........................................................................................................................................................... 5

    List Pattern ..................................................................................................................................................... 5

    Copy Type Exemplartyp ............................................................................................................................... 6

    Construction Group Baugruppe.................................................................................................................... 6

    List of Components Stckliste ...................................................................................................................... 7

    Coordinator Type ............................................................................................................................................ 7

    Group ............................................................................................................................................................. 8

    Group History ................................................................................................................................................. 8

    History Type ................................................................................................................................................... 9

    Role ................................................................................................................................................................ 9

    Alternating Role ............................................................................................................................................ 10

    Beispiele ........................................................................................................................................................... 11

    Sequenzdiagramme ...................................................................................................................................... 11

    Test-Beispiel: ............................................................................................................................................ 12

    Design Pattern .............................................................................................................................................. 13

    Alternating Role........................................................................................................................................ 13

    Copy Type ................................................................................................................................................. 14

    List Pattern ............................................................................................................................................... 14

    Construction Group .................................................................................................................................. 14

    Group ....................................................................................................................................................... 15

    Test-Beispiele ........................................................................................................................................... 15

    Test-Fragen ................................................................................................................................................... 16

  • SYP Zusammenfassung Markus Paller Seite 2 von 16

    Sequenzdiagramm

    Szenario Sequenz von Verarbeitungsschritten, die unter bestimmten Bedingungen auszufhren ist

    Schritte sollen das Hauptziel des Akteurs realisieren und entsprechendes Ergebnis liefern

    Beginnen mit auslsendem Ereignis und werden fortgesetzt, bis das Ziel erreicht ist oder

    aufgegeben wird

    Geschftsprozess und Szenario Geschftsprozess wird durch Kollektion (Sammlung) von Szenarien dokumentiert

    Jedes Szenario wird durch eine oder mehrere Bedingungen definiert, die zu einem speziellen

    Ablauf des Geschftsprozesses fhren

    Zwei Kategorien von Szenarios:

    o Erfolgreiche Bearbeitung des Geschftsprozesses

    o Fehlschlag

    Notation Szenario Szenarien werden durch Interaktionsdiagramme modelliert

    Zwei Arten von Diagrammen

    o Sequenzdiagramm

    o Kollaborationsdiagramm

    Sequenzdiagramm Zwei Dimensionen

    o Vertikal: Zeit

    o Horizontal: Objekte

    Objekt

    o Objektsymbol

    o Vertikal gestrichelte Linie (Objektlinie)

    Bedingung

    o [] Operation()

    Wiederholung

    o *Operation()

    o *[Bedingung] Operation()

  • SYP Zusammenfassung Markus Paller Seite 3 von 16

    Classes

    Introduction Class Diagram

    o Static model

    o Showing

    Classes (attributes)

    Associations

    Inheritance

    o Operations will be added after the diagram is established

    Separate Class Diagram for each Use Case

    Model creation is based on the appropriate Abstraction Level

    Base Information material for identification of classes

    o Use Cases

    o Formulars describing a working process

    o Lists

    o Documents

    Constructive steps to identify classes Analysis of Documents

    o Attributes gathered to classes

    o Bottom-up Method

    Class = Unity of Attributes

    o Find associations

    Description of Use Cases

    o Top-down Method

    Find classes and then the attributes

    o What are candidates for classes (nouns)

    Classification by Categories

    o A person can have several roles in a system

    Each role is a class

    o Actions that store Data

    Money transaction in a bank

    o Further Categories

    Things, Organisations, Container, Catalogue, Event, Contracts

    Analytical steps to validate classes Class Name

    o Make a class diagram understandable

    o Express the sum of all attributes

    Degree of Abstraction

    o Neither too many nor too few numbers of classes

    o Define class methods, that belong to all methods

  • SYP Zusammenfassung Markus Paller Seite 4 von 16

    Associations

    Goal Find the necessary associations in a Use Case that its Objects can accept their responsibilities

    Just draw lines between classes

    Find the multiplicities of the associations

    Specify the associations

    o Simple association

    o Aggregation/Composition

    Constructive Steps to Identify Associations Analysis of the Document

    o Which Objects are in relation (association)

    Categories

    o Is A a component of B?

    o Is A member of B?

    o Does A use B?

    Restrictions

    o Best way to find restrictions: Object Diagram

    o Sequence is relevant: {ordered}

    o Two or more association: {or} or {subset}

    Analytical Steps to Validate Associations Role of the Association

    o Check the role of each association in a class diagram

    o Name the association

    1:1 Association: 2 objects must be modelled, if

    o An association can be changed (optional)

    o B