org.jscience.economics
Class Bank

java.lang.Object
  extended by org.jscience.biology.Population
      extended by org.jscience.psychology.social.Group
          extended by org.jscience.economics.Community
              extended by org.jscience.economics.Organization
                  extended by org.jscience.economics.Bank
All Implemented Interfaces:
ChangeSource, Property, TaskProcessor, Identified, Positioned

public class Bank
extends Organization
implements ChangeSource

A class representing a bank.


Constructor Summary
Bank(java.lang.String name, Identification identification, java.util.Set owners, BusinessPlace place, java.util.Set accounts)
          Creates a new Bank object.
 
Method Summary
 void addClientAccount(Account account)
          DOCUMENT ME!
 java.util.Set getClientAccounts()
          DOCUMENT ME!
 float getConverted(float amount, Currency source, Currency target)
          DOCUMENT ME!
 void removeClientAccount(Account account)
          DOCUMENT ME!
 void setClientAccounts(java.util.Set accounts)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.Organization
addAccount, addClient, addOwner, addProvider, buyResources, getAccounts, getCapital, getClients, getIdentification, getName, getOrganigram, getOwners, getProviders, getValue, getWorkers, removeAccount, removeClient, removeOwner, removeProvider, setAccounts, setCapital, setIdentification, setName, setOrganigram, setOwners, setValue
 
Methods inherited from class org.jscience.economics.Community
addResource, barterResources, consumeResources, getResources, removeResource, setResources
 
Methods inherited from class org.jscience.psychology.social.Group
addIndividual, getFormalTerritory, getLeaders, getRelation, removeIndividual, setFormalTerritory, setIndividuals, setLeaders, setRelation
 
Methods inherited from class org.jscience.biology.Population
getIndividuals, getPosition, getSpecies, getTerritory, isContained, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bank

public Bank(java.lang.String name,
            Identification identification,
            java.util.Set owners,
            BusinessPlace place,
            java.util.Set accounts)
Creates a new Bank object.

Parameters:
name - DOCUMENT ME!
identification - DOCUMENT ME!
owners - DOCUMENT ME!
place - DOCUMENT ME!
accounts - DOCUMENT ME!
Method Detail

getClientAccounts

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

Returns:
DOCUMENT ME!

addClientAccount

public void addClientAccount(Account account)
DOCUMENT ME!

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

removeClientAccount

public void removeClientAccount(Account account)
DOCUMENT ME!

Parameters:
account - DOCUMENT ME!

setClientAccounts

public void setClientAccounts(java.util.Set accounts)
DOCUMENT ME!

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

getConverted

public float getConverted(float amount,
                          Currency source,
                          Currency target)
DOCUMENT ME!

Specified by:
getConverted in interface ChangeSource
Parameters:
amount - DOCUMENT ME!
source - DOCUMENT ME!
target - DOCUMENT ME!
Returns:
DOCUMENT ME!