|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBank
This is the interface used for a bank. There is exactly one bank in the entire system which is used for all credit card checks. The bank is not checked for events but is just used to manage credit cards (so we know which ones are valid).
Method Summary | |
---|---|
void |
createCreditCard(int cardNumber,
int pinNumber,
int availableMoney)
Create a new credit card for this bank. |
void |
deleteCreditCard(int cardNumber)
Deletes the given credit card. |
int |
getAvailableMoney(int cardNumber)
Returns the amount of money (in cents) available for this card. |
Method Detail |
---|
void createCreditCard(int cardNumber, int pinNumber, int availableMoney) throws java.lang.Exception
cardNumber
- the number for this card.pinNumber
- the secret pin code for the credit card.availableMoney
- the amount of money in cents associated with this card.
java.lang.Exception
int getAvailableMoney(int cardNumber) throws java.lang.Exception
cardNumber
- the number for this card.
java.lang.Exception
void deleteCreditCard(int cardNumber) throws java.lang.Exception
cardNumber
- the number of card to be deleted.
java.lang.Exception
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |