com.infoteria.asteria.flowlibrary2.component
クラス SimpleBranchComponent

java.lang.Object
  |
  +--com.infoteria.asteria.flowengine2.flow.Component
        |
        +--com.infoteria.asteria.flowlibrary2.component.SimpleBranchComponent
すべての実装インタフェース:
Cloneable

public abstract class SimpleBranchComponent
extends Component

2分岐のコンポーネントの基底クラスです。
このクラスでは「Exception」というプロパティがあらかじめ登録されています。


フィールドの概要
protected static String STATE_BRANCH
          branchの出力State
 
クラス com.infoteria.asteria.flowengine2.flow.Component から継承したフィールド
LOOP_CONTINUE, LOOP_END, LOOP_NOTHING, STATE_DEFAULT
 
コンストラクタの概要
SimpleBranchComponent(int inputTypes, int defaultExitTypes, int branchExitTypes)
          入力可能なストリームフォーマットとそれぞれのコネクタで出力可能なストリームフォーマットを指定するコンストラクタ。
 
メソッドの概要
protected  OutputConnector getBranchOutputConnector()
          「branch」Stateの出力コネクタを取得します。
 ComponentEntrance getComponentEntrance()
          入力コネクタセットを取得します。
 ComponentExit getComponentExit(String state)
          stateに対応する出力コネクタセットを取得します。
protected  OutputConnector getDefaultOutputConnector()
          「default」Stateの出力コネクタを取得します。
protected  InputConnector getInputConnector()
          入力コネクタを取得します。
 String getState()
          出力Stateを返します。
 String[] getStateArray()
          このコンポーネントでは「default」と「branch」というふたつのStateを返します。
protected  void setOutputStream(boolean takeBranch, StreamDataObject stream)
          出力Stateと出力ストリームを設定します。
 
クラス com.infoteria.asteria.flowengine2.flow.Component から継承したメソッド
clone, commit, endFlow, execute, executeLoop, getCompiler, getComponentName, getExecuteCount, getFullName, getLicenseStr, getMessage, getMessage, getMessage, getMessage, getMessageResource, getName, getProperty, getProperty, getPropertyCount, init, internalInit, isBreakPoint, loopPossibility, registProperty, release, releaseComponentExit, rollback, setExceptionParam, term
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

STATE_BRANCH

protected static final String STATE_BRANCH
branchの出力State
コンストラクタの詳細

SimpleBranchComponent

public SimpleBranchComponent(int inputTypes,
                             int defaultExitTypes,
                             int branchExitTypes)
入力可能なストリームフォーマットとそれぞれのコネクタで出力可能なストリームフォーマットを指定するコンストラクタ。
パラメータ:
inputTypes - 入力可能ストリームフォーマット。StreamTypeクラスのシンボルを使用して設定します。
defaultExitTypes - defaultコネクタで出力可能ストリームフォーマット。StreamTypeクラスのシンボルを使用して設定します。
branchExitTypes - branchコネクタで出力可能ストリームフォーマット。StreamTypeクラスのシンボルを使用して設定します。
メソッドの詳細

getComponentEntrance

public ComponentEntrance getComponentEntrance()
入力コネクタセットを取得します。
オーバーライド:
クラス Component 内の getComponentEntrance

getComponentExit

public ComponentExit getComponentExit(String state)
stateに対応する出力コネクタセットを取得します。
オーバーライド:
クラス Component 内の getComponentExit

getStateArray

public String[] getStateArray()
このコンポーネントでは「default」と「branch」というふたつのStateを返します。
オーバーライド:
クラス Component 内の getStateArray

getState

public String getState()
出力Stateを返します。
このコンポーネントではsetOutputStreamメソッドの第一引数にtrueが設定された場合は「branch」を、 falseが設定された場合は「default」を返します。
オーバーライド:
クラス Component 内の getState

setOutputStream

protected void setOutputStream(boolean takeBranch,
                               StreamDataObject stream)
                        throws StreamException
出力Stateと出力ストリームを設定します。
パラメータ:
takeBranch - trueの場合は出力Stateは「branch」に、falseの場合は「default」になります。
stream - 出力ストリーム

getInputConnector

protected InputConnector getInputConnector()
入力コネクタを取得します。

getDefaultOutputConnector

protected OutputConnector getDefaultOutputConnector()
「default」Stateの出力コネクタを取得します。

getBranchOutputConnector

protected OutputConnector getBranchOutputConnector()
「branch」Stateの出力コネクタを取得します。