org.jscience.economics
Class Barter

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

public class Barter
extends java.lang.Object

A class representing a transfer of property from one entity to another without the use of money.


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

Constructor Detail

Barter

public Barter(EconomicAgent economicAgent1,
              java.util.Set agent1Resources,
              EconomicAgent economicAgent2,
              java.util.Set agent2Resources)
Creates a new Barter object.

Parameters:
economicAgent1 - DOCUMENT ME!
agent1Resources - 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!

getEconomicAgent2

public EconomicAgent getEconomicAgent2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAgent2Resources

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

Returns:
DOCUMENT ME!

barterResources

public void barterResources()
DOCUMENT ME!