jp.sourceforge.orangesignal.trading.backtest.launcher
クラス BacktesterLauncher

java.lang.Object
  上位を拡張 jp.sourceforge.orangesignal.trading.backtest.launcher.BacktesterLauncher
すべての実装されたインタフェース:
BacktesterListener

@Controller
public final class BacktesterLauncher
extends Object
implements BacktesterListener

バックテスト実行クラスの起動クラスを提供します。

作成者:
杉澤 浩二

フィールドの概要
protected  Backtester backtester
          バックテスト実行オブジェクトを保持します。
protected static String DEFAULT_CONFIG_LOCATION
          デフォルトの設定ファイル名です。
protected  boolean info
          進捗状況を表示するかどうかを保持します。
protected static Log log
          共通ログインスタンスです。
protected static String OPT_FILE
          設定ファイル指定オプションの文字列です。
protected static String OPT_HELP
          ヘルプオプションの文字列です。
protected static String OPT_INFO
          進捗状況表示オプションの文字列です。
protected static String OPT_TIME
          実行時間表示オプションの文字列です。
protected static String OPT_VERSION
          バージョン情報オプションの文字列です。
protected static Options options
          コマンドラインオプション定義情報を保持します。
protected  List<Reporter> reporters
          トレードパフォーマンス情報出力オブジェクトのリストを保持します。
protected static StringManager sm
          このパッケージの文字列リソースです。
 
メソッドの概要
 void backtestProcessed(BacktesterEvent event)
          この実装は何も行いません。
 void backtestStart(BacktesterEvent event)
          データセット毎のバックテスト開始前に呼出されます。
protected static OptionGroup createGeneralOptionGroup()
          全般オプショングループを作成して返します。
protected static Options createOptions()
          コマンドラインオプション定義情報を作成して返します。
protected  void launch(CommandLine commandline)
          バックテストを実行します。
static void main(String[] args)
          バックテスト実行クラスを起動して実行します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

log

protected static final Log log
共通ログインスタンスです。


sm

protected static final StringManager sm
このパッケージの文字列リソースです。


DEFAULT_CONFIG_LOCATION

protected static final String DEFAULT_CONFIG_LOCATION
デフォルトの設定ファイル名です。

関連項目:
定数フィールド値

OPT_HELP

protected static final String OPT_HELP
ヘルプオプションの文字列です。

関連項目:
定数フィールド値

OPT_VERSION

protected static final String OPT_VERSION
バージョン情報オプションの文字列です。

関連項目:
定数フィールド値

OPT_FILE

protected static final String OPT_FILE
設定ファイル指定オプションの文字列です。

関連項目:
定数フィールド値

OPT_TIME

protected static final String OPT_TIME
実行時間表示オプションの文字列です。

関連項目:
定数フィールド値

OPT_INFO

protected static final String OPT_INFO
進捗状況表示オプションの文字列です。

関連項目:
定数フィールド値

options

protected static Options options
コマンドラインオプション定義情報を保持します。


backtester

protected Backtester backtester
バックテスト実行オブジェクトを保持します。


reporters

protected List<Reporter> reporters
トレードパフォーマンス情報出力オブジェクトのリストを保持します。


info

protected boolean info
進捗状況を表示するかどうかを保持します。

メソッドの詳細

createOptions

protected static final Options createOptions()
コマンドラインオプション定義情報を作成して返します。

戻り値:
コマンドラインオプション定義情報

createGeneralOptionGroup

protected static final OptionGroup createGeneralOptionGroup()
全般オプショングループを作成して返します。 全般オプショングループには、以下のオプションが含まれます。

戻り値:
全般オプショングループ

main

public static void main(String[] args)

バックテスト実行クラスを起動して実行します。

パラメータ:
args - コマンドラインパラメータのリスト

launch

protected void launch(CommandLine commandline)
               throws IOException

バックテストを実行します。

但しトレードパフォーマンス情報出力オブジェクトのリストが空の場合は何も実行しません。

パラメータ:
commandline - コマンドライン情報
例外:
IOException - 入出力操作で例外が発生した場合

backtestStart

public void backtestStart(BacktesterEvent event)
インタフェース BacktesterListener の記述:
データセット毎のバックテスト開始前に呼出されます。

定義:
インタフェース BacktesterListener 内の backtestStart
パラメータ:
event - バックテスト進行状況イベント情報

backtestProcessed

public void backtestProcessed(BacktesterEvent event)
この実装は何も行いません。

定義:
インタフェース BacktesterListener 内の backtestProcessed
パラメータ:
event - バックテスト進行状況イベント情報


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