UML Diagram Types Object Diagram

UML Diagram Types Object Diagram

UML Diagram Types Dynamic Models Structural Models n activity diagrams n class diagrams n statechart diagrams n object diagrams n interaction diagrams n packages – sequence diagrams Architectural Models – collaboration n component diagrams diagrams n deployment diagrams n use case diagrams Structural Family: Object Diagram def’n: shows a set of objects and their relationships at a point in time n model instances of things contained in class diagram n static frame of dynamic storyboard represented by interaction diagram n abstraction:instance as 1:many Object Diagram Contents of Object Diagram n objects: instance of a class n links: relationship between objects Convention n rectangle Object Naming n name – unique instance name:abstraction name – unique instance name :package name::abstraction name – name is underlined n anonymous: no unique instance name (e.g., :Frame) n orphan: no abstraction name (e.g., agent:) n sometimes, just a simple name is appropriate if the class is obvious in the given context n for simplicity, always name instance, class, and package (if package exists) Common Modeling Techniques n freeze a running system, set of objects, each in a specific state, each in a particular relationship to other objects n especially useful for modeling complex data structures n cannot completely specify the object structure of a system To Model n Identify mechanism to model n Identify classes, interfaces, other elements and identify relationships n Consider a scenario and freeze at a moment in time n Expose state and attribute values n Expose links, representing instances of associations To Reverse Engineer n Choose target system n Stop execution at a moment in time (perhaps from a scenario) n Identify interesting behavior in freeze- frame n Expose states, links, attributes values Hints and Tips n Focus on one aspect of static view n Remember, that one frame of a dynamic storyboard is represented n Ensure that object diagram is minimalist. That is, it contains only relevant information.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us