|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.SellerPurse
Contains all the notes and information obtained from buyers during transactions. Calls to the add() and the remove() methods will be taken into account only after a call to addCommit() and removeCommit() respectively. The clear() method will initialize this process. Each item of this list is a SellerPurseUnit object.
SellerPurseUnit
,
Serialized FormConstructor Summary | |
SellerPurse()
Creates a SellerPurse. |
Method Summary | |
void |
add(Note note,
java.math.BigInteger challengeRIS,
RISPart risPart,
java.lang.String buyerNickname)
Adds a new note and the information obtained from the buyer during the transaction. |
void |
addCommit()
Let's take into effect all the calls made to the add() method, and then calls the clear() method. |
void |
clear()
Initializes the data for the add() and the remove() methods. |
int |
findAmount(java.lang.String amount)
Returns the first index of a note with the specified amount. |
java.util.Vector |
getAmountList()
Returns the list of the amounts of the notes. |
java.lang.String |
getBuyerNickname(int index)
Gets the nickname of the buyer that sent the specified note. |
java.math.BigInteger |
getChallengeRIS(int index)
Gets the challenge imposed to the specified note. |
Note |
getNote(int index)
Gets the specified note. |
RISPart |
getRISPart(int index)
Gets the revealed part of the RIS for the specified note. |
void |
initFindAmount()
Initializes the findAmount() method. |
void |
remove(int index)
Removes a note. |
void |
removeCommit()
Let's take into effect all the calls made to the remove() method, and then calls the clear() method. |
int |
size()
Returns the number of notes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SellerPurse()
Method Detail |
public void add(Note note, java.math.BigInteger challengeRIS, RISPart risPart, java.lang.String buyerNickname)
note
- the notechallengeRIS
- the challengerisPart
- the revealed part of the RISbuyerNickname
- the nickname provided by the buyer in order to
identify the origin of the paymentaddCommit()
public void addCommit()
add(ecash.kernel.Note, java.math.BigInteger, ecash.kernel.RISPart, java.lang.String)
public void remove(int index)
index
- the index of the note to removeremoveCommit()
public void removeCommit()
remove(int)
public Note getNote(int index)
index
- the index in the listpublic java.math.BigInteger getChallengeRIS(int index)
index
- the index of the specified note
public RISPart getRISPart(int index)
index
- the index of the specified note
public java.lang.String getBuyerNickname(int index)
index
- the index of the specified note
public java.util.Vector getAmountList()
public int size()
public void clear()
public void initFindAmount()
public int findAmount(java.lang.String amount)
amount
- the amount to find
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |