Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

Hörsaalübung Use Cases mit selbstständigen Extend-Use-Case

Ähnliche Präsentationen


Präsentation zum Thema: "Hörsaalübung Use Cases mit selbstständigen Extend-Use-Case"—  Präsentation transkript:

1 Hörsaalübung Use Cases mit selbstständigen Extend-Use-Case
Hörsaalübung 2: Use Cases II Hörsaalübung Use Cases mit selbstständigen Extend-Use-Case Die Bedienung der Stationstasten eines Autoradios soll wie allgemein üblich implementiert werden die "Sonder-Reaktion" auf bereits gespeicherte Stationstasten ist optional und soll als Extend ausgelagert werden Füllen Sie die Use Case Formulare für Base Use Case und Extend Use Case entsprechend aus und erstellen Sie ein Use Case Diagramm: Base Use Case: Wird eine Stationstaste lange gedrückt, wird der aktuell gehörte Sender auf der gedrückten Stationstaste gespeichert und es ertönt ein kurzer Bestätigungs-Piepton. Extend Use Case: Wenn der Sender bereits auf einer Stationstaste abgespeichert ist, kommt eine entsprechende Meldung und der Sender wird dann nicht gespeichert. Der Piepton ertönt trotzdem. Der gehörte Sender spielt jedenfalls weiter Hinweis: Betrachten Sie das lange Drücken der Stationstaste als eine spezielle Eingabe. OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

2 Zur Erinnerung: Extend und Include: Verknüpfung
Hörsaalübung 2: Use Cases II Zur Erinnerung: Extend und Include: Verknüpfung Use Case Name <name = Use Case-Goal> Primary Actor <a role name for the primary actor or description> Further Actors <Role Name for further actors or description> Stakeholders and their Interests <list of stakeholders and their key interests in the use case> Success Guarantees <the state of the world if goal succeeds> Minimal Guarantees <how the interests are protected under all exits> Trigger <what starts the Use Case (may be a time event)> Extend Use Case for Base UC: If the described Use Case is an Extend Use Case to one or more Base UCs: For each Base Use Case please specify: Name of Base Use Cases that are extended: Condition: <Condition> Extension Point <step# or label in Base UC> Return Point: <step# in Base Use Case > Condition: Extension Point (in Base UC) Return Point (in Base UC): Basic Course (Main Success Scenario) <step #> ... <step #> Include: <Name of Included Use Case> Use Case Name <name = Use Case-Goal> Primary Actor <a role name for the primary actor or description> Further Actors <Role Name for further actors or description> Stakeholders and their Interests <list of stakeholders and their key interests in the use case> Success Guarantees <the state of the world if goal succeeds> Minimal Guarantees <how the interests are protected under all exits> Trigger <what starts the Use Case (may be a time event)> Extend Use Case for Base UC: If the described Use Case is an Extend Use Case to one or more Base UCs: For each Base Use Case please specify: Name of Base Use Cases that are extended: Condition: <Condition> Extension Point <step# or label in Base UC> Return Point: <step# in Base Use Case > Condition: Extension Point (in Base UC) Return Point (in Base UC): Basic Course (Main Success Scenario) <step # Extend Label> ... <step #> ... <step #> Include: <Name of Included Use Case> Extend Use Case Use Case Name <name = Use Case-Goal> Primary Actor <a role name for the primary actor or description> Further Actors <Role Name for further actors or description> Stakeholders and their Interests <list of stakeholders and their key interests in the use case> Success Guarantees <the state of the world if goal succeeds> Minimal Guarantees <how the interests are protected under all exits> Trigger <what starts the Use Case (may be a time event)> Extend Use Case for Base UC: If the described Use Case is an Extend Use Case to one or more Base UCs: For each Base Use Case please specify: Name of Base Use Cases that are extended: Condition: <Condition> Extension Point <step# or label in Base UC> Return Point: <step# in Base Use Case > Condition: Extension Point (in Base UC) Return Point (in Base UC): Basic Course (Main Success Scenario) <step #> ... <step #> Include: <Name of Included Use Case> Extend-Ablauf Include Use Case Verweis auf Include-Ablauf OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

3 Zur Erinnerung: Use Case Diagramm "Geldautomat"
Hörsaalübung 2: Use Cases II Zur Erinnerung: Use Case Diagramm "Geldautomat" Geld abheben Geldautomat Bankkunde Servicetechniker System Fehlerbenach-richtigung schicken Kontostand abfragen Remote den Status abfragen Geld einfüllen Hardware Selbsttest Fehlerprotokoll auslesen System erkennt Fehler Geldbote Bankver-antwortlicher für Geldautomat OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

4 Bisheriger Use Case mit Alternative Course
Hörsaalübung 2: Use Cases II Bisheriger Use Case mit Alternative Course Use Case Name Primary Actor Further Actors Stakeh & Inter Success Guar. Minimal Guar. Trigger Basic Course (Main Success Scenario) Alternative Course Sender auf Stationstaste abspeichern Radiohörer -- Hersteller: Will, dass Radiokäufer bequem Sendetasten Programmieren kann, Radiobenutzer: Will bequem Sendetasten programmieren Der aktuell gehörte Sender ist auf irgend einer Stationstaste abgespeichert Die restlichen Tasteneinstellungen bleiben erhalten, Musik spielt weiter Der Radiobenutzer hält eine Stationstaste S lange gedrückt Radiobenutzer hält eine Stationstaste S lange gedrückt System findet heraus, dass Station auf keiner anderen Stationstaste abgesp. System speichert den aktuell gehörten Sender auf der Taste S ab Das System erzeugt einen Bestätigungspiepton 2a: Der zu speichernde Sender ist bereits auf einer Stationstaste abgespeichert. 2a1: System gibt Meldung "Duplikat" aus (2a2: System belässt den alten Sender auf der Taste S) 2a3: Gehe zurück nach 4. Success Guar. ist erreicht OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

5 Ihre Lösung: Base Use Case
Hörsaalübung 2: Use Cases II Ihre Lösung: Base Use Case Use Case Name Primary Actor Further Actors Stakeholders and their Interests Success Guarantees Minimal Guarantees Trigger Extend UC for Base UC: Condition: Extension Point (in Base UC) Return Point (in Base UC): Basic Course (Main Success Scenario) Alternative Course OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

6 Ihre Lösung: Extend Use Case
Hörsaalübung 2: Use Cases II Ihre Lösung: Extend Use Case Use Case Name Primary Actor Further Actors Stakeholders and their Interests Success Guarantees Minimal Guarantees Trigger Extend UC for Base UC: Condition: Extension Point (in Base UC) Return Point (in Base UC): Basic Course (Main Success Scenario) Alternative Course OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

7 Ihre Lösung: Use Case Diagramm
Hörsaalübung 2: Use Cases II Ihre Lösung: Use Case Diagramm OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik

8 Ihre Kommentare und Fragen
Hörsaalübung 2: Use Cases II Ihre Kommentare und Fragen OOAD, Prof. Dr. Ralf Hahn, Prof. Dr. Wolfgang Weber, SS2009, h_da, Fachbereich Informatik


Herunterladen ppt "Hörsaalübung Use Cases mit selbstständigen Extend-Use-Case"

Ähnliche Präsentationen


Google-Anzeigen