swen 262
play

SWEN 262 Engineering of Software Subsystems Noun & Verb - PowerPoint PPT Presentation

SWEN 262 Engineering of Software Subsystems Noun & Verb Analysis Nouns & Verbs Breaking a large problem down into a class structure is referred to as class decomposition . Analyzing the nouns and verbs in the problem


  1. SWEN 262 Engineering of Software Subsystems Noun & Verb Analysis

  2. Nouns & Verbs Breaking a large problem down into a class ● structure is referred to as class decomposition . Analyzing the nouns and verbs in the problem ● statement can be the first step in creating a class decomposition. Nouns may represent: ● Classes ○ Specializations (i.e. subclasses) ○ Attributes (i.e. fields) ○ Data elements ○ Verbs may represent: ● Services (i.e. methods) provided by a class ○ Services used by a class ○

  3. Intentional Analysis An intentional analysis goes beyond simply ● listing the nouns and verbs and provides more guidance. Using structure and annotating the nouns and ● verbs list moves you toward a class decomposition. This helps yield a class structure that is ● We do typically begin by highlighting isomorphic to the world view of the problem the nouns and verbs in the original problem statement, but this is just the domain. first step. It also helps identify the location for ● services/responsibilities. Let’s take a look at a detailed example.

  4. A Restaurant Reservation System You are designing a restaurant reservation system. Each restaurant has information about its location, type of food, hours of operation, and reservations. The restaurants are broken up into regular, catering, and take-out where making a reservation means a different thing for each category of restaurant. Diners will be able to use the system either when logged into their account or as a guest. Diners, either as guests or logged in users, can make reservations. Reservations will be saved to a user's account if they are logged in. Logged in users can also view, modify, or delete reservations in their account. A user's account will store a name, rewards points, and their upcoming and past reservations. Restaurant users will have an account which can view, modify, or delete any reservation made for their restaurant. The restaurant user can also complete a reservation when diners arrive. All users will authenticate using a password or Google login.

  5. You do not need to highlight the same (or Step 1 - Identify the Nouns similar) nouns more than once. You are designing a restaurant reservation system. Each restaurant has Some nouns may obviously not make information about its location, type of food, hours of operation, and it into the design, reservations. The restaurants are broken up into regular, catering, and but be thorough. take-out where making a reservation means a different thing for each category of restaurant. Diners will be able to use the system either when logged into their account or as a guest. Diners, either as guests or logged in users, can make reservations. Reservations will be saved to a user's account if they are logged in. Logged in users can also view, modify, or delete reservations in their account. A user's account will store a name, rewards points, and their upcoming and past reservations. Restaurant users will have an account which can view, modify, or delete any reservation made for their restaurant. The restaurant user can also complete a reservation when diners arrive. All users will authenticate using a password or Google login.

  6. Nouns Verbs You Initial Noun List restaurant reservation system Iiformation List all of the nouns in the left ● location column of a two-column table. type of food Put each noun in its own row in the ○ hours of operation regular table. catering take-out thing category of restaurant diners account guest logged in user name rewards points password Google login

  7. Nouns Verbs Step 2 - Identify You restaurant [regular, catering, take-out] Here, specializations are Specializations shown in red just to reservation make them more visually system distinctive. Iiformation location Identify the nouns that ● type of food might be specializations of hours of operation other nouns. regular In your assignments, do catering not remove the rows, Put the specializing word in ○ but use shading to show take-out square brackets ([]) next to the that they are eliminated. thing noun it is specializing. category of restaurant If the noun has no other use ○ diners than its specialization, remove account its row from the table. guest User [logged in, guest] You may also combine name or rearrange nouns to rewards points create specializations password that make sense. Google login

  8. Step 3 - Identify Nouns Verbs Attributes You restaurant [regular, catering, take-out] Here again color is used (location, type of food, hours of operation, reservations) just to make the reservation associations visually Identify nouns that may be: ● distinctive. system Attributes of other nouns ○ Iiformation Properties of other nouns ○ location Again, in your Information/data owned by other type of food ○ assignments, you should hours of operation nouns. not delete the rows, but thing Connect the nouns together. use shading. ● diners Put the associated noun in ○ account parentheses (()) next to the noun it User [logged in, guest] (name, rewards points, password, Google login, is associated with. reservations) Remove the associated nouns row ○ name rewards points only if it is a primitive data type. Err password in the direction of keeping nouns in Google login the list.

  9. Interlude - Domain Analysis At this point you have completed the initial ● noun analysis. Before moving forward, it is a good idea to use your ○ noun analysis to create a domain model. As you recall, the domain model is a mechanism for ○ establishing a shared understanding with your customer/domain expert/product owner before digging into class design. The table that you have created has much of the ○ information that you need to build the domain model. For the purposes of this exercise, we will assume that the team settled on As a result of the conversation with your product owner, ○ this simple domain model and move you may revise the table before continuing. on.

  10. Catering Regular Take-Out makes Restaurant reservations at location * type of food hours of operation 1 tracks * * User Reservation name * 1 rewards points password creates, updates Google login Logged In Guest

  11. Step 4 - Identify the Verbs You are designing a restaurant reservation system. Each restaurant has Just as with nouns, some verbs may information about its location, type of food, hours of operation, and obviously not make reservations. The restaurants are broken up into regular, catering, and it into the design, but be thorough. take-out where making a reservation means a different thing for each category of restaurant. Diners will be able to use the system either when logged into their account or as a guest. Diners, either as guests or logged in users, can make reservations. Reservations will be saved to a user's You may want to highlight the same account if they are logged in. Logged in users can also view, modify, or verb more than delete reservations in their account. A user's account will store a name, once if it appears in different contexts. rewards points, and their upcoming and past reservations. Restaurant users will have an account which can view, modify, or delete any reservation made for their restaurant. The restaurant user can also complete a reservation when diners arrive. All users will authenticate using a password or Google login.

  12. Step 4 - Identify the Verbs You are designing a restaurant reservation system. Each restaurant has information about its location, type of food, hours of operation, and reservations. The restaurants are broken up into regular, catering, and take-out where making a reservation means a different thing for each category of restaurant. Diners will be able to use the system either when logged into their account or as a guest. Diners, either as guests or logged in users, can make reservations. Reservations will be saved to a user's account if they are logged in. Logged in users can also view, modify, or delete reservations in their account. A user's account will store a name, rewards points, and their upcoming and past reservations. Restaurant users will have an account which can view, modify, or delete any reservation made for their restaurant. The restaurant user can also complete a reservation when diners arrive. All users will authenticate using a password or Google login.

  13. Object noun Expressing Verbs Verb. (receiver). Subject noun (doer). You are designing a restaurant reservation system. For each verb, express its use in a ● Restaurant has information phrase of the form subject-noun verb Diners are able to use system object-noun. Diners make reservations The subject noun invokes the action (the doer). ○ Reservations will be saved (by the user? system?) The object noun has the action performed on it ○ (the receiver). User saves reservations to account Use the active voice for the verb. ● User views/modifies/deletes reservations If it is in the passive voice, rephrase it. ○ (Restaurant) user completes reservation Users authenticate with password Users authenticate with Google login

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend