ecash.kernel
Class BuyerPurseUnit

java.lang.Object
  |
  +--ecash.kernel.BuyerPurseUnit
All Implemented Interfaces:
java.io.Serializable

public class BuyerPurseUnit
extends java.lang.Object
implements java.io.Serializable

This class represents a single item of the BuyerPurse class.

Author:
Michel Deriaz
See Also:
BuyerPurse, Serialized Form

Constructor Summary
BuyerPurseUnit(Note note, FullNotesList fullNotesList, BankChoice bankChoice)
          Creates a BuyerPurseUnit.
 
Method Summary
 BankChoice getBankChoice()
          Returns the BankChoice.
 FullNotesList getFullNotesList()
          Returns the FullNotesList.
 Note getNote()
          Returns the note.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuyerPurseUnit

public BuyerPurseUnit(Note note,
                      FullNotesList fullNotesList,
                      BankChoice bankChoice)
Creates a BuyerPurseUnit.

Parameters:
note - the note
fullNotesList - all the informations used to create the note, and also the other notes (the bank gets several notes and then choose wich one she will sign
bankChoice - the note choosen by the bank
Method Detail

getNote

public Note getNote()
Returns the note.

Returns:
the note

getFullNotesList

public FullNotesList getFullNotesList()
Returns the FullNotesList.

Returns:
the FullNotesList

getBankChoice

public BankChoice getBankChoice()
Returns the BankChoice.

Returns:
the BankChoice