|
From: Pelle B. <pe...@us...> - 2004-03-29 23:55:02
|
Update of /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/simple In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21675/src/java/org/neuclear/ledger/simple Added Files: PopulatedSimpleLedger.java Log Message: The servlets now work and display the ledger contents. --- NEW FILE: PopulatedSimpleLedger.java --- package org.neuclear.ledger.simple; import org.neuclear.ledger.UnBalancedTransactionException; import org.neuclear.ledger.LowlevelLedgerException; import org.neuclear.ledger.InvalidTransactionException; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: PopulatedSimpleLedger.java,v 1.1 2004/03/29 23:43:30 pelle Exp $ $Log: PopulatedSimpleLedger.java,v $ Revision 1.1 2004/03/29 23:43:30 pelle The servlets now work and display the ledger contents. */ /** * User: pelleb * Date: Mar 29, 2004 * Time: 7:36:18 PM */ public class PopulatedSimpleLedger extends SimpleLedger { public PopulatedSimpleLedger(String name) throws InvalidTransactionException, LowlevelLedgerException { super(name); transfer("mint","bob",10000,"Initial Funding"); transfer("mint","alice",10000,"Initial Funding"); for(int i=0;i<50;i++){ transfer("bob","carol", 50+i,"test"+i); } for(int i=0;i<50;i++){ transfer("alice","bob", 50+i,"test"+i); } } } |