Class Diagram. Class Account:. S// point to current sta

Added on - 16 Sep 2019

  • Dissertation

    type

  • 7

    pages

  • 383

    words

  • 124

    views

  • 0

    downloads

Showing pages 1 to 3 of 7 pages
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 THENS = LS[1] //change ATM state from “Start” to “Idle”ENDIF}Open(int p, int y, int a){If(currState == 1) thenAccountData 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);
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document