CSCC40 tutorial 9-B 1 Use Case diagram for the gas pump system customer credit card company read...

Preview:

Citation preview

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>

CSCC40 tutorial 9-B 2

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

Auto-tellersystemSecuritysystemMaintenancesystem

AccountdatabaseUsagedatabaseBranchaccountingsystemBranchcountersystem

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

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

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

CSCC40 tutorial 9-B 6

Class Diagram:Object aggregation

VideotapeTape ids.LecturenotesTextOHP slidesSlidesAssignmentCreditsSolutionsTextDiagramsExercises#Problems Description

Course titleNumberYearInstructorStudy pack

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'

Recommended