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」というプロパティがあらかじめ登録されています。
|
コンストラクタの概要 |
SimpleBranchComponent(int inputTypes,
int defaultExitTypes,
int branchExitTypes)
入力可能なストリームフォーマットとそれぞれのコネクタで出力可能なストリームフォーマットを指定するコンストラクタ。 |
| クラス 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 |
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の出力コネクタを取得します。