Agent System POND 1.2 (28.2.2002)

FIM.payment
Class VoucherWrapper

java.lang.Object
  |
  +--FIM.payment.VoucherWrapper
All Implemented Interfaces:
Serializable

public class VoucherWrapper
extends Object
implements Serializable

A wrapper for the voucher in VoucherPayment. The data must be a certificate. Also contains a characteristic (description of the voucher) and its value. For easier usage, a flag is contained to mark it whether it has been sued for payment or not.

Version:
1.0
Author:
Michael Sonntag
See Also:
Serialized Form

Field Summary
 String characteristic
          The characteristic (=description) of the voucher.
 boolean used
          Flag to mark whether this data has already been used for payment or not.
 Price value
          The value of the voucher.
 Certificate voucher
          The voucher itself.
 
Constructor Summary
VoucherWrapper(String characteristic, Certificate voucher, Price value)
          Create a new voucher wrapper.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public Price value
The value of the voucher.

characteristic

public String characteristic
The characteristic (=description) of the voucher.

voucher

public Certificate voucher
The voucher itself.

used

public boolean used
Flag to mark whether this data has already been used for payment or not.
Constructor Detail

VoucherWrapper

public VoucherWrapper(String characteristic,
                      Certificate voucher,
                      Price value)
Create a new voucher wrapper.
Parameters:
characteristic - the description of the voucher
value - the value of the voucher
voucher - the voucher itself

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.