Functional Models and Use-Case Diagrams
18 Questions
2 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary purpose of a use-case diagram?

  • To support logical modeling of business processes
  • To model the flow of objects in a process
  • To describe the basic functions of an information system (correct)
  • To represent execution paths in a workflow
  • Which nodes in an activity diagram are used to control the flow of activities?

  • Fork node and Join node
  • Control Flows and Object Flows
  • Initial node and Decision node
  • Control Nodes (correct)
  • What does an initial node represent in an activity diagram?

  • The beginning of the set of actions (correct)
  • A branch point in execution
  • The end of all activities
  • A point to merge execution paths
  • Which statement about activity diagrams is true?

    <p>They describe processes in a general and abstract manner</p> Signup and view all the answers

    What is the function of a merge node in an activity diagram?

    <p>To rejoin multiple paths into a single flow</p> Signup and view all the answers

    What is the purpose of performing a walkthrough in the use-case verification process?

    <p>To ensure each action in the activity diagram is recorded in the use-case</p> Signup and view all the answers

    Which rule is NOT part of the verification and validation process for use-cases?

    <p>Multiple descriptions may exist for a single use-case</p> Signup and view all the answers

    What is the role of the recorder (scribe) in a use-case review meeting?

    <p>To document errors and take notes during discussions</p> Signup and view all the answers

    What should be ensured about the sequence of the use-case description?

    <p>It must follow the sequential order of the activity diagram</p> Signup and view all the answers

    Which statement about the relationships depicted in the use-case description is true?

    <p>All relationships must be visually represented on the use-case diagram</p> Signup and view all the answers

    What is the primary function of swim lanes in an activity diagram?

    <p>To assign responsibility to objects or individuals performing activities</p> Signup and view all the answers

    Which of the following is NOT a guideline for creating activity diagrams?

    <p>Use freehand drawing for flexibility</p> Signup and view all the answers

    What aspect does a use case primarily depict?

    <p>The user activities and system responses</p> Signup and view all the answers

    Which of the following describes a normal flow in a use case?

    <p>The standard sequence of activities performed</p> Signup and view all the answers

    What is a characteristic of sub-flows in a use case?

    <p>They simplify normal flows by breaking them down</p> Signup and view all the answers

    What is represented by the 'Extend' relationship in a use case?

    <p>A new use case that adds optional behavior to an existing use case</p> Signup and view all the answers

    Which of the following guidelines is important when writing use cases?

    <p>Writing in the form of subject-verb-direct object</p> Signup and view all the answers

    What should be listed in the overview of a use-case description?

    <p>Primary actor and its type</p> Signup and view all the answers

    Study Notes

    Functional Models

    • Describe business processes and the interaction of an information system with its environment.
    • Used in object-oriented system development to describe functionality.
    • Two types of functional models exist: use-case diagrams and activity diagrams.
    • The models are logical, independent of how they are implemented (manual or computerized).

    Use-Case Diagrams

    • Describe the basic functions of an information system.
    • Provide a simple, high-level view of the system's functionality.
    • Drawn when gathering and defining requirements.
    • Elements:
      • Actors: represent users or external systems.
      • Use Cases: represent specific functions or tasks.
      • Relationships: connections between actors and use cases (association, extend, include, generalization).

    Activity Diagrams

    • Support the logical modeling of business processes and workflow.
    • Depict the sequence of activities in a process.
    • Abstract and describe processes in general terms.
    • Model behavior independently of objects, applicable to any type of process.
    • Elements:
      • Activity Nodes: represent individual activities.
      • Object Nodes: represent the flow of information.
      • Control Flows: model execution paths.
      • Object Flows: model the flow of objects.
      • Control Nodes: 7 types.
      • Initial node: the beginning of the set of actions/activities.
      • Final-activity node: stops all actions/activities.
      • Final-flow node: stops one execution path but allows others to continue.
      • Decision node: represents a test to determine which path to use to continue.
      • Merge node: rejoins mutually exclusive execution paths.
      • Fork node: separates a single execution path into multiple parallel paths.
      • Join node: rejoins parallel execution paths.
      • Swim lanes: used to assign responsibility to objects or individuals.
      • Represent a separation of roles.

    Creating Activity Diagrams

    • Choose a previously identified business process.
    • Review requirements definition, use-case diagrams, and other documentation.
    • Identify the activities within the business process.
    • Identify control flows and nodes.
    • Identify object flows and nodes.
    • Lay out the diagram, minimizing crossing lines.

    Use Cases

    • The primary driver for UML diagramming techniques.
    • Depict activities performed by users.
    • Describe basic functions of the system:
      • What the user can do.
      • How the system responds.
    • Building blocks for continued design activities.
    • Each use-case describes only one function.

    Elements of a Use Case Description

    • Overview:
      • Name.
      • ID Number.
      • Type (overview or detail; essential or real).
      • Primary Actor.
      • Brief Description.
      • Importance Level.
      • Stakeholder(s).
      • Trigger(s).
    • Relationships:
      • Association: communication between the use case and actors.
      • Extend: extends the functionality of a use case.
      • Include: includes another use case.
      • Generalization: allows use cases to support inheritance.
    • Flow of events:
      • Normal flow: the usual set of activities.
      • Sub-flows: decomposed normal flows for simplicity.
      • Alternate or exceptional flows: those not considered the norm.
    • Optional characteristics: complexity, time, etc.

    Use Case Writing Guidelines

    1. Write in subject-verb-direct object format.
    2. Clarify the initiator of each step.
    3. Write from an independent observer's perspective.
    4. Maintain consistent abstraction levels.
    5. Ensure use cases have a sensible set of steps.
    6. Keep use cases simple.
    7. Write repeating instructions after the steps to be repeated.

    Creating Use-Case Descriptions

    1. Pick a high-priority use-case and create an overview:
      • List the primary actor.
      • Determine its type: overview, detail, essential, real.
      • List stakeholders and their interests.
      • Determine the importance level.
      • Briefly describe the use-case.
      • List what triggers the use-case.
      • List its relationship to other use-cases.
    2. Fill in the steps of the normal flow of events to complete the use-case.
    3. Ensure steps are not too complicated or long, maintain consistent size with other steps.
    4. Identify and write alternate or exceptional flows.
    5. Review the description for correctness.
    6. Iterate over all steps again.

    Verification & Validation of Use Cases

    • Performed by the development team and client.
    • Involves a walkthrough of the models and diagrams.
    • Facilitator schedules and sets up the meeting.
    • Presenter is responsible for the representation being reviewed.
    • Recorder takes notes and documents errors.

    Rules for Verification & Validation

    1. Ensure one recorded event in the flow of events for each action/activity on the activity diagram.
    2. All objects in an activity diagram should be mentioned in a use-case event.
    3. The sequence of events in the use-case description should match the sequence in the activity diagram.
    4. One and only one description for each use-case.
    5. All actors in a use-case description should be shown on the use-case diagram.
    6. Stakeholders in the use-case description may be shown on the use-case diagram (check local policy).
    7. All relationships in the use-case description should be depicted on the use-case diagram.
    8. All diagram-specific rules should be enforced.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Explore the concepts of functional models, including use-case and activity diagrams, which are essential for understanding business processes and system functionality. This quiz will help you grasp the roles of actors and use cases in defining requirements for information systems.

    More Like This

    Use Quizgecko on...
    Browser
    Browser