Ask a question from expert

Ask now

ATM System Class and Sequence Diagrams

11 Pages637 Words173 Views
   

Added on  2019-09-19

About This Document

This article presents the class and sequence diagrams of an ATM system. The class diagram includes classes such as Account, AccountData, ATMState, Start, Idle, and Ready. The sequence diagram shows the sequence of operations such as OPEN, LOGIN, PIN, DEPOSIT, BALANCE, suspend, and close.

ATM System Class and Sequence Diagrams

   Added on 2019-09-19

BookmarkShareRelated Documents
ContentsCentralized.......................................................................................................................................1Class Diagram..............................................................................................................................1Sequence Diagram...........................................................................................................................6
ATM System Class and Sequence Diagrams_1
CentralizedClass Diagram
ATM System Class and Sequence Diagrams_2
ATM System Class and Sequence Diagrams_3
Class Account:S// point to current stateLS[0] // point to start stateLS[1] // point to idle stateLS[2] // point to ready stateOperations: create(){ S->create() currState = S.getID() IF currState == 0 THEN S = LS[1] //change ATM state from “Start” to “Idle” ENDIF }Open(int p, int y, int a){S->open(p,y,a);currState = S.getID() If(currState == 1) then AccountData ad = new AccountData(p,y,a,”active”); End if}Pin(int p){S->pin(p)currState = S.getID() IF( currState = 1 && p == ad.getPint()) Set S = LS[2]; END IF}
ATM System Class and Sequence Diagrams_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Contents. Decentralized 2. Class Diagram 2. Sequence Di
|12
|463
|528

Class Diagram. Class Account:. S// point to current sta
|7
|383
|606

Class Diagram for System Operations with Sequence Diagram and Examples
|14
|657
|396

ICT 103 Assignment on System Analysis and Design
|14
|519
|21