7
CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel debit credit card print receipt <include>

CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

Embed Size (px)

Citation preview

Page 1: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 1

Use Case diagram for the gas pump system

customer

creditcardcompany

read & validate credit card

select fuel options

dispense fuel

debit credit card

print receipt

<include>

Page 2: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 2

Context Diagram for an ATM system(used for both structured and object-oriented techniques)

Auto-tellersystemSecuritysystemMaintenancesystem

AccountdatabaseUsagedatabaseBranchaccountingsystemBranchcountersystem

Page 3: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 3

A context diagram for a patient information system in a hospital.

Includes image storage for x-rays and a patient admissions system.

patient informationsystem

image database

hospital admissionssystem

drug dispensingsystem

medicalrecordssystem

Page 4: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 4

DesignnamedescriptionC-dateM-dateLinknametypeNodenametype linkshas-links121 n

Labelnametexticon has-labelshas-labels 1n1nhas-linkshas-nodesis-a1n

1n11

Lacks details and need to be supplemented by DD

Page 5: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

Class Diagram:Part of a Library class hierarchy

Catalogue numberAcquisition dateCostTypeStatusNumber of copiesLibrary itemAcquire ()Catalogue ()Dispose ()Issue ()Return ()AuthorEditionPublication dateISBNBookYearIssueMagazineDirectorDate of releaseDistributorFilmVersionPlatformComputerprogramTitlePublisherPublished itemTitleMediumRecorded item

Name of object class

Class attributes

Object’s operations

Page 6: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 6

Class Diagram:Object aggregation

VideotapeTape ids.LecturenotesTextOHP slidesSlidesAssignmentCreditsSolutionsTextDiagramsExercises#Problems Description

Course titleNumberYearInstructorStudy pack

Page 7: CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read & validate credit card select fuel options dispense fuel

CSCC40 tutorial 9-B 7

State DiagramMicrowave oven modelFull power

Enableddo: operateoven

FullpowerHalfpower HalfpowerFullpower NumberTimerDooropenDoorclosedDoorclosed DooropenStart

do: set power = 600Half powerdo: set power = 300

Set timedo: get numberexit: set timeDisabled

OperationTimerCancelWaitingdo: display time

Waitingdo: display timedo: display 'Ready'do: display 'Waiting'