com.licel.jcardsim.samples.RMIDemo
Interface Purse

All Superinterfaces:
Remote
All Known Implementing Classes:
PurseImpl

public interface Purse
extends Remote


Field Summary
static short BAD_ARGUMENT
           
static short MAX_AMOUNT
           
static short OVERFLOW
           
static short UNDERFLOW
           
 
Method Summary
 void credit(short m)
           
 void debit(short m)
           
 byte[] getAccountNumber()
           
 short getBalance()
           
 void setAccountNumber(byte[] number)
           
 

Field Detail

UNDERFLOW

static final short UNDERFLOW
See Also:
Constant Field Values

OVERFLOW

static final short OVERFLOW
See Also:
Constant Field Values

BAD_ARGUMENT

static final short BAD_ARGUMENT
See Also:
Constant Field Values

MAX_AMOUNT

static final short MAX_AMOUNT
See Also:
Constant Field Values
Method Detail

getBalance

short getBalance()
                 throws RemoteException
Throws:
RemoteException

debit

void debit(short m)
           throws RemoteException,
                  UserException
Throws:
RemoteException
UserException

credit

void credit(short m)
            throws RemoteException,
                   UserException
Throws:
RemoteException
UserException

setAccountNumber

void setAccountNumber(byte[] number)
                      throws RemoteException,
                             UserException
Throws:
RemoteException
UserException

getAccountNumber

byte[] getAccountNumber()
                        throws RemoteException
Throws:
RemoteException