Class Diagram. Class Account:. S// point to current sta
7 Pages383 Words606 Views
Added on 2019-09-16
BookmarkShareRelated Documents
Class 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 THEN S = LS[1] //change ATM state from “Start” to “Idle” ENDIF }Open(int p, int y, int a){ If(currState == 1) then AccountData ad = new AccountData(p,y,a,”active”); End if}Pin(int pin){ IF( currState = 1 && pin == ad.getPint()) Set S = LS[2]; END IF}Deposit(int d){ IF(currState = 2 ) Ad.deposit(d);
Found this document preview useful?
Related Documents
ATM System Class and Sequence Diagramslg...
|11
|637
|173
Contents. Decentralized 2. Class Diagram 2. Sequence Dilg...
|12
|463
|528
Class Diagram for System Operations with Sequence Diagram and Exampleslg...