org.retro.gis.tools
Class AttachTreeAction

java.lang.Object
  extended byorg.retro.gis.tools.BasicActionNode
      extended byorg.retro.gis.tools.BranchActionNode
          extended byorg.retro.gis.tools.AttachTreeAction
All Implemented Interfaces:
ActionTreeNode

public class AttachTreeAction
extends BranchActionNode

This class should be attached to parent ActionNodes, contained in their action tree.

See Also:
NullActionImpl, BasicActionNode

Constructor Summary
AttachTreeAction(double p, double pass, double fail)
           
 
Method Summary
 void attachObject(java.lang.Object t)
           
 void performActionCheck()
          Based on the current key, should I run this action?
protected  boolean performScoreHitPass()
          Note; the value returned needs to be saved, we need to save the value, the best place to save this result is in the calling method, for example getPoints.
protected  void runActionInternal()
          To use this method, call runAction, and the this will be called internally.
protected  void runDecisionMatrix(int level)
          The decision matrix will typically be simple, run through all the nodes in the internal tree, and find maximize the current score if the node, can be 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, 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

AttachTreeAction

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

runDecisionMatrix

protected void runDecisionMatrix(int level)
Description copied from class: BasicActionNode
The decision matrix will typically be simple, run through all the nodes in the internal tree, and find maximize the current score if the node, can be run

Specified by:
runDecisionMatrix in class BasicActionNode

attachObject

public void attachObject(java.lang.Object t)

performScoreHitPass

protected boolean performScoreHitPass()
Note; the value returned needs to be saved, we need to save the value, the best place to save this result is in the calling method, for example getPoints.

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

performActionCheck

public void performActionCheck()
Based on the current key, should I run this action?

Specified by:
performActionCheck in class BranchActionNode

runActionInternal

protected void runActionInternal()
                          throws java.lang.Exception
To use this method, call runAction, and the this will be called internally. You should avoid running this method any other way, the mechanics of the system may break down.

Specified by:
runActionInternal in class BasicActionNode
Throws:
java.lang.Exception
See Also:
#BasicActionNode.runAction()