org.wiperdog.jobmanager.internal
Class AbstractOperator

java.lang.Object
  extended by org.wiperdog.jobmanager.internal.AbstractOperator
All Implemented Interfaces:
Follower, MultiFollower, Node, Operator, Predecessor
Direct Known Subclasses:
AndOperator, CounterOperator, NotOperator, OrOperator, XorOperator

public abstract class AbstractOperator
extends Object
implements Operator

Author:
kurohara

Field Summary
protected  String id
           
protected  org.apache.log4j.Logger logger
           
protected  List<Flow> outFlowList
           
protected  List<Boolean> switchboard
           
protected  List<Flow> upperConnectionList
           
 
Fields inherited from interface org.wiperdog.jobmanager.Node
KEY_JOBEXECUTIONFAILED
 
Constructor Summary
protected AbstractOperator()
           
protected AbstractOperator(String name)
           
 
Method Summary
 void addOutFlow(Flow flow)
          出力先の追加
protected abstract  boolean chkSwitchBoard()
           
 void connectUpperFlow(int index, Predecessor f)
          先行ノードの 指定位置の後続ノードを自ノードにする。
 void connectUpperFlow(Predecessor f)
          先行ノードに自ノードを追加する
 void deleteOutFlow(Flow flow)
          出力先の削除
 void disconnectUpperFlow(int index, Predecessor p)
          先行ノードの 指定位置から 自ノードへの接続を削除
 void disconnectUpperFlow(Predecessor p)
          先行ノードから自ノードへの接続を削除
protected  void flowOut(boolean v)
          全出力先に通知
 String getId()
           
 String getName()
          名前を取得
 Flow[] getOutFlows()
          出力先一覧を取得
 boolean[] getTValues()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wiperdog.jobmanager.Node
getPValue
 

Field Detail

id

protected final String id

outFlowList

protected final List<Flow> outFlowList

upperConnectionList

protected final List<Flow> upperConnectionList

switchboard

protected final List<Boolean> switchboard

logger

protected final org.apache.log4j.Logger logger
Constructor Detail

AbstractOperator

protected AbstractOperator()

AbstractOperator

protected AbstractOperator(String name)
Method Detail

getTValues

public boolean[] getTValues()
Specified by:
getTValues in interface Operator

getName

public String getName()
Description copied from interface: Node
名前を取得

Specified by:
getName in interface Node
Returns:

getOutFlows

public Flow[] getOutFlows()
Description copied from interface: Predecessor
出力先一覧を取得

Specified by:
getOutFlows in interface Predecessor
Returns:

toString

public String toString()
Overrides:
toString in class Object

chkSwitchBoard

protected abstract boolean chkSwitchBoard()

flowOut

protected void flowOut(boolean v)
全出力先に通知

Parameters:
v -

addOutFlow

public void addOutFlow(Flow flow)
                throws ConditionBoardException
出力先の追加

Specified by:
addOutFlow in interface Predecessor
Parameters:
flow - 下流要素のFlowインタフェース
Throws:
ConditionBoardException

deleteOutFlow

public void deleteOutFlow(Flow flow)
                   throws ConditionBoardException
出力先の削除

Specified by:
deleteOutFlow in interface Predecessor
Parameters:
flow - 下流要素のFlowインタフェース
Throws:
ConditionBoardException

connectUpperFlow

public void connectUpperFlow(Predecessor f)
                      throws ConditionBoardException
Description copied from interface: Follower
先行ノードに自ノードを追加する

Specified by:
connectUpperFlow in interface Follower
Parameters:
f - 先行ノード
Throws:
ConditionBoardException

connectUpperFlow

public void connectUpperFlow(int index,
                             Predecessor f)
                      throws ConditionBoardException
Description copied from interface: MultiFollower
先行ノードの 指定位置の後続ノードを自ノードにする。

Specified by:
connectUpperFlow in interface MultiFollower
Parameters:
index - 位置
f - 先行ノード
Throws:
ConditionBoardException

disconnectUpperFlow

public void disconnectUpperFlow(int index,
                                Predecessor p)
                         throws ConditionBoardException
Description copied from interface: MultiFollower
先行ノードの 指定位置から 自ノードへの接続を削除

Specified by:
disconnectUpperFlow in interface MultiFollower
Throws:
ConditionBoardException

disconnectUpperFlow

public void disconnectUpperFlow(Predecessor p)
                         throws ConditionBoardException
Description copied from interface: Follower
先行ノードから自ノードへの接続を削除

Specified by:
disconnectUpperFlow in interface Follower
Throws:
ConditionBoardException

getId

public String getId()


Copyright © 2013. All Rights Reserved.