|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.internet.ECashGen | +--ecash.internet.ECashSeller
Extension of the ECashGen class which adds specific methods for a seller.
ECashGen
,
ECashBank
,
ECashBuyer
Field Summary |
Constructor Summary | |
ECashSeller(ECashSellerListener listener)
Creates an ECashSeller and loads the constants with the Const class. |
Method Summary | |
CreditDebitReport |
deposit(java.lang.String bankAddress,
java.lang.String bankAccount,
char[] password,
java.lang.String notesExp)
Deposits some notes at the bank. |
java.util.Vector |
getAmountList()
Returns the list of all the amounts of the different notes. |
ECashSellerState |
getState()
Returns an ECashSellerState object. |
void |
run()
|
void |
setState(ECashSellerState state)
Initializes the class with the specified state. |
void |
startServer()
Starts the server of the seller, in order to be ready to answer buyers requests. |
Methods inherited from class ecash.internet.ECashGen |
checkIfNotesAvailable, close, getKey, getKey, getREGEXP, handshakeClient, handshakeServer, hasBankKey, receiveCrypted, sendCrypted, sendCrypted, setKey, stopServer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECashSeller(ECashSellerListener listener)
listener
- the class that implements the ECashSellerListener
interfaceMethod Detail |
public ECashSellerState getState()
ECashSellerState
public void setState(ECashSellerState state)
state
- the stategetState()
,
ECashSellerState
public java.util.Vector getAmountList()
public void startServer()
ECashGen.stopServer()
public CreditDebitReport deposit(java.lang.String bankAddress, java.lang.String bankAccount, char[] password, java.lang.String notesExp)
bankAddress
- the address of the bank, for example
"124.123.132.233"bankAccount
- the account numberpassword
- the password of the accountnotesExp
- the notes expression describing which notes must be
deposited.
CreditDebitReport
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |