上游充通大学 Generation of a class diagram from flow of events SHANGHAI JIAO TONG UNIVERSITY Customer Flow of events: customer enters store buy ⊕ The customer enters the store to buy toy store atert has to be a toy that his daughter likes and it must.cost less enter( lesthanapo suroo He tries a videogame, videogame daughter which uses a data glove and a head- age mounted display.He likes it. suitable An assistant helps him. The depends suitability of the game depends on toy age the age of the child.His daughter price buy( is only 3 years old.The assistant type of toy like( recommends another type of toy, boardgame namely a boardgame.The customer buy videogame boardgame the game and leaves the store Software Engineering
Software Engineering Generation of a class diagram from flow of events The customer enters the store to buy a toy. It has to be a toy that his daughter likes and it must cost less than 50 Euro. He tries a videogame, which uses a data glove and a headmounted display. He likes it. An assistant helps him. The suitability of the game depends on the age of the child. His daughter is only 3 years old. The assistant recommends another type of toy, namely a boardgame. The customer buy the game and leaves the store type of toy customer depends enters store Customer ? enter() toy daughter suitable * less than 50 Euro store enter() daughter age toy buy() videogame boardgame toy age videogame daughter boardgame Flow of events: toy price buy() like() buy
上游充通大¥ ReportEmergency use case flow of events SHANGHAI JIAO TONG UNIVERSITY Location Use case description Field Officer station 1.The Fieldofficer activates the "Report Emergency"function of her terminal. 2.FRIEND responds by presenting a form to the officer.The form includes an emergency type menu(general emergency,fire, transportation),a location,incident description,resource request, and hazardous material fields. 3.The Fieldofficer fills the form by specifying minimally the emergency type and description fields.The Fieldofficer may also describe possible responses to the emergency situation and request specific resources.Once the form is completed,the Fieldofficer submits the form by pressing the "Send Report" button,at which point the Dispatcher is notified. Dispatcher station 4.The Dispatcher is notified of a new incident report by a popup dialog.The Dispatcher reviews the submitted information and creates an Incident in the database by invoking the OpenIncident use case.All the information contained in the Fieldofficer's form is automatically included in the Incident. The Dispatcher selects a response by allocating resources to the Incident(with the AllocateResources use case)and acknowledges the emergency report by sending a short message to the Fieldofficer. Field Officer station 5.The Fieldofficer receives the acknowledgment and the selected response. ring
Software Engineering ReportEmergency use case flow of events
上游充通大学 Abbott's technique for mapping parts of speech to SHANGHAI JIAO TONG UNIVERSITY model components Part of speech Model Component Examples Proper noun Object Alice Common noun Class FieldOfficer Doing verb Operation Creates,submits,selects Being verb Inheritance Is a kind of,is one of either Having verb Aggregation Has,consists of, includes Modal verb Constraints Must be Adjective Attribute Incident description Software Engineering
Software Engineering Abbott’s technique for mapping parts of speech to model components Part of speech Model Component Examples Proper noun Object Alice Common noun Class FieldOfficer Doing verb Operation Creates, submits, selects Being verb Inheritance Is a kind of, is one of either Having verb Aggregation Has, consists of, includes Modal verb Constraints Must be Adjective Attribute Incident description
上通大1)Heuristics for identifying entity objects SHANGHAI JIAO TONG UNIVERSITY Terms that developers or users need to clarify in order to understand the use case Recurring nouns in the user cases (e.g., Incident) Real-world entities that the system needs to track (e.g.,FieldOfficer,Dispatcher,Resource) Real-world activities that the system need to track(e.g,EmergencyOperationsPlan) Data sources or sinks (e.g,Printer) Software Engineering
Software Engineering (1) Heuristics for identifying entity objects Terms that developers or users need to clarify in order to understand the use case Recurring nouns in the user cases (e.g., Incident) Real-world entities that the system needs to track (e.g., FieldOfficer, Dispatcher, Resource) Real-world activities that the system need to track (e.g, EmergencyOperationsPlan) Data sources or sinks (e.g, Printer)
上降充大2)Heuristics for Identifying boundary objects SHANGHAI JIAO TONG UNIVERSITY Identify user interface controls that the user needs to initiate the use case (e.g.,ReportEmergencyButton) Identify forms the users needs to enter data into the system (e.g.,EmergencyReportForm) Identify notices and messages the system uses to respond to the user(e.g.,AcknowledgementNotice) When multiple actors are involved in a use case,identify actor terminals to refer to the user interface under consideration (e.g.,DispatcherStation) Software Engineering
Software Engineering (2) Heuristics for Identifying boundary objects Identify user interface controls that the user needs to initiate the use case (e.g., ReportEmergencyButton) Identify forms the users needs to enter data into the system (e.g., EmergencyReportForm) Identify notices and messages the system uses to respond to the user (e.g., AcknowledgementNotice) When multiple actors are involved in a use case, identify actor terminals to refer to the user interface under consideration (e.g., DispatcherStation)