net.commerce.zocalo.currency
Class CashBank
java.lang.Object
net.commerce.zocalo.currency.CashBank
public class CashBank
- extends java.lang.Object
CashBank is the exclusive minter of cash-like currencies. Anyone with
access to a CashBank object can endow new accounts with money. Thus,
access to it should be treated as a closely-held capability.
Constructor Summary |
CashBank(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CashBank
public CashBank(java.lang.String name)
makeEndowedUser
public User makeEndowedUser(java.lang.String name,
Quantity balance)
makeFunds
public Funds makeFunds(Quantity value)
makeFunds
public Funds makeFunds(int value)
noFunds
public Funds noFunds()