001    package data;
002    
003    import data.ooimpl.CurrencyItemImpl;
004    import data.ooimpl.StockItemImpl;
005    
006    /**
007     * Tag interface marking {@link CountingStock CountingStocks} that work together with
008     * {@link Currency Currencies}.
009     *
010     * @author Steffen Zschaler
011     * @version 2.0 18/08/1999
012     * @since v2.0
013     */
014    public interface MoneyBag extends CountingStock<StockItemImpl, CurrencyItemImpl> {
015    
016        /**
017         * Tries to transfer money from this DataBasket into another one.
018         * @param mbDest the MoneyBag to transfer the money to
019         * @param db a transaction DataBasket
020         * @param nvAmount the amount of money to transfer
021         */
022        public void transferMoney(MoneyBag mbDest, DataBasket db, NumberValue nvAmount);
023    }