jp.sf.orangesignal.trading
インタフェース Account

既知の実装クラスの一覧:
VirtualAccount

public interface Account

口座情報のインターフェースを提供します。

作成者:
杉澤 浩二

メソッドの概要
 void deposit(double amount)
          預金します。
 double getCash()
          残高を返します。
 double getInterestRate()
          金利を返します。
 boolean withdraw(double amount)
          引出します。
 

メソッドの詳細

getCash

double getCash()
残高を返します。

戻り値:
残高

getInterestRate

double getInterestRate()
金利を返します。

戻り値:
金利

deposit

void deposit(double amount)
預金します。

パラメータ:
amount - 入金額
例外:
IllegalArgumentException - 入金額に 0 以下の値が指定された場合

withdraw

boolean withdraw(double amount)
引出します。

パラメータ:
amount - 出金額
戻り値:
引出せたかどうか
例外:
IllegalArgumentException - 出金額に 0 以下の値が指定された場合


Copyright © 2006-2009 OrangeSignal.com. All Rights Reserved.