jp.sf.orangesignal.ta.candle.generator
クラス StepTrendProcessor

java.lang.Object
  上位を拡張 jp.sf.orangesignal.ta.candle.generator.StepTrendProcessor
すべての実装されたインタフェース:
TrendProcessor
直系の既知のサブクラス:
KagiTrendProcessor, PointFigureTrendProcessor, RenkohTrendProcessor, ShinneTrendProcessor

public abstract class StepTrendProcessor
extends Object
implements TrendProcessor

非時系列価格分析データからトレンド情報を処理するトレンドプロセッサーの基底クラスを提供します。

作成者:
杉澤 浩二

コンストラクタの概要
StepTrendProcessor(List<Step> data)
          コンストラクタです。
 
メソッドの概要
 void execute(DefaultCandlestick[] c)
          この実装は非時系列価格分析データ毎に getTrend(Step) を呼出し、 得られたトレンドを非時系列価格分析データの該当日時範囲のローソク足へ設定します。
protected abstract  TrendType getTrend(Step step)
          非時系列データセット用の値幅情報からトレンドの種類を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

StepTrendProcessor

public StepTrendProcessor(List<Step> data)
コンストラクタです。

パラメータ:
data - 非時系列価格分析データ
メソッドの詳細

execute

public final void execute(DefaultCandlestick[] c)
                   throws TrendProcessorException
この実装は非時系列価格分析データ毎に getTrend(Step) を呼出し、 得られたトレンドを非時系列価格分析データの該当日時範囲のローソク足へ設定します。

定義:
インタフェース TrendProcessor 内の execute
パラメータ:
c - ローソク足
例外:
TrendProcessorException - ローソク足の日時に null がある場合
関連項目:
getTrend(Step)

getTrend

protected abstract TrendType getTrend(Step step)
非時系列データセット用の値幅情報からトレンドの種類を返します。

パラメータ:
step - 非時系列データセット用の値幅情報
戻り値:
トレンドの種類


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