Contents. Centralized 1. Class Diagram 1. Sequence Diag
Added on - 19 Sep 2019
11
Pages
637
Words
249
Views
0
Downloads
Trusted by +2 million users,
assist thousands of students everyday
assist thousands of students everyday
Showing pages 1 to 4 of 11 pages
ContentsCentralized.......................................................................................................................................1Class Diagram..............................................................................................................................1Sequence Diagram...........................................................................................................................6
CentralizedClass Diagram
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 THENS = 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) thenAccountData 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}

You’re reading a preview
To View Complete Document
Become a Desklib Library Member.
Subscribe to our plans