Package distrsys.rmi.bank.common

Examples of distrsys.rmi.bank.common.SparKonto


  public SparKonto erzeuge_spar_konto(String accountNumber, float zins_satz) throws BankException, RemoteException {
    Konto konto = finde(accountNumber);
    if(konto != null)
      throw new BankException("account already exists!");
   
    SparKonto sparKonto = new SparKontoImpl(accountNumber, zins_satz);
    kontos.put(accountNumber, sparKonto);
   
    return sparKonto;
  }
View Full Code Here


      Entry<String,KontoImpl> entry = (Entry<String,KontoImpl>)iter.next();
     
      if(entry.getValue() instanceof SparKontoImpl)
      {
        long iterest;
        SparKonto sparKonto = (SparKonto)entry.getValue();
        iterest = (long)(sparKonto.get_zins_satz() * sparKonto.kontostand())/100;
        sparKonto.einzahlen(iterest);
      }
    }
  }
 
View Full Code Here

TOP

Related Classes of distrsys.rmi.bank.common.SparKonto

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.