Tips and Tricks
Visual Paradigm for UML Topics

Identifying Classes from Problem Statements

In VP-UML, identifying classes from problem statements can be easily performed by dragging and dropping the highlighted word in the textual analysis to the candidate class window.

You can also easily create the designated models for each candidate class and can simply use the models for creating the class diagrams and use case diagrams.

Creating Textual Analysis

  1. Create a textual analysis by any of these 3 methods listed below.
    • Method 1 - Creating a textual analysis from the menu bar:

      On the menu, select File > New Diagram > Requirements Capturing > Textual Analysis. A new textual analysis will be created.
      identifying_classes_from_problem_statements-1.jpg

    • Method 2 – Creating a textual analysis from the toolbar:
      Click on the New Textual Analysis button identifying_classes_from_problem_statements-2.jpg from the toolbar. A new textual analysis will be created.
      identifying_classes_from_problem_statements-3.jpg

    • Method 3 – Creating a textual analysis from the Diagram Navigator:

      On the Diagram Navigator, right-click Textual Analysis, select Create Textual Analysis from the pop-up menu. A new textual analysis will be created.
      identifying_classes_from_problem_statements-4.jpg

  2. Add new problem statements into the text pane by any of these 3 methods listed here:
    • Method 1 – By typing directly into the text pane:

      Click on the text pane, and type the problem statements in the text pane.
      identifying_classes_from_problem_statements-5.jpg

    • Method 2 – By copying and pasting text from the system clipboard:

      You can copy the problem statements from any text into the clipboard then paste it to the text pane using the Paste identifying_classes_from_problem_statements-6.jpg button on the diagram palette.
      identifying_classes_from_problem_statements-7.jpg

    • Method 3 – By importing the text file:

      Click on Import Text File icon on the diagram palette. Select the text file that contains the problem statement at the pop-up dialog box. Click on the Open button in the dialog box to import the file (for example import file CCRentals). The problem statement is imported to the Textual Analysis text pane.
      identifying_classes_from_problem_statements-8.jpg

Identifying Candidate Classes for Creating Class Diagrams

  1. Create candidate class by highlighting the word in the textual analysis, dragging and dropping it to the window on the right. For example limousines and gasoline are the candidate classes. The candidate classes’ details are automatically created in the candidate list table.
    identifying_classes_from_problem_statements-9.jpg

  2. Right-click on the created classes, click on Create Class Model from the pop-up menu to create the class models.
    identifying_classes_from_problem_statements-10.jpg

  3. Open Class Repository tree, the limousines and gasoline are created in the repository.
    identifying_classes_from_problem_statements-11.jpg

  4. Create a new class diagram. Drag those 2 classes from the class repository to the class diagram. Limousines and Gasoline classes are created in the class diagram.
    identifying_classes_from_problem_statements-12.jpg

Identifying Actor and Use Case Candidate Classes for Creating Use Case Diagrams

  1. Create an actor candidate class by highlighting the word in the textual analysis, dragging and dropping it to the window on the right. For example customers is an actor candidate class.
    identifying_classes_from_problem_statements-13.jpg

  2. Right-click on the Customers candidate class and select Actor from the pop-up menu to change the candidate class type to actor candidate class.
    identifying_classes_from_problem_statements-14.jpg

  3. Right-click on the customer class, click on Create Actor Model from the pop-up menu to create the actor model.
    identifying_classes_from_problem_statements-15.jpg

  4. Create a use case candidate class by highlighting the word in the textual analysis, dragging and dropping it to the window on the right. For example select a car is a use case candidate class.
    identifying_classes_from_problem_statements-16.jpg

  5. Right-click on the select a car candidate class and select Use Case from the pop-up menu to change the candidate class type to use case candidate class.
    identifying_classes_from_problem_statements-17.jpg

  6. Right-click on the select a car class, click on Create Use Case Model from the pop-up menu to create the use case model.
    identifying_classes_from_problem_statements-18.jpg

  7. Open the model tree, the Customers actor model and select a car use case model is created in repository.
    identifying_classes_from_problem_statements-19.jpg

  8. Create a new use case diagram. Drag the Customers actor model and select a car use case model to the use case diagram. Customers actor and select a car use case are created in the use case diagram.
    identifying_classes_from_problem_statements-20.jpg

Related Articles

Resources

 
 
Last modified: 2005/12/01 00:48
 
 
Home | Recent Topics | Highlights | UML Diagrams | Tips and Tricks | Object-Relational Mapping
visual-paradigm.com Home | Training Center | UML Center | VP Gallery | Discussion Forum | UML Open Directory