org.retro.gis.tools
Class BranchActionNode

java.lang.Object
  extended byorg.retro.gis.tools.BasicActionNode
      extended byorg.retro.gis.tools.BranchActionNode
All Implemented Interfaces:
ActionTreeNode
Direct Known Subclasses:
AttachTreeAction, NullBranchActionNode, PrintBranchAction, SendMessageBranch

public abstract class BranchActionNode
extends BasicActionNode

Abstract class for a branch node, a branch should be attached as a member of a BasicAcionNode, which should be contained in an action tree.

See Also:
BasicActionNode

Constructor Summary
BranchActionNode(double p, double pass, double fail)
           
 
Method Summary
abstract  void performActionCheck()
          Check if an action should be performed
protected abstract  boolean performScoreHitPass()
          needed in getPoints to check the pass or fail of an action performed on run.
 
Methods inherited from class org.retro.gis.tools.BasicActionNode
checkSchemeObject, countActionPerformed, evalObject, evalString, getCanRunAgain, getCommandList, getKey, getLastPassFail, getLastScore, getLevel, getLevelThreshold, getMaxScoreThreshold, getMinScoreThreshold, getMultipleRunsFlag, getPoints, runAction, runActionInternal, runDecisionMatrix, setForceRunFlag, setKey, setLevel, setMultipleRunsFlag, setProcessThreadNode, setRunFlag, setSchemeObject, setScoreHitSet, setScoreRangeSet, travelNullSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchActionNode

public BranchActionNode(double p,
                        double pass,
                        double fail)
                 throws InvalidScoreException
Method Detail

performActionCheck

public abstract void performActionCheck()
Check if an action should be performed

Specified by:
performActionCheck in class BasicActionNode

performScoreHitPass

protected abstract boolean performScoreHitPass()
needed in getPoints to check the pass or fail of an action performed on run. This method needs to be overridden by the implementing class; for example, this method is needed by a branch node. An implemenatation may include searching a database for a value, pass if target value found.

Specified by:
performScoreHitPass in class BasicActionNode
See Also:
BasicActionNode.getPoints()