org.jscience.economics.money
Class Transaction

java.lang.Object
  extended by org.jscience.economics.money.Transaction
All Implemented Interfaces:
Identified

public final class Transaction
extends java.lang.Object
implements Identified

A class representing an exchange of money and goods or services between two parties. Each transaction emits a receipt for each party.


Constructor Summary
Transaction(Organization seller, Organization buyer, java.util.Date date, Identification identification, java.lang.String description, Amount<Money> amount)
          Creates a new Transaction object.
Transaction(Organization seller, Organization buyer, java.util.Date date, Identification identification, java.lang.String description, Share share, int quantity)
          Creates a new Transaction object.
 
Method Summary
 Amount<Money> getAmount()
          DOCUMENT ME!
 Organization getBuyer()
          DOCUMENT ME!
 java.util.Date getDate()
          DOCUMENT ME!
 java.lang.String getDescription()
          DOCUMENT ME!
 Identification getIdentification()
          DOCUMENT ME!
 int getQuantity()
          DOCUMENT ME!
 Receipt getReceipt()
          DOCUMENT ME!
 Organization getSeller()
          DOCUMENT ME!
 Share getShare()
          DOCUMENT ME!
 boolean isMoneyTransaction()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(Organization seller,
                   Organization buyer,
                   java.util.Date date,
                   Identification identification,
                   java.lang.String description,
                   Amount<Money> amount)
Creates a new Transaction object.

Parameters:
seller - DOCUMENT ME!
buyer - DOCUMENT ME!
date - DOCUMENT ME!
identification - DOCUMENT ME!
description - DOCUMENT ME!
amount - DOCUMENT ME!

Transaction

public Transaction(Organization seller,
                   Organization buyer,
                   java.util.Date date,
                   Identification identification,
                   java.lang.String description,
                   Share share,
                   int quantity)
Creates a new Transaction object.

Parameters:
seller - DOCUMENT ME!
buyer - DOCUMENT ME!
date - DOCUMENT ME!
identification - DOCUMENT ME!
description - DOCUMENT ME!
share - DOCUMENT ME!
quantity - DOCUMENT ME!
Method Detail

getSeller

public final Organization getSeller()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getBuyer

public final Organization getBuyer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDate

public final java.util.Date getDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getIdentification

public final Identification getIdentification()
DOCUMENT ME!

Specified by:
getIdentification in interface Identified
Returns:
DOCUMENT ME!

getDescription

public final java.lang.String getDescription()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAmount

public final Amount<Money> getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getShare

public final Share getShare()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getQuantity

public final int getQuantity()
DOCUMENT ME!

Returns:
DOCUMENT ME!

isMoneyTransaction

public boolean isMoneyTransaction()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getReceipt

public final Receipt getReceipt()
DOCUMENT ME!

Returns:
DOCUMENT ME!