ecash.kernel
Class FullNotesList

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

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

This class constructs a list of full notes.

Author:
Michel Deriaz
See Also:
Serialized Form

Constructor Summary
FullNotesList(int nbEnvelope, java.lang.String amountString, java.lang.String id, PubKey pubKey)
          Constructs a list of full notes.
 
Method Summary
 FullNote get(int i)
          Returns the specified full note.
 EnvelopesList getEnvelopesList()
          Creates an envelope list from the information found in the FullNote objects, and returns it.
 java.util.Vector getValues()
          Returns the vector containing all the FullNote objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullNotesList

public FullNotesList(int nbEnvelope,
                     java.lang.String amountString,
                     java.lang.String id,
                     PubKey pubKey)
Constructs a list of full notes.

Parameters:
nbEnvelope - the number of envelopes (the bank will then choose and sign one, and the other will have to be revealed)
amountString - the amount of the notes, given as a String
id - the identification of the client (bank account)
pubKey - the public key of the bank
Method Detail

get

public FullNote get(int i)
Returns the specified full note.

Parameters:
i - the index of the wanted full note
Returns:
the specified full note

getValues

public java.util.Vector getValues()
Returns the vector containing all the FullNote objects.

Returns:
the vector containing all the FullNote objects

getEnvelopesList

public EnvelopesList getEnvelopesList()
Creates an envelope list from the information found in the FullNote objects, and returns it.

Returns:
the envelopes to send to the bank, in an EnvelopesList object