org.jscience.economics
Class Trade

java.lang.Object
  extended by org.jscience.economics.Trade

public class Trade
extends java.lang.Object

A class representing a transfer of property from one entity to another


Constructor Summary
Trade(EconomicAgent economicAgent1, java.util.Set agent1Resources, Amount<Money> pricePaidBy1To2, EconomicAgent economicAgent2, java.util.Set agent2Resources)
          Creates a new Trade object.
 
Method Summary
 java.util.Set getAgent1Resources()
          DOCUMENT ME!
 java.util.Set getAgent2Resources()
          DOCUMENT ME!
 EconomicAgent getEconomicAgent1()
          DOCUMENT ME!
 EconomicAgent getEconomicAgent2()
          DOCUMENT ME!
 Amount<Money> getPricePaidBy1To2()
          DOCUMENT ME!
 void tradeResources()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trade

public Trade(EconomicAgent economicAgent1,
             java.util.Set agent1Resources,
             Amount<Money> pricePaidBy1To2,
             EconomicAgent economicAgent2,
             java.util.Set agent2Resources)
Creates a new Trade object.

Parameters:
economicAgent1 - DOCUMENT ME!
agent1Resources - DOCUMENT ME!
pricePaidBy1To2 - DOCUMENT ME!
economicAgent2 - DOCUMENT ME!
agent2Resources - DOCUMENT ME!
Method Detail

getEconomicAgent1

public EconomicAgent getEconomicAgent1()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAgent1Resources

public java.util.Set getAgent1Resources()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPricePaidBy1To2

public Amount<Money> getPricePaidBy1To2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getEconomicAgent2

public EconomicAgent getEconomicAgent2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAgent2Resources

public java.util.Set getAgent2Resources()
DOCUMENT ME!

Returns:
DOCUMENT ME!

tradeResources

public void tradeResources()
DOCUMENT ME!