org.jscience.economics
Class EconomicAgent

java.lang.Object
  extended by org.jscience.sociology.Role
      extended by org.jscience.economics.EconomicAgent
All Implemented Interfaces:
Named
Direct Known Subclasses:
Worker

public class EconomicAgent
extends Role

A class representing a consumer basic facts.


Field Summary
 
Fields inherited from class org.jscience.sociology.Role
CLIENT, OBSERVER, SERVER, SUPERVISOR
 
Constructor Summary
  EconomicAgent(Individual individual, EconomicSituation situation)
          Creates a new EconomicAgent object.
protected EconomicAgent(Individual individual, java.lang.String name, EconomicSituation situation, int kind)
          Creates a new EconomicAgent object.
 
Method Summary
 void addBelonging(Resource belonging)
          DOCUMENT ME!
 java.util.Set getBelongings()
          DOCUMENT ME!
 Community getCommunity()
          DOCUMENT ME!
 Wallet getWallet()
          DOCUMENT ME!
 void removeBelonging(Resource belonging)
          DOCUMENT ME!
 void setBelongings(java.util.Set belongings)
          DOCUMENT ME!
 void setWallet(Wallet wallet)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.sociology.Role
getIndividual, getKind, getName, getSituation, setSituation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EconomicAgent

public EconomicAgent(Individual individual,
                     EconomicSituation situation)
Creates a new EconomicAgent object.

Parameters:
individual - DOCUMENT ME!
situation - DOCUMENT ME!

EconomicAgent

protected EconomicAgent(Individual individual,
                        java.lang.String name,
                        EconomicSituation situation,
                        int kind)
Creates a new EconomicAgent object.

Parameters:
individual - DOCUMENT ME!
name - DOCUMENT ME!
situation - DOCUMENT ME!
kind - DOCUMENT ME!
Method Detail

getBelongings

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

Returns:
DOCUMENT ME!

addBelonging

public void addBelonging(Resource belonging)
DOCUMENT ME!

Parameters:
belonging - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeBelonging

public void removeBelonging(Resource belonging)
DOCUMENT ME!

Parameters:
belonging - DOCUMENT ME!

setBelongings

public void setBelongings(java.util.Set belongings)
DOCUMENT ME!

Parameters:
belongings - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getWallet

public Wallet getWallet()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setWallet

public void setWallet(Wallet wallet)
DOCUMENT ME!

Parameters:
wallet - DOCUMENT ME!

getCommunity

public Community getCommunity()
DOCUMENT ME!

Returns:
DOCUMENT ME!