OOP G5

Cards (13)

  • UML sequence diagram
    A type of interaction diagram that shows how objects interact in a particular scenario over time
  • UML sequence diagram
    • Depicts the sequence of messages exchanged between objects within a system
    • Highlights the order of interactions and the flow of control
  • UML sequence diagram
    Commonly used in software development to visualize the behavior of systems and to design or understand the logic of complex interactions between components or objects
  • Objects/Participants
    Depicted as rectangular boxes along the top of the diagram, representing the various entities or components within the system that interact with each other
  • Lifelines
    Vertical lines associated with each object, representing the lifespan of the object during the sequence of interactions
  • Messages
    • Depicted as arrows between objects and lifelines, showing the flow of communication or interaction
    • Types of messages: Synchronous (solid arrows), Asynchronous (dashed arrows), Create (special arrow with filled circle), Destroy (special arrow with X)
  • Activation Bars
    Horizontal bars that appear on lifelines to show when an object is actively processing a message, indicating the period during which an object is active and executing a particular message or operation
  • Optional Elements
    • Return messages, loops, conditional branches, and combined fragments, helping represent complex scenarios, control flows, and decision-making processes within the system
  • UML sequence diagrams provide a visual representation of how objects interact and communicate with each other over time, helping software developers, designers, and analysts understand and design the behavior of systems more effectively
  • Synchronous Messages
    Represented by solid arrows, synchronous messages indicate that the sender object waits for a response from the receiver object before proceeding
  • Asynchronous Messages

    Represented by dashed arrows, asynchronous messages indicate that the sender object continues its execution without waiting for a response from the receiver object.
  • Create Messages
    Represented by a special arrow with a filled circle, create messages indicate the creation of a new object.
  • Destroy Messages

    Represented by a special arrow with an X at the end, destroy messages indicate the destruction or deletion of an object.