Status.java
资源名称:ATM.zip [点击查看]
上传用户:ljt780218
上传日期:2022-07-30
资源大小:110k
文件大小:1k
源码类别:
金融证券系统
开发平台:
Java
- //<html><head><title>ATM Simulation Status Codes</title></head><body><h2>ATM Simulation Status Codes</h2><pre>
- /*
- * Example ATM simulation - file status.java
- *
- * This file declares a status code type that is returned by various
- * operations to indicate success or failure, and the reason for failure
- *
- * Copyright (c) 1997 - Russell C. Bjork
- *
- */
- package atm.util;
- public class Status
- {
- public static final int SUCCESS = 0;
- // Cash dispenser does not have enough cash for a withdrawl request
- public static final int TOO_LITTLE_CASH = 1;
- // Customer did not deposit envelope within time out period
- public static final int ENVELOPE_DEPOSIT_TIMED_OUT = 2;
- // Various reasons why bank might reject a transaction
- public static final int UNKNOWN_CARD = 3;
- // Card number not recognized
- public static final int INVALID_PIN = 4;
- // PIN not correct for card
- public static final int NO_SUCH_ACCOUNT = 5;
- // Card holder does not have this type account
- public static final int CANT_WITHDRAW_FROM_ACCOUNT = 6;
- // Account doesn't allow ATM withdrawl
- public static final int INSUFFICIENT_AVAILABLE_BALANCE = 7; // Self-explanatory
- public static final int DAILY_WITHDRAWL_LIMIT_EXCEEDED = 8; // Ditto
- }
- //</pre></body></html>