1 / 34

Wykład 4 Notacja modelu obiektowego - dodatek

Wykład 4 Notacja modelu obiektowego - dodatek. Object Model Notation. Class Name. Class Name. attribute. attribute : data_type. attribute : data_type := init_value. operation. operation ( arg_list ) : return type. Class. Superclass. Subclass-1. Subclass-2.

valora
Download Presentation

Wykład 4 Notacja modelu obiektowego - dodatek

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Wykład 4 Notacja modelu obiektowego - dodatek

  2. Object Model Notation

  3. Class Name Class Name attribute attribute : data_type attribute : data_type := init_value ... operation operation ( arg_list ) : return type Class

  4. Superclass Subclass-1 Subclass-2 Generalization - Inheritance

  5. Assembly Class Part-1-Class Part-2-Class Assembly Class Part-1-Class Part-2-Class Aggregation

  6. Object Instances/ Instantiation relationship ( Class Name ) attribute_name = value ( Class Name ) ( Class Name ) Class Name

  7. Association Association Name Class-1 Class2 role-1 role-2 Association Name 1 * Class-1 Class2 qualifier role-2 role-1

  8. Exactly one Class Many (zero or more) Class Optional (zero or one) Class 1+ One or more Class 1-2, 4 Numerically specified Class Multiplicity of Association

  9. {ordering} Class Ordering

  10. Link Attribute Association Name Class-1 Class-2 link attribute ...

  11. Class-2 Class-1 Association Name role-2 role-1 role-3 Class-3 Ternary association

  12. Superclass Operation is abstract in the superclass operation {abstract} Subclass-1 Subclass-2 operation operation Subclasses must provide concrete implementation of operation Abstract operation

  13. Association as Class Class-1 Class-2 Association Name link attribute ... link operation

  14. Superclass Subclass-1 Subclass-2 … More subclasses exist Generalization Properties

  15. Multiple Inheritance Superclass-2 Superclass-1 ... Subclass ... Superclass Discriminator is an attribute whose value differentiates between subclasses Discriminator Subclass-1 Subclass-2

  16. Class Name Class Name $attribute /attribute $operation Class Name Class Attributes and Class Operations Derived Attribute Derived Class Derived Association Class Name Class Name

  17. Class-1 attrib-1 attrib-2 { attrib-1 0} Propagation of Operations Class-1 Class-2 operation operation operation Constraints on Objects Constraints between Associations A1 Class Name {subset} Class Name A2

  18. Dynamic Model Notation

  19. State-1 State-2 event State-2 State-1 event ( attribute ) Event causes Transition between States Event with Attribute

  20. Initial State Itermediate State result State-2 State-1 Event/action Initial and Final States Action on a Transition

  21. event[ guard ] State-2 State-1 event1/ event2 State-2 State-1 Guarded Transition Output Event on Transaction Sending an event to another object event1 State-2 State-1 event2 Class-3

  22. State Name entry / entry-action do : activity-A do : event-1/action-1 ... exit / exit-action Actions and Activity while in a State

  23. State Generalization (Nesting) Superstate event1 Substate-1 Substate-2 event3 event2

  24. Superstate event1 Substate-1 Substate-3 Substate-2 Substate-4 event2 Concurrent Subdiagrams

  25. Superstate event1 Substate-1 Substate-3 event3 event0 event2 event4 Substate-2 Substate-4 Splitting of control/Synchronization of control

  26. Functional Model Notation

  27. Process name data name process-1 process-2 Process Data Flow between Processes

  28. Name of data store Name of data store Data Store or File Data flow that Results in a Data Store

  29. d1 d2 Actor-1 Actor-2 process-2 boolean result process-1 process-2 Actor objects (as Source or Sink of Data) Control Flow

  30. Data store d1 process Data store d1 process-1 Access of Data Store Value Update of Data Store Value

  31. Data store d1 process Access and Update Store Value

  32. d1 composite d2 d1 Composition of Data Value Duplication of Data Value

  33. d1 composite d2 Decomposition of Data Value

  34. Projekt • Plan Projektu • Analiza • Projektowanie systemowe • Projektowanie obiektowe - Select • Process Hierarchy Diagrams • Process Thread Diagrams • Use Case Diagrams • Class Diagrams • Object Collaborations • Object Sequence Diagrams • State Diagrams • Implementacja

More Related